Changeset 10033
- Timestamp:
- 07/29/08 16:30:15 (5 years ago)
- Location:
- src/router
- Files:
-
- 6 edited
-
kromo/dd-wrt/Makefile (modified) (1 diff)
-
services/Makefile (modified) (2 diffs)
-
services/networking/firewall.c (modified) (3 diffs)
-
services/networking/interface.c (modified) (2 diffs)
-
services/networking/network.c (modified) (6 diffs)
-
services/networking/wshaper.c (modified) (5 diffs)
Legend:
- Unmodified
- Added
- Removed
-
src/router/kromo/dd-wrt/Makefile
r9950 r10033 223 223 cp -f sputnik/logo.png $(INSTALLDIR)/www/style 224 224 endif 225 226 ifeq ($(CONFIG_TELCOM),y) 227 cp -f telcom/logo.png $(INSTALLDIR)/www/style 228 endif 229 225 230 ifeq ($(CONFIG_GLAUCO),y) 226 231 cp -f glauco/logo.png $(INSTALLDIR)/www/style -
src/router/services/Makefile
r9964 r10033 351 351 CFLAGS += -DHAVE_LSX 352 352 endif 353 ifeq ($(CONFIG_DANUBE),y) 354 CFLAGS += -DHAVE_DANUBE 355 endif 353 356 ifeq ($(CONFIG_TW6600),y) 354 357 CFLAGS += -DHAVE_TW6600 … … 400 403 CFLAGS += -DHAVE_IPROUTE2 401 404 endif 405 ifeq ($(CONFIG_TELCOM),y) 406 CFLAGS += -DHAVE_TELCOM 407 endif 408 402 409 ifeq ($(CONFIG_GGEW),y) 403 410 CFLAGS += -DHAVE_GGEW -
src/router/services/networking/firewall.c
r9870 r10033 770 770 #ifndef HAVE_PB42 771 771 #ifndef HAVE_LSX 772 #ifndef HAVE_DANUBE 772 773 #ifndef HAVE_WHRAG108 773 774 #ifndef HAVE_XSCALE … … 777 778 #ifndef HAVE_TW6600 778 779 system2 ("echo 1 > /proc/sys/net/ipv4/conf/br0/loop"); 780 #endif 779 781 #endif 780 782 #endif … … 2864 2866 else 2865 2867 perror ("/proc/sys/net/ipv4/netfilter/ip_conntrack_udp_timeout"); 2868 #elif HAVE_DANUBE 2869 if ((fp = 2870 fopen ("/proc/sys/net/ipv4/netfilter/ip_conntrack_udp_timeout", "r+"))) 2871 { 2872 fprintf (fp, "%d", 65); 2873 fclose (fp); 2874 } 2875 else 2876 perror ("/proc/sys/net/ipv4/netfilter/ip_conntrack_udp_timeout"); 2866 2877 #elif HAVE_PB42 2867 2878 if ((fp = -
src/router/services/networking/interface.c
r9938 r10033 248 248 start_setup_vlans (void) 249 249 { 250 #if defined(HAVE_RB500) || defined(HAVE_XSCALE) || defined(HAVE_MAGICBOX) || defined(HAVE_FONERA) || defined(HAVE_WHRAG108) || defined(HAVE_LS2) || defined(HAVE_CA8) || defined(HAVE_TW6600) || defined(HAVE_PB42) || defined(HAVE_LS5) || defined(HAVE_LSX) 250 #if defined(HAVE_RB500) || defined(HAVE_XSCALE) || defined(HAVE_MAGICBOX) || defined(HAVE_FONERA) || defined(HAVE_WHRAG108) || defined(HAVE_LS2) || defined(HAVE_CA8) || defined(HAVE_TW6600) || defined(HAVE_PB42) || defined(HAVE_LS5) || defined(HAVE_LSX) || defined(HAVE_DANUBE) 251 251 return 0; 252 252 #else … … 512 512 snprintf (all_ifnames, 255, "%s %s %s", "eth0", 513 513 nvram_safe_get ("lan_ifnames"), nvram_safe_get ("wan_ifnames")); 514 #elif HAVE_DANUBE 515 snprintf (all_ifnames, 255, "%s %s %s", "eth0", 516 nvram_safe_get ("lan_ifnames"), nvram_safe_get ("wan_ifnames")); 514 517 #elif HAVE_TW6600 515 518 snprintf (all_ifnames, 255, "%s %s %s", "eth0", -
src/router/services/networking/network.c
r9943 r10033 900 900 strcpy (mac, nvram_safe_get ("et0macaddr")); 901 901 #endif 902 #ifdef HAVE_DANUBE 903 if (getSTA () || getWET () || nvram_match ("ath0_mode", "wdssta") 904 || nvram_match ("wan_proto", "disabled")) 905 { 906 nvram_set ("lan_ifname", "br0"); 907 nvram_set ("lan_ifnames", "eth0 ath0"); 908 PORTSETUPWAN (""); 909 } 910 else 911 { 912 nvram_set ("lan_ifname", "br0"); 913 nvram_set ("lan_ifnames", "ath0"); 914 PORTSETUPWAN ("eth0"); 915 } 916 strncpy (ifr.ifr_name, "eth0", IFNAMSIZ); 917 ioctl (s, SIOCGIFHWADDR, &ifr); 918 nvram_set ("et0macaddr", ether_etoa (ifr.ifr_hwaddr.sa_data, eabuf)); 919 strcpy (mac, nvram_safe_get ("et0macaddr")); 920 #endif 902 921 #ifdef HAVE_MR3202A 903 922 if (getSTA () || getWET () || nvram_match ("ath0_mode", "wdssta") … … 1351 1370 if (!ifexists (name)) 1352 1371 continue; 1353 #if defined(HAVE_MADWIFI) && !defined(HAVE_RB500) && !defined(HAVE_XSCALE) && !defined(HAVE_MAGICBOX) && !defined(HAVE_FONERA) && !defined(HAVE_WHRAG108) && !defined(HAVE_X86) && !defined(HAVE_LS2) && !defined(HAVE_LS5) && !defined(HAVE_CA8) && !defined(HAVE_TW6600) && !defined(HAVE_PB42) && !defined(HAVE_LSX) 1372 #if defined(HAVE_MADWIFI) && !defined(HAVE_RB500) && !defined(HAVE_XSCALE) && !defined(HAVE_MAGICBOX) && !defined(HAVE_FONERA) && !defined(HAVE_WHRAG108) && !defined(HAVE_X86) && !defined(HAVE_LS2) && !defined(HAVE_LS5) && !defined(HAVE_CA8) && !defined(HAVE_TW6600) && !defined(HAVE_PB42) && !defined(HAVE_LSX) && !defined(HAVE_DANUBE) 1354 1373 if (!strcmp (name, "eth2")) 1355 1374 { … … 1758 1777 nvram_set ("et0macaddr", nvram_safe_get ("lan_hwaddr")); 1759 1778 #endif 1779 #ifdef HAVE_DANUBE 1780 nvram_set ("et0macaddr", nvram_safe_get ("lan_hwaddr")); 1781 #endif 1760 1782 #ifdef HAVE_TW6600 1761 1783 nvram_set ("et0macaddr", nvram_safe_get ("lan_hwaddr")); … … 1838 1860 #endif 1839 1861 #ifdef HAVE_LSX 1862 strncpy (ifr.ifr_name, "ath0", IFNAMSIZ); 1863 if (ioctl (s, SIOCGIFHWADDR, &ifr) == 0) 1864 { 1865 char eabuf[32]; 1866 nvram_set ("wl0_hwaddr", ether_etoa (ifr.ifr_hwaddr.sa_data, eabuf)); 1867 } 1868 #endif 1869 #ifdef HAVE_DANUBE 1840 1870 strncpy (ifr.ifr_name, "ath0", IFNAMSIZ); 1841 1871 if (ioctl (s, SIOCGIFHWADDR, &ifr) == 0) … … 2005 2035 #endif 2006 2036 #ifdef HAVE_LSX 2037 #define HAVE_RB500 2038 #endif 2039 #ifdef HAVE_DANUBE 2007 2040 #define HAVE_RB500 2008 2041 #endif … … 2267 2300 "") ? 2268 2301 nvram_safe_get ("pppoe_wan_ifname") : "eth0"; 2302 #elif HAVE_DANUBE 2303 char *pppoe_wan_ifname = nvram_invmatch ("pppoe_wan_ifname", 2304 "") ? 2305 nvram_safe_get ("pppoe_wan_ifname") : "eth0"; 2269 2306 #elif HAVE_LS5 2270 2307 char *pppoe_wan_ifname = nvram_invmatch ("pppoe_wan_ifname", -
src/router/services/networking/wshaper.c
r9986 r10033 113 113 #ifndef HAVE_PB42 114 114 #ifndef HAVE_LSX 115 #ifndef HAVE_DANUBE 115 116 #ifndef HAVE_TW6600 116 117 if (nvram_match ("portprio_support", "1")) … … 145 146 ("echo FULL > /proc/switch/eth0/port/4/bandwidth 2>&1 > /dev/null"); 146 147 } 148 #endif 147 149 #endif 148 150 #endif … … 172 174 #ifndef HAVE_PB42 173 175 #ifndef HAVE_LSX 176 #ifndef HAVE_DANUBE 174 177 if (nvram_match ("portprio_support", "1")) 175 178 { … … 201 204 } 202 205 } 206 #endif 203 207 #endif 204 208 #endif … … 695 699 ret = eval (script_name, "stop", "XX", "eth1"); 696 700 ret = eval (script_name, "stop", "XX", "ath0"); 701 #elif HAVE_DANUBE 702 ret = eval (script_name, "stop", "XX", "eth0"); 703 ret = eval (script_name, "stop", "XX", "ath0"); 697 704 #elif HAVE_TW6600 698 705 ret = eval (script_name, "stop", "XX", "eth0");
Note: See TracChangeset
for help on using the changeset viewer.
