Changeset 12147


Ignore:
Timestamp:
05/18/09 17:01:30 (4 years ago)
Author:
BrainSlayer
Message:

need to rebuild. these fix broke the build

Location:
src/router/services
Files:
5 edited

Legend:

Unmodified
Added
Removed
  • src/router/services/Makefile

    r12128 r12147  
    7272CFLAGS += -DHAVE_ACK 
    7373endif 
     74ifeq ($(CONFIG_SWCONFIG),y) 
     75CFLAGS += -DHAVE_SWCONFIG 
     76endif 
    7477ifeq ($(CONFIG_DEFAULT_COUNTRYCODE),JP) 
    7578  CFLAGS += -DBUFFALO_JP 
     
    372375CFLAGS += -DHAVE_FONERA 
    373376CFLAGS += -DHAVE_DIR400 
    374 #OBJS += icplus.o 
     377OBJS += icplus.o 
    375378else 
    376379ifeq ($(CONFIG_DIR300),y) 
    377380CFLAGS += -DHAVE_FONERA 
    378381CFLAGS += -DHAVE_DIR300 
    379 #OBJS += icplus.o 
     382OBJS += icplus.o 
    380383endif 
    381384endif 
     
    433436ifeq ($(CONFIG_LS2),y) 
    434437CFLAGS += -DHAVE_LS2 
    435 #OBJS += icplus.o 
     438OBJS += icplus.o 
    436439endif 
    437440endif 
  • src/router/services/sysinit/defaults.c

    r12143 r12147  
    167167#elif HAVE_GGEW 
    168168#ifdef HAVE_NS5 
     169    {"ath0_regdomain", "GERMANY_BFWA", 0},      /* LAN IP address */ 
     170#elif HAVE_EOC5610 
    169171    {"ath0_regdomain", "GERMANY_BFWA", 0},      /* LAN IP address */ 
    170172#elif HAVE_NS2 
  • src/router/services/sysinit/switchlib/icplus.c

    r10208 r12147  
    248248#define IP_IS_WAN_PORT(port) ((port) == IP_WAN_PORT) 
    249249 
    250 #define IP_LAN_PORT_VLAN          0 
     250#define IP_LAN_PORT_VLAN          1 
    251251#define IP_WAN_PORT_VLAN          2 
    252252 
     
    565565 
    566566    eval( "vconfig", "set_name_type", "VLAN_PLUS_VID_NO_PAD" ); 
    567     eval( "vconfig", "add", "eth0", "0" ); 
     567    eval( "vconfig", "add", "eth0", "1" ); 
    568568    eval( "vconfig", "add", "eth0", "2" ); 
    569569    struct ifreq ifr; 
  • src/router/services/sysinit/sysinit-dir300.c

    r12085 r12147  
    287287//      system("swconfig dev eth0 set reset 1"); 
    288288//      system("swconfig dev eth0 set enable_vlan 1"); 
     289#ifdef HAVE_SWCONFIG 
    289290        system("swconfig dev eth0 vlan 1 set ports \"0 1 2 3 5t\""); 
    290291        system("swconfig dev eth0 vlan 2 set ports \"4 5t\""); 
     
    294295        eval( "vconfig", "add", "eth0", "2" ); 
    295296//      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 
    297300    struct ifreq ifr; 
    298301    int s; 
  • src/router/services/sysinit/sysinit-ls2.c

    r12108 r12147  
    3939#include <sys/utsname.h> 
    4040#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> 
    4150 
    4251#include <bcmnvram.h> 
     
    133142#ifdef HAVE_BWRG1000 
    134143    eval( "ifconfig", "eth0", "up" );   // wan 
     144#ifdef HAVE_SWCONFIG 
    135145    system("swconfig dev eth0 vlan 1 set ports \"0 1 2 3 5t\""); 
    136146    system("swconfig dev eth0 vlan 2 set ports \"4 5t\""); 
     
    140150    eval( "vconfig", "add", "eth0", "2" ); 
    141151#else 
     152        vlan_init( 0xff );      // 4 lan + 1 wan 
     153#endif 
     154#else 
    142155#ifdef HAVE_LS2 
    143156#if !defined(HAVE_NS2) && !defined(HAVE_BS2) && !defined(HAVE_LC2) && !defined(HAVE_BS2HP) && !defined(HAVE_MS2) && !defined(HAVE_PICO2) && !defined(HAVE_PICO2HP) 
    144157    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 
    147159        system("swconfig dev eth0 vlan 1 set ports \"0 1 2 3 5t\""); 
    148160        system("swconfig dev eth0 vlan 2 set ports \"4 5t\""); 
     
    151163        eval( "vconfig", "add", "eth0", "1" ); 
    152164        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 
    155168    struct ifreq ifr; 
    156169    int s; 
Note: See TracChangeset for help on using the changeset viewer.