Changeset 12147
- Timestamp:
- 05/18/09 17:01:30 (4 years ago)
- Location:
- src/router/services
- Files:
-
- 5 edited
-
Makefile (modified) (3 diffs)
-
sysinit/defaults.c (modified) (1 diff)
-
sysinit/switchlib/icplus.c (modified) (2 diffs)
-
sysinit/sysinit-dir300.c (modified) (2 diffs)
-
sysinit/sysinit-ls2.c (modified) (4 diffs)
Legend:
- Unmodified
- Added
- Removed
-
src/router/services/Makefile
r12128 r12147 72 72 CFLAGS += -DHAVE_ACK 73 73 endif 74 ifeq ($(CONFIG_SWCONFIG),y) 75 CFLAGS += -DHAVE_SWCONFIG 76 endif 74 77 ifeq ($(CONFIG_DEFAULT_COUNTRYCODE),JP) 75 78 CFLAGS += -DBUFFALO_JP … … 372 375 CFLAGS += -DHAVE_FONERA 373 376 CFLAGS += -DHAVE_DIR400 374 #OBJS += icplus.o377 OBJS += icplus.o 375 378 else 376 379 ifeq ($(CONFIG_DIR300),y) 377 380 CFLAGS += -DHAVE_FONERA 378 381 CFLAGS += -DHAVE_DIR300 379 #OBJS += icplus.o382 OBJS += icplus.o 380 383 endif 381 384 endif … … 433 436 ifeq ($(CONFIG_LS2),y) 434 437 CFLAGS += -DHAVE_LS2 435 #OBJS += icplus.o438 OBJS += icplus.o 436 439 endif 437 440 endif -
src/router/services/sysinit/defaults.c
r12143 r12147 167 167 #elif HAVE_GGEW 168 168 #ifdef HAVE_NS5 169 {"ath0_regdomain", "GERMANY_BFWA", 0}, /* LAN IP address */ 170 #elif HAVE_EOC5610 169 171 {"ath0_regdomain", "GERMANY_BFWA", 0}, /* LAN IP address */ 170 172 #elif HAVE_NS2 -
src/router/services/sysinit/switchlib/icplus.c
r10208 r12147 248 248 #define IP_IS_WAN_PORT(port) ((port) == IP_WAN_PORT) 249 249 250 #define IP_LAN_PORT_VLAN 0250 #define IP_LAN_PORT_VLAN 1 251 251 #define IP_WAN_PORT_VLAN 2 252 252 … … 565 565 566 566 eval( "vconfig", "set_name_type", "VLAN_PLUS_VID_NO_PAD" ); 567 eval( "vconfig", "add", "eth0", " 0" );567 eval( "vconfig", "add", "eth0", "1" ); 568 568 eval( "vconfig", "add", "eth0", "2" ); 569 569 struct ifreq ifr; -
src/router/services/sysinit/sysinit-dir300.c
r12085 r12147 287 287 // system("swconfig dev eth0 set reset 1"); 288 288 // system("swconfig dev eth0 set enable_vlan 1"); 289 #ifdef HAVE_SWCONFIG 289 290 system("swconfig dev eth0 vlan 1 set ports \"0 1 2 3 5t\""); 290 291 system("swconfig dev eth0 vlan 2 set ports \"4 5t\""); … … 294 295 eval( "vconfig", "add", "eth0", "2" ); 295 296 // set network.eth0_1.ports="0 1 2 3 5t" 296 // vlan_init( 0xff ); // 4 lan + 1 wan 297 #else 298 vlan_init( 0xff ); // 4 lan + 1 wan 299 #endif 297 300 struct ifreq ifr; 298 301 int s; -
src/router/services/sysinit/sysinit-ls2.c
r12108 r12147 39 39 #include <sys/utsname.h> 40 40 #include <sys/wait.h> 41 #include <linux/if_ether.h> 42 #include <linux/mii.h> 43 #include <linux/sockios.h> 44 #include <net/if.h> 45 46 #include <arpa/inet.h> 47 #include <sys/socket.h> 48 #include <linux/sockios.h> 49 #include <linux/mii.h> 41 50 42 51 #include <bcmnvram.h> … … 133 142 #ifdef HAVE_BWRG1000 134 143 eval( "ifconfig", "eth0", "up" ); // wan 144 #ifdef HAVE_SWCONFIG 135 145 system("swconfig dev eth0 vlan 1 set ports \"0 1 2 3 5t\""); 136 146 system("swconfig dev eth0 vlan 2 set ports \"4 5t\""); … … 140 150 eval( "vconfig", "add", "eth0", "2" ); 141 151 #else 152 vlan_init( 0xff ); // 4 lan + 1 wan 153 #endif 154 #else 142 155 #ifdef HAVE_LS2 143 156 #if !defined(HAVE_NS2) && !defined(HAVE_BS2) && !defined(HAVE_LC2) && !defined(HAVE_BS2HP) && !defined(HAVE_MS2) && !defined(HAVE_PICO2) && !defined(HAVE_PICO2HP) 144 157 eval( "ifconfig", "eth0", "up" ); // wan 145 // system("swconfig dev eth0 set reset 1"); 146 // system("swconfig dev eth0 set enable_vlan 1"); 158 #ifdef HAVE_SWCONFIG 147 159 system("swconfig dev eth0 vlan 1 set ports \"0 1 2 3 5t\""); 148 160 system("swconfig dev eth0 vlan 2 set ports \"4 5t\""); … … 151 163 eval( "vconfig", "add", "eth0", "1" ); 152 164 eval( "vconfig", "add", "eth0", "2" ); 153 // set network.eth0_1.ports="0 1 2 3 5t" 154 // vlan_init( 0xff ); // 4 lan + 1 wan 165 #else 166 vlan_init( 0xff ); // 4 lan + 1 wan 167 #endif 155 168 struct ifreq ifr; 156 169 int s;
Note: See TracChangeset
for help on using the changeset viewer.
