Changeset 10033


Ignore:
Timestamp:
07/29/08 16:30:15 (5 years ago)
Author:
BrainSlayer
Message:

danube port

Location:
src/router
Files:
6 edited

Legend:

Unmodified
Added
Removed
  • src/router/kromo/dd-wrt/Makefile

    r9950 r10033  
    223223        cp -f sputnik/logo.png $(INSTALLDIR)/www/style 
    224224endif 
     225 
     226ifeq ($(CONFIG_TELCOM),y) 
     227        cp -f telcom/logo.png $(INSTALLDIR)/www/style 
     228endif 
     229 
    225230ifeq ($(CONFIG_GLAUCO),y) 
    226231        cp -f glauco/logo.png $(INSTALLDIR)/www/style 
  • src/router/services/Makefile

    r9964 r10033  
    351351CFLAGS += -DHAVE_LSX 
    352352endif 
     353ifeq ($(CONFIG_DANUBE),y) 
     354CFLAGS += -DHAVE_DANUBE 
     355endif 
    353356ifeq ($(CONFIG_TW6600),y) 
    354357CFLAGS += -DHAVE_TW6600 
     
    400403CFLAGS += -DHAVE_IPROUTE2 
    401404endif 
     405ifeq ($(CONFIG_TELCOM),y) 
     406CFLAGS += -DHAVE_TELCOM 
     407endif 
     408 
    402409ifeq ($(CONFIG_GGEW),y) 
    403410CFLAGS += -DHAVE_GGEW 
  • src/router/services/networking/firewall.c

    r9870 r10033  
    770770#ifndef HAVE_PB42 
    771771#ifndef HAVE_LSX 
     772#ifndef HAVE_DANUBE 
    772773#ifndef HAVE_WHRAG108 
    773774#ifndef HAVE_XSCALE 
     
    777778#ifndef HAVE_TW6600 
    778779          system2 ("echo 1 > /proc/sys/net/ipv4/conf/br0/loop"); 
     780#endif 
    779781#endif 
    780782#endif 
     
    28642866  else 
    28652867    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"); 
    28662877#elif HAVE_PB42 
    28672878  if ((fp = 
  • src/router/services/networking/interface.c

    r9938 r10033  
    248248start_setup_vlans (void) 
    249249{ 
    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) 
    251251  return 0; 
    252252#else 
     
    512512  snprintf (all_ifnames, 255, "%s %s %s", "eth0", 
    513513            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")); 
    514517#elif HAVE_TW6600 
    515518  snprintf (all_ifnames, 255, "%s %s %s", "eth0", 
  • src/router/services/networking/network.c

    r9943 r10033  
    900900  strcpy (mac, nvram_safe_get ("et0macaddr")); 
    901901#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 
    902921#ifdef HAVE_MR3202A 
    903922  if (getSTA () || getWET () || nvram_match ("ath0_mode", "wdssta") 
     
    13511370        if (!ifexists (name)) 
    13521371          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) 
    13541373        if (!strcmp (name, "eth2")) 
    13551374          { 
     
    17581777      nvram_set ("et0macaddr", nvram_safe_get ("lan_hwaddr")); 
    17591778#endif 
     1779#ifdef HAVE_DANUBE 
     1780      nvram_set ("et0macaddr", nvram_safe_get ("lan_hwaddr")); 
     1781#endif 
    17601782#ifdef HAVE_TW6600 
    17611783      nvram_set ("et0macaddr", nvram_safe_get ("lan_hwaddr")); 
     
    18381860#endif 
    18391861#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 
    18401870  strncpy (ifr.ifr_name, "ath0", IFNAMSIZ); 
    18411871  if (ioctl (s, SIOCGIFHWADDR, &ifr) == 0) 
     
    20052035#endif 
    20062036#ifdef HAVE_LSX 
     2037#define HAVE_RB500 
     2038#endif 
     2039#ifdef HAVE_DANUBE 
    20072040#define HAVE_RB500 
    20082041#endif 
     
    22672300                                           "") ? 
    22682301    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"; 
    22692306#elif HAVE_LS5 
    22702307  char *pppoe_wan_ifname = nvram_invmatch ("pppoe_wan_ifname", 
  • src/router/services/networking/wshaper.c

    r9986 r10033  
    113113#ifndef HAVE_PB42 
    114114#ifndef HAVE_LSX 
     115#ifndef HAVE_DANUBE 
    115116#ifndef HAVE_TW6600 
    116117  if (nvram_match ("portprio_support", "1")) 
     
    145146        ("echo FULL > /proc/switch/eth0/port/4/bandwidth 2>&1 > /dev/null"); 
    146147    } 
     148#endif 
    147149#endif 
    148150#endif 
     
    172174#ifndef HAVE_PB42 
    173175#ifndef HAVE_LSX 
     176#ifndef HAVE_DANUBE 
    174177  if (nvram_match ("portprio_support", "1")) 
    175178    { 
     
    201204        } 
    202205    } 
     206#endif 
    203207#endif 
    204208#endif 
     
    695699  ret = eval (script_name, "stop", "XX", "eth1"); 
    696700  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"); 
    697704#elif HAVE_TW6600 
    698705  ret = eval (script_name, "stop", "XX", "eth0"); 
Note: See TracChangeset for help on using the changeset viewer.