| 1 | /* |
|---|
| 2 | * defaults.c |
|---|
| 3 | * |
|---|
| 4 | * Copyright (C) 2007 Sebastian Gottschall <gottschall@dd-wrt.com> |
|---|
| 5 | * |
|---|
| 6 | * This program is free software; you can redistribute it and/or |
|---|
| 7 | * modify it under the terms of the GNU General Public License |
|---|
| 8 | * as published by the Free Software Foundation; either version 2 |
|---|
| 9 | * of the License. |
|---|
| 10 | * |
|---|
| 11 | * This program is distributed in the hope that it will be useful, |
|---|
| 12 | * but WITHOUT ANY WARRANTY; without even the implied warranty of |
|---|
| 13 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
|---|
| 14 | * GNU General Public License for more details. |
|---|
| 15 | * |
|---|
| 16 | * You should have received a copy of the GNU General Public License |
|---|
| 17 | * along with this program; if not, write to the Free Software |
|---|
| 18 | * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. |
|---|
| 19 | * |
|---|
| 20 | * $Id: |
|---|
| 21 | */ |
|---|
| 22 | |
|---|
| 23 | #include <epivers.h> |
|---|
| 24 | #include <string.h> |
|---|
| 25 | #include <bcmnvram.h> |
|---|
| 26 | #include <typedefs.h> |
|---|
| 27 | #include <wlioctl.h> |
|---|
| 28 | #include <stdio.h> |
|---|
| 29 | #include <ezc.h> |
|---|
| 30 | |
|---|
| 31 | #include <code_pattern.h> |
|---|
| 32 | #include <cy_conf.h> |
|---|
| 33 | |
|---|
| 34 | #define XSTR(s) STR(s) |
|---|
| 35 | #define STR(s) #s |
|---|
| 36 | |
|---|
| 37 | #ifdef HAVE_SKYTEL |
|---|
| 38 | #define HAVE_POWERNOC_WORT54G 1 |
|---|
| 39 | #define HAVE_POWERNOC 1 |
|---|
| 40 | #endif |
|---|
| 41 | |
|---|
| 42 | #ifdef STORE_DEFAULTS |
|---|
| 43 | |
|---|
| 44 | struct nvram_tuple srouter_defaults[] = { |
|---|
| 45 | // {"default_init","1",0}, |
|---|
| 46 | {"nvram_ver", "3", 0}, |
|---|
| 47 | #ifdef HAVE_GGEW |
|---|
| 48 | {"router_style", "blue", 0}, |
|---|
| 49 | #elif HAVE_CORENET |
|---|
| 50 | {"router_style", "corenet", 0}, |
|---|
| 51 | #elif HAVE_XIOCOM |
|---|
| 52 | {"router_style", "xiocom", 0}, |
|---|
| 53 | #elif HAVE_DDLAN |
|---|
| 54 | {"router_style", "blue", 0}, |
|---|
| 55 | #elif HAVE_CESAR |
|---|
| 56 | {"router_style", "cesar", 0}, |
|---|
| 57 | #elif HAVE_THOM |
|---|
| 58 | {"router_style", "orange", 0}, |
|---|
| 59 | #elif HAVE_NINTENDO |
|---|
| 60 | {"router_style", "nintendo", 0}, |
|---|
| 61 | #elif HAVE_BUFFALO |
|---|
| 62 | {"router_style", "buffalo", 0}, |
|---|
| 63 | #elif HAVE_WIKINGS |
|---|
| 64 | {"router_style", "wikings", 0}, |
|---|
| 65 | #elif HAVE_NEXTMEDIA |
|---|
| 66 | {"router_style", "nextmedia", 0}, |
|---|
| 67 | #elif HAVE_3COM |
|---|
| 68 | {"router_style", "3com", 0}, |
|---|
| 69 | #elif HAVE_SPUTNIK |
|---|
| 70 | {"router_style", "red", 0}, |
|---|
| 71 | #elif HAVE_ERC |
|---|
| 72 | {"router_style", "erc-machinery", 0}, |
|---|
| 73 | #elif HAVE_MAKSAT |
|---|
| 74 | #ifdef HAVE_MAKSAT_BLANK |
|---|
| 75 | {"router_style", "orange", 0}, |
|---|
| 76 | #else |
|---|
| 77 | {"router_style", "maksat", 0}, |
|---|
| 78 | #endif |
|---|
| 79 | #elif HAVE_ALFA_BRANDING |
|---|
| 80 | {"router_style", "xirian", 0}, |
|---|
| 81 | #elif HAVE_CARLSONWIRELESS |
|---|
| 82 | {"router_style", "carlson", 0}, |
|---|
| 83 | #else |
|---|
| 84 | {"router_style", "elegant", 0}, |
|---|
| 85 | #endif |
|---|
| 86 | /* |
|---|
| 87 | * OS parameters |
|---|
| 88 | */ |
|---|
| 89 | {"os_name", "", 0}, /* OS name string */ |
|---|
| 90 | {"os_version", EPI_VERSION_STR, 0}, /* OS revision */ |
|---|
| 91 | {"os_date", __DATE__, 0}, /* OS date */ |
|---|
| 92 | {"ct_modules", "", 0}, /* CyberTAN kernel modules */ |
|---|
| 93 | {"wait_time", "5", 0}, |
|---|
| 94 | /* |
|---|
| 95 | * Miscellaneous parameters |
|---|
| 96 | */ |
|---|
| 97 | {"timer_interval", "3600", 0}, /* Timer interval in seconds */ |
|---|
| 98 | #ifdef BUFFALO_JP |
|---|
| 99 | {"daylight_time", "1", 0}, /* japan has no summertime option */ |
|---|
| 100 | {"time_zone", "+09", 0}, /* Time zone (GNU TZ format) */ |
|---|
| 101 | #else |
|---|
| 102 | {"daylight_time", "3", 0}, /* Automatically adjust clock for daylight */ |
|---|
| 103 | {"time_zone", "+01", 0}, /* Time zone (GNU TZ format) */ |
|---|
| 104 | #endif |
|---|
| 105 | #ifdef HAVE_SKYTRON |
|---|
| 106 | {"ntp_server", "ntp0.fau.de", 0}, /* NTP server *//* Modify */ |
|---|
| 107 | #elif HAVE_DDLAN |
|---|
| 108 | {"ntp_server", "10.0.0.1", 0}, /* NTP server *//* Modify */ |
|---|
| 109 | #else |
|---|
| 110 | {"ntp_server", "", 0}, /* NTP server *//* Modify */ |
|---|
| 111 | #endif |
|---|
| 112 | {"refresh_time", "3", 0}, /* GUI Auto-Refresh interval */ |
|---|
| 113 | {"log_level", "0", 0}, /* Bitmask 0:off 1:denied 2:accepted */ |
|---|
| 114 | |
|---|
| 115 | #ifdef HAVE_UPNP |
|---|
| 116 | #ifdef HAVE_SKYTRON |
|---|
| 117 | {"upnp_enable", "1", 0}, /* 0:Disable 1:Enable */ |
|---|
| 118 | #else |
|---|
| 119 | {"upnp_enable", "0", 0}, /* 0:Disable 1:Enable */ |
|---|
| 120 | #endif |
|---|
| 121 | {"upnp_config", "1", 0}, /* Allow Users to Configure. 0:Disable 1:Enable */ |
|---|
| 122 | {"upnp_internet_dis", "0", 0}, /* Allow Users to Disable Internet Access. 0:Disable 1:Enable */ |
|---|
| 123 | {"upnp_ssdp_interval", "60", 0}, /* SSDP interval */ |
|---|
| 124 | {"upnp_max_age", "180", 0}, /* MAX age time */ |
|---|
| 125 | {"upnpcas", "0", 0}, /* UPnP clear at startup */ |
|---|
| 126 | #endif |
|---|
| 127 | |
|---|
| 128 | {"ezc_enable", "1", 0}, /* Enable EZConfig updates */ |
|---|
| 129 | {"ezc_version", EZC_VERSION_STR, 0}, /* EZConfig version */ |
|---|
| 130 | {"is_default", "1", 0}, /* is it default setting: 1:yes 0:no */ |
|---|
| 131 | {"os_server", "", 0}, /* URL for getting upgrades */ |
|---|
| 132 | {"stats_server", "", 0}, /* URL for posting stats */ |
|---|
| 133 | {"console_loglevel", "7", 0}, /* Kernel panics only */ |
|---|
| 134 | |
|---|
| 135 | /* |
|---|
| 136 | * Big switches |
|---|
| 137 | */ |
|---|
| 138 | // {"router_disable", "0", 0}, /* lan_proto=static lan_stp=0 |
|---|
| 139 | // wan_proto=disabled */ |
|---|
| 140 | {"fw_disable", "0", 0}, /* Disable firewall (allow new connections |
|---|
| 141 | * from the WAN) */ |
|---|
| 142 | |
|---|
| 143 | /* |
|---|
| 144 | * TCP/IP parameters |
|---|
| 145 | */ |
|---|
| 146 | {"log_enable", "0", 0}, /* 0:Disable 1:Eanble *//* Add */ |
|---|
| 147 | {"log_ipaddr", "0", 0}, /* syslog recipient */ |
|---|
| 148 | |
|---|
| 149 | /* |
|---|
| 150 | * LAN H/W parameters |
|---|
| 151 | */ |
|---|
| 152 | {"lan_ifname", "", 0}, /* LAN interface name */ |
|---|
| 153 | {"lan_ifnames", "", 0}, /* Enslaved LAN interfaces */ |
|---|
| 154 | {"lan_hwnames", "", 0}, /* LAN driver names (e.g. et0) */ |
|---|
| 155 | {"lan_hwaddr", "", 0}, /* LAN interface MAC address */ |
|---|
| 156 | #if defined(HAVE_MADWIFI) || defined(HAVE_ATH9K) |
|---|
| 157 | {"wl0_ifname", "ath0", 0}, /* LAN interface MAC address */ |
|---|
| 158 | #else |
|---|
| 159 | {"wl0_ifname", "eth1", 0}, /* LAN interface MAC address */ |
|---|
| 160 | #endif |
|---|
| 161 | /* |
|---|
| 162 | * LAN TCP/IP parameters |
|---|
| 163 | */ |
|---|
| 164 | #ifdef HAVE_POWERNOC_WOAP54G |
|---|
| 165 | {"lan_proto", "static", 0}, /* [static|dhcp] */ |
|---|
| 166 | #elif HAVE_CARLSONWIRELESS |
|---|
| 167 | {"lan_proto", "static", 0}, /* [static|dhcp] */ |
|---|
| 168 | #else |
|---|
| 169 | {"lan_proto", "dhcp", 0}, /* [static|dhcp] */ |
|---|
| 170 | #endif |
|---|
| 171 | #ifdef HAVE_SKYTRON |
|---|
| 172 | {"lan_ipaddr", "192.168.0.1", 0}, /* LAN IP address */ |
|---|
| 173 | #elif HAVE_DDLAN |
|---|
| 174 | #ifdef HAVE_NS5 |
|---|
| 175 | {"ath0_regdomain", "GERMANY_BFWA", 0}, /* LAN IP address */ |
|---|
| 176 | {"ath0_channelbw", "10", 0}, /* LAN IP address */ |
|---|
| 177 | #else |
|---|
| 178 | {"ath0_regdomain", "GERMANY", 0}, /* LAN IP address */ |
|---|
| 179 | #endif |
|---|
| 180 | {"lan_ipaddr", "192.168.1.1", 0}, /* LAN IP address */ |
|---|
| 181 | #elif HAVE_BUFFALO |
|---|
| 182 | #ifdef BUFFALO_EU |
|---|
| 183 | {"ath0_regdomain", "GERMANY", 0}, /* LAN IP address */ |
|---|
| 184 | #endif |
|---|
| 185 | {"lan_ipaddr", "192.168.11.1", 0}, /* LAN IP address */ |
|---|
| 186 | {"dhcp_start", "2", 0}, /* DHCP Start IP */ |
|---|
| 187 | {"dhcp_num", "64", 0}, /* DHCP Start IP */ |
|---|
| 188 | #elif HAVE_GGEW |
|---|
| 189 | #if defined(HAVE_NS5) || defined(HAVE_EOC5610) |
|---|
| 190 | {"ath0_regdomain", "GERMANY_BFWA", 0}, /* LAN IP address */ |
|---|
| 191 | #elif defined(HAVE_NS2) || defined(HAVE_EOC2610) |
|---|
| 192 | {"ath0_regdomain", "GERMANY", 0}, /* LAN IP address */ |
|---|
| 193 | #elif defined(HAVE_WHRHPGN) |
|---|
| 194 | {"ath0_regdomain", "GERMANY", 0}, /* LAN IP address */ |
|---|
| 195 | #endif |
|---|
| 196 | {"lan_ipaddr", "192.168.1.1", 0}, /* LAN IP address */ |
|---|
| 197 | #elif HAVE_CORENET |
|---|
| 198 | {"ath0_regdomain", "UNITED_KINGDOM", 0}, /* LAN IP address */ |
|---|
| 199 | {"lan_ipaddr", "192.168.1.1", 0}, /* LAN IP address */ |
|---|
| 200 | #elif HAVE_NEWMEDIA |
|---|
| 201 | {"lan_ipaddr", "172.31.28.3", 0}, /* LAN IP address */ |
|---|
| 202 | #elif HAVE_FON |
|---|
| 203 | {"lan_ipaddr", "192.168.10.1", 0}, /* LAN IP address */ |
|---|
| 204 | #elif HAVE_34TELECOM |
|---|
| 205 | {"lan_ipaddr", "192.168.1.4", 0}, /* LAN IP address */ |
|---|
| 206 | #elif HAVE_SPUTNIK |
|---|
| 207 | {"lan_ipaddr", "192.168.180.1", 0}, /* LAN IP address */ |
|---|
| 208 | #elif HAVE_ERC |
|---|
| 209 | {"lan_ipaddr", "10.195.0.1", 0}, /* LAN IP address */ |
|---|
| 210 | #elif HAVE_BKM |
|---|
| 211 | {"lan_ipaddr", "192.168.42.1", 0}, /* LAN IP address */ |
|---|
| 212 | {"ath0_regdomain", "GERMANY", 0}, /* LAN IP address */ |
|---|
| 213 | {"ath1_regdomain", "GERMANY", 0}, /* LAN IP address */ |
|---|
| 214 | {"ath2_regdomain", "GERMANY", 0}, /* LAN IP address */ |
|---|
| 215 | {"ath3_regdomain", "GERMANY", 0}, /* LAN IP address */ |
|---|
| 216 | #elif HAVE_CARLSONWIRELESS |
|---|
| 217 | {"lan_ipaddr", "192.168.2.20", 0}, /* LAN ip address */ |
|---|
| 218 | {"ath0_regdomain", "UNITED_STATES_(PUBLIC_SAFETY)", 0}, /* ath0 regulatory domain */ |
|---|
| 219 | {"ath1_regdomain", "UNITED_STATES_(PUBLIC_SAFETY)", 0}, /* ath0 regulatory domain */ |
|---|
| 220 | {"ath2_regdomain", "UNITED_STATES_(PUBLIC_SAFETY)", 0}, /* ath0 regulatory domain */ |
|---|
| 221 | #else |
|---|
| 222 | {"lan_ipaddr", "192.168.1.1", 0}, /* LAN IP address */ |
|---|
| 223 | #endif |
|---|
| 224 | {"lan_netmask", "255.255.255.0", 0}, /* LAN netmask */ |
|---|
| 225 | {"lan_gateway", "0.0.0.0", 0}, /* LAN gateway */ |
|---|
| 226 | {"sv_localdns", "0.0.0.0", 0}, /* Local DNS */ |
|---|
| 227 | #ifdef HAVE_SKYTRON |
|---|
| 228 | {"lan_stp", "0", 0}, /* LAN spanning tree protocol */ |
|---|
| 229 | #elif HAVE_MAKSAT |
|---|
| 230 | {"lan_stp", "0", 0}, /* LAN spanning tree protocol */ |
|---|
| 231 | #else |
|---|
| 232 | {"lan_stp", "0", 0}, /* LAN spanning tree protocol */ |
|---|
| 233 | #endif |
|---|
| 234 | {"lan_wins", "", 0}, /* x.x.x.x x.x.x.x ... */ |
|---|
| 235 | #ifdef HAVE_SKYTRON |
|---|
| 236 | {"lan_domain", "local", 0}, /* LAN domain name */ |
|---|
| 237 | #else |
|---|
| 238 | {"lan_domain", "", 0}, /* LAN domain name */ |
|---|
| 239 | #endif |
|---|
| 240 | {"lan_lease", "86400", 0}, /* LAN lease time in seconds */ |
|---|
| 241 | // {"lan_lease", "1440", 0}, /* LAN lease time in seconds */ |
|---|
| 242 | |
|---|
| 243 | /* |
|---|
| 244 | * WAN H/W parameters |
|---|
| 245 | */ |
|---|
| 246 | {"wan_dial", "0", 0}, |
|---|
| 247 | {"wan_ifname", "", 0}, /* WAN interface name */ |
|---|
| 248 | {"wan_ifname2", "", 0}, /* WAN interface name (clone) */ |
|---|
| 249 | {"wan_ifnames", "", 0}, /* WAN interface names */ |
|---|
| 250 | {"wan_default", "", 0}, /* WAN interface names */ |
|---|
| 251 | {"wan_hwname", "", 0}, /* WAN driver name (e.g. et1) */ |
|---|
| 252 | {"wan_hwaddr", "", 0}, /* WAN interface MAC address */ |
|---|
| 253 | |
|---|
| 254 | /* |
|---|
| 255 | * WAN TCP/IP parameters |
|---|
| 256 | */ |
|---|
| 257 | {"wan_vdsl", "0", 0}, |
|---|
| 258 | {"dtag_vlan8", "0", 0}, |
|---|
| 259 | #ifdef HAVE_SKYTRON |
|---|
| 260 | {"wan_proto", "static", 0}, /* [static|dhcp|pppoe|disabled] */ |
|---|
| 261 | {"wan_ipaddr", "10.254.254.254", 0}, /* WAN IP address */ |
|---|
| 262 | {"wan_netmask", "255.0.0.0", 0}, /* WAN netmask */ |
|---|
| 263 | {"wan_gateway", "10.0.0.1", 0}, /* WAN gateway */ |
|---|
| 264 | {"wan_dns", "213.146.232.2 213.146.230.2", 0}, /* x.x.x.x x.x.x.x |
|---|
| 265 | * ... */ |
|---|
| 266 | #elif HAVE_TRIMAX |
|---|
| 267 | {"wan_proto", "dhcp", 0}, /* [static|dhcp|pppoe|disabled] */ |
|---|
| 268 | |
|---|
| 269 | {"wan_ipaddr", "0.0.0.0", 0}, /* WAN IP address */ |
|---|
| 270 | {"wan_netmask", "0.0.0.0", 0}, /* WAN netmask */ |
|---|
| 271 | {"wan_gateway", "0.0.0.0", 0}, /* WAN gateway */ |
|---|
| 272 | {"wan_dns", "", 0}, /* x.x.x.x x.x.x.x ... */ |
|---|
| 273 | #elif HAVE_DDLAN |
|---|
| 274 | {"wan_proto", "dhcp", 0}, /* [static|dhcp|pppoe|disabled] */ |
|---|
| 275 | |
|---|
| 276 | {"wan_ipaddr", "0.0.0.0", 0}, /* WAN IP address */ |
|---|
| 277 | {"wan_netmask", "0.0.0.0", 0}, /* WAN netmask */ |
|---|
| 278 | {"wan_gateway", "0.0.0.0", 0}, /* WAN gateway */ |
|---|
| 279 | {"wan_dns", "", 0}, /* x.x.x.x x.x.x.x ... */ |
|---|
| 280 | #elif defined(HAVE_GGEW) && defined(HAVE_NS5) |
|---|
| 281 | {"wan_proto", "pptp", 0}, /* [static|dhcp|pppoe|disabled] */ |
|---|
| 282 | #elif defined(HAVE_GGEW) && defined(HAVE_EOC5610) |
|---|
| 283 | {"wan_proto", "pptp", 0}, /* [static|dhcp|pppoe|disabled] */ |
|---|
| 284 | #elif defined(HAVE_GGEW) && defined(HAVE_NS2) |
|---|
| 285 | {"wan_proto", "pptp", 0}, /* [static|dhcp|pppoe|disabled] */ |
|---|
| 286 | #elif defined(HAVE_GGEW) && defined(HAVE_EOC2610) |
|---|
| 287 | {"wan_proto", "pptp", 0}, /* [static|dhcp|pppoe|disabled] */ |
|---|
| 288 | #elif defined(HAVE_GGEW) |
|---|
| 289 | {"wan_proto", "pptp", 0}, /* [static|dhcp|pppoe|disabled] */ |
|---|
| 290 | #elif HAVE_X86 |
|---|
| 291 | #ifdef HAVE_GW700 |
|---|
| 292 | {"wan_proto", "dhcp", 0}, /* [static|dhcp|pppoe|disabled] */ |
|---|
| 293 | #else |
|---|
| 294 | {"wan_proto", "disabled", 0}, /* [static|dhcp|pppoe|disabled] */ |
|---|
| 295 | #endif |
|---|
| 296 | #elif HAVE_WZRG450 |
|---|
| 297 | {"wan_proto", "dhcp", 0}, /* [static|dhcp|pppoe|disabled] */ |
|---|
| 298 | #elif HAVE_WLAEAG300N |
|---|
| 299 | {"wan_proto", "disabled", 0}, /* [static|dhcp|pppoe|disabled] */ |
|---|
| 300 | #elif HAVE_RS |
|---|
| 301 | {"wan_proto", "disabled", 0}, /* [static|dhcp|pppoe|disabled] */ |
|---|
| 302 | #elif HAVE_LAGUNA |
|---|
| 303 | {"wan_proto", "disabled", 0}, /* [static|dhcp|pppoe|disabled] */ |
|---|
| 304 | #elif HAVE_MAGICBOX |
|---|
| 305 | {"wan_proto", "disabled", 0}, /* [static|dhcp|pppoe|disabled] */ |
|---|
| 306 | #elif HAVE_RB600 |
|---|
| 307 | {"wan_proto", "disabled", 0}, /* [static|dhcp|pppoe|disabled] */ |
|---|
| 308 | #elif HAVE_TW6600 |
|---|
| 309 | {"wan_proto", "disabled", 0}, /* [static|dhcp|pppoe|disabled] */ |
|---|
| 310 | #elif HAVE_XSCALE |
|---|
| 311 | #ifdef HAVE_SPUTNIK |
|---|
| 312 | {"wan_proto", "dhcp", 0}, /* [static|dhcp|pppoe|disabled] */ |
|---|
| 313 | #elif HAVE_XIOCOM |
|---|
| 314 | {"wan_proto", "dhcp", 0}, /* [static|dhcp|pppoe|disabled] */ |
|---|
| 315 | #elif HAVE_CARLSONWIRELESS |
|---|
| 316 | {"wan_proto", "disabled", 0} /* [static|dhcp|pppoe|disabled] */ |
|---|
| 317 | #else |
|---|
| 318 | {"wan_proto", "disabled", 0}, /* [static|dhcp|pppoe|disabled] */ |
|---|
| 319 | #endif |
|---|
| 320 | #elif HAVE_EAP9550 |
|---|
| 321 | {"wan_proto", "disabled", 0}, /* [static|dhcp|pppoe|disabled] */ |
|---|
| 322 | #elif HAVE_WHRHPGN |
|---|
| 323 | {"wan_proto", "dhcp", 0}, /* [static|dhcp|pppoe|disabled] */ |
|---|
| 324 | #elif HAVE_DIR615E |
|---|
| 325 | {"wan_proto", "dhcp", 0}, /* [static|dhcp|pppoe|disabled] */ |
|---|
| 326 | #elif HAVE_DIR400 |
|---|
| 327 | {"wan_proto", "dhcp", 0}, /* [static|dhcp|pppoe|disabled] */ |
|---|
| 328 | #elif HAVE_WRT54G2 |
|---|
| 329 | {"wan_proto", "dhcp", 0}, /* [static|dhcp|pppoe|disabled] */ |
|---|
| 330 | #elif HAVE_RTG32 |
|---|
| 331 | {"wan_proto", "dhcp", 0}, /* [static|dhcp|pppoe|disabled] */ |
|---|
| 332 | #elif HAVE_DIR300 |
|---|
| 333 | {"wan_proto", "dhcp", 0}, /* [static|dhcp|pppoe|disabled] */ |
|---|
| 334 | #elif HAVE_FONERA |
|---|
| 335 | {"wan_proto", "disabled", 0}, /* [static|dhcp|pppoe|disabled] */ |
|---|
| 336 | #elif HAVE_NS2 |
|---|
| 337 | {"wan_proto", "disabled", 0}, /* [static|dhcp|pppoe|disabled] */ |
|---|
| 338 | #elif HAVE_LS5 |
|---|
| 339 | {"wan_proto", "disabled", 0}, /* [static|dhcp|pppoe|disabled] */ |
|---|
| 340 | #elif HAVE_PICO2 |
|---|
| 341 | {"wan_proto", "disabled", 0}, /* [static|dhcp|pppoe|disabled] */ |
|---|
| 342 | #elif HAVE_PICO2HP |
|---|
| 343 | {"wan_proto", "disabled", 0}, /* [static|dhcp|pppoe|disabled] */ |
|---|
| 344 | #elif HAVE_PICO5 |
|---|
| 345 | {"wan_proto", "disabled", 0}, /* [static|dhcp|pppoe|disabled] */ |
|---|
| 346 | #elif HAVE_LS2 |
|---|
| 347 | {"wan_proto", "disabled", 0}, /* [static|dhcp|pppoe|disabled] */ |
|---|
| 348 | #elif HAVE_CA8 |
|---|
| 349 | {"wan_proto", "disabled", 0}, /* [static|dhcp|pppoe|disabled] */ |
|---|
| 350 | #elif HAVE_RS |
|---|
| 351 | {"wan_proto", "dhcp", 0}, /* [static|dhcp|pppoe|disabled] */ |
|---|
| 352 | #elif HAVE_AP83 |
|---|
| 353 | {"wan_proto", "dhcp", 0}, /* [static|dhcp|pppoe|disabled] */ |
|---|
| 354 | #elif HAVE_AP96 |
|---|
| 355 | {"wan_proto", "dhcp", 0}, /* [static|dhcp|pppoe|disabled] */ |
|---|
| 356 | #elif HAVE_AP94 |
|---|
| 357 | {"wan_proto", "dhcp", 0}, /* [static|dhcp|pppoe|disabled] */ |
|---|
| 358 | #elif HAVE_JA76PF |
|---|
| 359 | #ifdef HAVE_MAKSAT |
|---|
| 360 | {"wan_proto", "disabled", 0}, /* [static|dhcp|pppoe|disabled] */ |
|---|
| 361 | #else |
|---|
| 362 | {"wan_proto", "dhcp", 0}, /* [static|dhcp|pppoe|disabled] */ |
|---|
| 363 | #endif |
|---|
| 364 | #elif HAVE_JWAP003 |
|---|
| 365 | #ifdef HAVE_MAKSAT |
|---|
| 366 | {"wan_proto", "disabled", 0}, /* [static|dhcp|pppoe|disabled] */ |
|---|
| 367 | #else |
|---|
| 368 | {"wan_proto", "dhcp", 0}, /* [static|dhcp|pppoe|disabled] */ |
|---|
| 369 | #endif |
|---|
| 370 | #elif HAVE_LSX |
|---|
| 371 | {"wan_proto", "disabled", 0}, /* [static|dhcp|pppoe|disabled] */ |
|---|
| 372 | #elif HAVE_DANUBE |
|---|
| 373 | {"wan_proto", "disabled", 0}, /* [static|dhcp|pppoe|disabled] */ |
|---|
| 374 | #elif HAVE_STORM |
|---|
| 375 | {"wan_proto", "disabled", 0}, /* [static|dhcp|pppoe|disabled] */ |
|---|
| 376 | #elif HAVE_OPENRISC |
|---|
| 377 | {"wan_proto", "dhcp", 0}, /* [static|dhcp|pppoe|disabled] */ |
|---|
| 378 | #elif HAVE_WP54G |
|---|
| 379 | {"wan_proto", "disabled", 0}, /* [static|dhcp|pppoe|disabled] */ |
|---|
| 380 | #elif HAVE_NP28G |
|---|
| 381 | {"wan_proto", "disabled", 0}, /* [static|dhcp|pppoe|disabled] */ |
|---|
| 382 | #elif HAVE_ECB9750 |
|---|
| 383 | {"wan_proto", "disabled", 0}, /* [static|dhcp|pppoe|disabled] */ |
|---|
| 384 | #elif HAVE_ADM5120 |
|---|
| 385 | {"wan_proto", "disabled", 0}, /* [static|dhcp|pppoe|disabled] */ |
|---|
| 386 | #else |
|---|
| 387 | {"wan_proto", "dhcp", 0}, /* [static|dhcp|pppoe|disabled] */ |
|---|
| 388 | |
|---|
| 389 | #endif |
|---|
| 390 | {"wan_ipaddr", "0.0.0.0", 0}, /* WAN IP address */ |
|---|
| 391 | {"wan_netmask", "0.0.0.0", 0}, /* WAN netmask */ |
|---|
| 392 | {"wan_gateway", "0.0.0.0", 0}, /* WAN gateway */ |
|---|
| 393 | {"wan_dns", "", 0}, /* x.x.x.x x.x.x.x ... */ |
|---|
| 394 | |
|---|
| 395 | {"wan_wins", "0.0.0.0", 0}, /* x.x.x.x x.x.x.x ... */ |
|---|
| 396 | |
|---|
| 397 | #ifdef HAVE_SKYTRON |
|---|
| 398 | {"wan_hostname", "skymax254b", 0}, /* WAN hostname */ |
|---|
| 399 | {"wan_domain", "local", 0}, /* WAN domain name */ |
|---|
| 400 | #else |
|---|
| 401 | {"wan_hostname", "", 0}, /* WAN hostname */ |
|---|
| 402 | {"wan_domain", "", 0}, /* WAN domain name */ |
|---|
| 403 | #endif |
|---|
| 404 | {"wan_lease", "86400", 0}, /* WAN lease time in seconds */ |
|---|
| 405 | {"static_route", "", 0}, /* Static routes |
|---|
| 406 | * (ipaddr:netmask:gateway:metric:ifname ...) |
|---|
| 407 | */ |
|---|
| 408 | {"static_route_name", "", 0}, /* Static routes name ($NAME:name) */ |
|---|
| 409 | |
|---|
| 410 | {"ses_enable", "1", 0}, /* enable ses */ |
|---|
| 411 | {"ses_event", "2", 0}, /* initial ses event */ |
|---|
| 412 | {"ses_button", "0", 0}, /* Affect custom actions to SES Button - 0-3: |
|---|
| 413 | * nothing, reboot, enable/disable wireless, |
|---|
| 414 | * custom script */ |
|---|
| 415 | {"ses_script", "", 0}, /* Custom script to launch when pushing SES |
|---|
| 416 | * Button */ |
|---|
| 417 | |
|---|
| 418 | {"wan_primary", "1", 0}, /* Primary wan connection */ |
|---|
| 419 | {"wan_unit", "0", 0}, /* Last configured connection */ |
|---|
| 420 | |
|---|
| 421 | /* |
|---|
| 422 | * Filters |
|---|
| 423 | */ |
|---|
| 424 | {"filter_maclist", "", 0}, /* xx:xx:xx:xx:xx:xx ... */ |
|---|
| 425 | {"filter_macmode", "deny", 0}, /* "allow" only, "deny" only, or |
|---|
| 426 | * "disabled" (allow all) */ |
|---|
| 427 | {"filter_client0", "", 0}, /* [lan_ipaddr0-lan_ipaddr1|*]:lan_port0-lan_port1,proto,enable,day_start-day_end,sec_start-sec_end,desc |
|---|
| 428 | */ |
|---|
| 429 | |
|---|
| 430 | {"filter_port", "", 0}, /* [lan_ipaddr|*]:lan_port0-lan_port1 */ |
|---|
| 431 | {"filter_rule1", "", 0}, /* $STAT: $NAME:$$ */ |
|---|
| 432 | {"filter_rule2", "", 0}, /* $STAT: $NAME:$$ */ |
|---|
| 433 | {"filter_rule3", "", 0}, /* $STAT: $NAME:$$ */ |
|---|
| 434 | {"filter_rule4", "", 0}, /* $STAT: $NAME:$$ */ |
|---|
| 435 | {"filter_rule5", "", 0}, /* $STAT: $NAME:$$ */ |
|---|
| 436 | {"filter_rule6", "", 0}, /* $STAT: $NAME:$$ */ |
|---|
| 437 | {"filter_rule7", "", 0}, /* $STAT: $NAME:$$ */ |
|---|
| 438 | {"filter_rule8", "", 0}, /* $STAT: $NAME:$$ */ |
|---|
| 439 | {"filter_rule9", "", 0}, /* $STAT: $NAME:$$ */ |
|---|
| 440 | {"filter_rule10", "", 0}, /* $STAT: $NAME:$$ */ |
|---|
| 441 | {"filter_tod1", "", 0}, /* Filter Time of the day */ |
|---|
| 442 | {"filter_tod2", "", 0}, /* Filter Time of the day */ |
|---|
| 443 | {"filter_tod3", "", 0}, /* Filter Time of the day */ |
|---|
| 444 | {"filter_tod4", "", 0}, /* Filter Time of the day */ |
|---|
| 445 | {"filter_tod5", "", 0}, /* Filter Time of the day */ |
|---|
| 446 | {"filter_tod6", "", 0}, /* Filter Time of the day */ |
|---|
| 447 | {"filter_tod7", "", 0}, /* Filter Time of the day */ |
|---|
| 448 | {"filter_tod8", "", 0}, /* Filter Time of the day */ |
|---|
| 449 | {"filter_tod9", "", 0}, /* Filter Time of the day */ |
|---|
| 450 | {"filter_tod10", "", 0}, /* Filter Time of the day */ |
|---|
| 451 | {"filter_tod_buf1", "", 0}, /* Filter Time of the day */ |
|---|
| 452 | {"filter_tod_buf2", "", 0}, /* Filter Time of the day */ |
|---|
| 453 | {"filter_tod_buf3", "", 0}, /* Filter Time of the day */ |
|---|
| 454 | {"filter_tod_buf4", "", 0}, /* Filter Time of the day */ |
|---|
| 455 | {"filter_tod_buf5", "", 0}, /* Filter Time of the day */ |
|---|
| 456 | {"filter_tod_buf6", "", 0}, /* Filter Time of the day */ |
|---|
| 457 | {"filter_tod_buf7", "", 0}, /* Filter Time of the day */ |
|---|
| 458 | {"filter_tod_buf8", "", 0}, /* Filter Time of the day */ |
|---|
| 459 | {"filter_tod_buf9", "", 0}, /* Filter Time of the day */ |
|---|
| 460 | {"filter_tod_buf10", "", 0}, /* Filter Time of the day */ |
|---|
| 461 | {"filter_ip_grp1", "", 0}, /* Filter IP group 1 */ |
|---|
| 462 | {"filter_ip_grp2", "", 0}, /* Filter IP group 1 */ |
|---|
| 463 | {"filter_ip_grp3", "", 0}, /* Filter IP group 1 */ |
|---|
| 464 | {"filter_ip_grp4", "", 0}, /* Filter IP group 1 */ |
|---|
| 465 | {"filter_ip_grp5", "", 0}, /* Filter IP group 1 */ |
|---|
| 466 | {"filter_ip_grp6", "", 0}, /* Filter IP group 1 */ |
|---|
| 467 | {"filter_ip_grp7", "", 0}, /* Filter IP group 1 */ |
|---|
| 468 | {"filter_ip_grp8", "", 0}, /* Filter IP group 1 */ |
|---|
| 469 | {"filter_ip_grp9", "", 0}, /* Filter IP group 1 */ |
|---|
| 470 | {"filter_ip_grp10", "", 0}, /* Filter IP group 1 */ |
|---|
| 471 | {"filter_mac_grp1", "", 0}, /* Filter MAC group 1 */ |
|---|
| 472 | {"filter_mac_grp2", "", 0}, /* Filter MAC group 1 */ |
|---|
| 473 | {"filter_mac_grp3", "", 0}, /* Filter MAC group 1 */ |
|---|
| 474 | {"filter_mac_grp4", "", 0}, /* Filter MAC group 1 */ |
|---|
| 475 | {"filter_mac_grp5", "", 0}, /* Filter MAC group 1 */ |
|---|
| 476 | {"filter_mac_grp6", "", 0}, /* Filter MAC group 1 */ |
|---|
| 477 | {"filter_mac_grp7", "", 0}, /* Filter MAC group 1 */ |
|---|
| 478 | {"filter_mac_grp8", "", 0}, /* Filter MAC group 1 */ |
|---|
| 479 | {"filter_mac_grp9", "", 0}, /* Filter MAC group 1 */ |
|---|
| 480 | {"filter_mac_grp10", "", 0}, /* Filter MAC group 1 */ |
|---|
| 481 | {"filter_web_host1", "", 0}, /* Website Blocking by URL Address */ |
|---|
| 482 | {"filter_web_host2", "", 0}, /* Website Blocking by URL Address */ |
|---|
| 483 | {"filter_web_host3", "", 0}, /* Website Blocking by URL Address */ |
|---|
| 484 | {"filter_web_host4", "", 0}, /* Website Blocking by URL Address */ |
|---|
| 485 | {"filter_web_host5", "", 0}, /* Website Blocking by URL Address */ |
|---|
| 486 | {"filter_web_host6", "", 0}, /* Website Blocking by URL Address */ |
|---|
| 487 | {"filter_web_host7", "", 0}, /* Website Blocking by URL Address */ |
|---|
| 488 | {"filter_web_host8", "", 0}, /* Website Blocking by URL Address */ |
|---|
| 489 | {"filter_web_host9", "", 0}, /* Website Blocking by URL Address */ |
|---|
| 490 | {"filter_web_host10", "", 0}, /* Website Blocking by URL Address */ |
|---|
| 491 | {"filter_web_url1", "", 0}, /* Website Blocking by keyword */ |
|---|
| 492 | {"filter_web_url2", "", 0}, /* Website Blocking by keyword */ |
|---|
| 493 | {"filter_web_url3", "", 0}, /* Website Blocking by keyword */ |
|---|
| 494 | {"filter_web_url4", "", 0}, /* Website Blocking by keyword */ |
|---|
| 495 | {"filter_web_url5", "", 0}, /* Website Blocking by keyword */ |
|---|
| 496 | {"filter_web_url6", "", 0}, /* Website Blocking by keyword */ |
|---|
| 497 | {"filter_web_url7", "", 0}, /* Website Blocking by keyword */ |
|---|
| 498 | {"filter_web_url8", "", 0}, /* Website Blocking by keyword */ |
|---|
| 499 | {"filter_web_url9", "", 0}, /* Website Blocking by keyword */ |
|---|
| 500 | {"filter_web_url10", "", 0}, /* Website Blocking by keyword */ |
|---|
| 501 | {"filter_port_grp1", "", 0}, /* Blocked Services */ |
|---|
| 502 | {"filter_port_grp2", "", 0}, /* Blocked Services */ |
|---|
| 503 | {"filter_port_grp3", "", 0}, /* Blocked Services */ |
|---|
| 504 | {"filter_port_grp4", "", 0}, /* Blocked Services */ |
|---|
| 505 | {"filter_port_grp5", "", 0}, /* Blocked Services */ |
|---|
| 506 | {"filter_port_grp6", "", 0}, /* Blocked Services */ |
|---|
| 507 | {"filter_port_grp7", "", 0}, /* Blocked Services */ |
|---|
| 508 | {"filter_port_grp8", "", 0}, /* Blocked Services */ |
|---|
| 509 | {"filter_port_grp9", "", 0}, /* Blocked Services */ |
|---|
| 510 | {"filter_port_grp10", "", 0}, /* Blocked Services */ |
|---|
| 511 | {"filter_dport_grp1", "", 0}, /* Blocked Services */ |
|---|
| 512 | {"filter_dport_grp2", "", 0}, /* Blocked Services */ |
|---|
| 513 | {"filter_dport_grp3", "", 0}, /* Blocked Services */ |
|---|
| 514 | {"filter_dport_grp4", "", 0}, /* Blocked Services */ |
|---|
| 515 | {"filter_dport_grp5", "", 0}, /* Blocked Services */ |
|---|
| 516 | {"filter_dport_grp6", "", 0}, /* Blocked Services */ |
|---|
| 517 | {"filter_dport_grp7", "", 0}, /* Blocked Services */ |
|---|
| 518 | {"filter_dport_grp8", "", 0}, /* Blocked Services */ |
|---|
| 519 | {"filter_dport_grp9", "", 0}, /* Blocked Services */ |
|---|
| 520 | {"filter_dport_grp10", "", 0}, /* Blocked Services */ |
|---|
| 521 | |
|---|
| 522 | /* |
|---|
| 523 | * Services List |
|---|
| 524 | */ |
|---|
| 525 | {"filter_services", "", 0}, /* only user defined filters */ |
|---|
| 526 | {"filter_services_1", "", 0}, |
|---|
| 527 | |
|---|
| 528 | /* |
|---|
| 529 | * Port forwards |
|---|
| 530 | */ |
|---|
| 531 | {"dmz_enable", "0", 0}, /* Enable (1) or Disable (0) */ |
|---|
| 532 | {"dmz_ipaddr", "0", 0}, /* x.x.x.x (equivalent to |
|---|
| 533 | * 0-60999>dmz_ipaddr:0-60999) */ |
|---|
| 534 | {"autofw_port0", "", 0}, /* out_proto:out_port,in_proto:in_port0-in_port1>to_port0-to_port1,enable,desc |
|---|
| 535 | */ |
|---|
| 536 | |
|---|
| 537 | /* |
|---|
| 538 | * DHCP server parameters |
|---|
| 539 | */ |
|---|
| 540 | {"dhcp_start", "100", 0}, /* First assignable DHCP address */ |
|---|
| 541 | // { "dhcp_end", "150", 0 }, /* Last assignable DHCP address */ /* Remove |
|---|
| 542 | // |
|---|
| 543 | // |
|---|
| 544 | // */ |
|---|
| 545 | {"dhcp_num", "50", 0}, /* Number of DHCP Users *//* Add */ |
|---|
| 546 | |
|---|
| 547 | #ifdef HAVE_SKYTRON |
|---|
| 548 | {"dhcp_lease", "10", 0}, /* LAN lease time in minutes */ |
|---|
| 549 | #else |
|---|
| 550 | {"dhcp_lease", "1440", 0}, /* LAN lease time in minutes */ |
|---|
| 551 | #endif |
|---|
| 552 | {"dhcp_domain", "wan", 0}, /* Use WAN domain name first if available |
|---|
| 553 | * (wan|lan) */ |
|---|
| 554 | {"dhcp_wins", "wan", 0}, /* Use WAN WINS first if available (wan|lan) */ |
|---|
| 555 | {"wan_get_dns", "", 0}, /* DNS IP address which get by dhcpc *//* Add */ |
|---|
| 556 | |
|---|
| 557 | /* |
|---|
| 558 | * Web server parameters |
|---|
| 559 | */ |
|---|
| 560 | #ifdef HAVE_POWERNOC |
|---|
| 561 | {"http_username", "bJz7PcC1rCRJQ", 0}, /* Username */ |
|---|
| 562 | #elif HAVE_ERC |
|---|
| 563 | {"http_username", "$1$OIw4f9TB$/dcveO2p0zs7eH0gHgsyw0", 0}, |
|---|
| 564 | #elif HAVE_CARLSONWIRELESS |
|---|
| 565 | {"http_username", "$1$y5qEiLaV$/2cQErs8qxs./J3pl2l2F.", 0}, /* HTTP username) */ |
|---|
| 566 | #else |
|---|
| 567 | {"http_username", "bJ/GddyoJuiU2", 0}, /* Username */ |
|---|
| 568 | #endif |
|---|
| 569 | |
|---|
| 570 | #ifdef HAVE_SKYTRON |
|---|
| 571 | {"skyhttp_username", "bJkMQXH.mZhZo", 0}, /* Username */ |
|---|
| 572 | {"skyhttp_passwd", "bJkMQXH.mZhZo", 0}, /* Password */ |
|---|
| 573 | {"http_passwd", "bJe0C3lwF.z0c", 0}, /* Password */ |
|---|
| 574 | #elif HAVE_NEWMEDIA |
|---|
| 575 | #ifdef HAVE_GGEW |
|---|
| 576 | {"http_passwd", "bJz7PcC1rCRJQ", 0}, /* Password */ |
|---|
| 577 | #elif HAVE_KODATA |
|---|
| 578 | {"http_passwd", "bJDLObifZlIRQ", 0}, /* Password */ |
|---|
| 579 | #else |
|---|
| 580 | {"http_passwd", "bJxJZz5DYRGxI", 0}, /* Password */ |
|---|
| 581 | #endif |
|---|
| 582 | #elif HAVE_CORENET |
|---|
| 583 | {"http_passwd", "$1$YwPEyUx/$LLV6oaeof4WDEdpHPEMpA.", 0}, /* Username */ |
|---|
| 584 | {"http_username", "$1$9wWnpX1Q$1fobI1HcfeXewVtWCnhxh.", 0}, /* Password */ |
|---|
| 585 | #elif HAVE_DDLAN |
|---|
| 586 | {"http_passwd", "4DC5smu4lEiiQ", 0}, /* Password */ |
|---|
| 587 | #elif HAVE_ERC |
|---|
| 588 | {"http_passwd", "$1$o.4B3QRb$KB7.8AOgnesREpnv8Zhfx1", 0}, |
|---|
| 589 | #elif HAVE_BKM |
|---|
| 590 | {"http_passwd", "$1$sur0onKC$Ltnjj7PBVQtmVTNYPb5XF0", 0}, |
|---|
| 591 | #elif HAVE_CARLSONWIRELESS |
|---|
| 592 | {"http_passwd", "$1$y5qEiLaV$KNvLd5jrLCfYko/e6e7lZ1", 0}, /* HTTP password) */ |
|---|
| 593 | #else |
|---|
| 594 | {"http_passwd", "bJz7PcC1rCRJQ", 0}, /* Password */ |
|---|
| 595 | #endif |
|---|
| 596 | |
|---|
| 597 | {"remote_ip_any", "1", 0}, /* allowed remote ip */ |
|---|
| 598 | {"remote_ip", "0.0.0.0 0", 0}, /* allowed remote ip range */ |
|---|
| 599 | {"http_wanport", "8080", 0}, /* WAN port to listen on */ |
|---|
| 600 | {"http_lanport", "80", 0}, /* LAN port to listen on */ |
|---|
| 601 | {"http_enable", "1", 0}, /* HTTP server enable/disable */ |
|---|
| 602 | #ifdef HAVE_HTTPS |
|---|
| 603 | {"https_enable", "0", 0}, /* HTTPS server enable/disable */ |
|---|
| 604 | #endif |
|---|
| 605 | {"http_method", "post", 0}, /* HTTP method */ |
|---|
| 606 | #ifdef HAVE_SAGAR |
|---|
| 607 | {"wl0_web_filter", "1", 0}, /* Allow/Deny Wireless Access Web */ |
|---|
| 608 | #else |
|---|
| 609 | {"wl0_web_filter", "0", 0}, /* Allow/Deny Wireless Access Web */ |
|---|
| 610 | {"wl1_web_filter", "0", 0}, |
|---|
| 611 | #endif |
|---|
| 612 | /* |
|---|
| 613 | * PPPoE parameters |
|---|
| 614 | */ |
|---|
| 615 | {"pppoe_ifname", "", 0}, /* PPPoE enslaved interface */ |
|---|
| 616 | {"ppp_username", "", 0}, /* PPP username */ |
|---|
| 617 | {"ppp_passwd", "", 0}, /* PPP password */ |
|---|
| 618 | {"ppp_idletime", "5", 0}, /* Dial on demand max idle time (mins) */ |
|---|
| 619 | {"ppp_keepalive", "0", 0}, /* Restore link automatically */ |
|---|
| 620 | {"ppp_demand", "0", 0}, /* Dial on demand */ |
|---|
| 621 | {"ppp_redialperiod", "30", 0}, /* Redial Period (seconds) */ |
|---|
| 622 | {"ppp_service", "", 0}, /* PPPoE service name */ |
|---|
| 623 | {"ppp_ac", "", 0}, /* PPPoE access concentrator name */ |
|---|
| 624 | {"ppp_static", "0", 0}, /* Enable / Disable Static IP */ |
|---|
| 625 | {"ppp_static_ip", "", 0}, /* PPPoE Static IP */ |
|---|
| 626 | {"ppp_get_ac", "", 0}, /* PPPoE Server ac name */ |
|---|
| 627 | {"ppp_get_srv", "", 0}, /* PPPoE Server service name */ |
|---|
| 628 | {"ppp_compression", "0", 0}, /* PPPoE compr. */ |
|---|
| 629 | {"ppp_mppe", "", 0}, /* PPPoE mppe parameters */ |
|---|
| 630 | {"ppp_mlppp", "0", 0}, /* ML-PPP */ |
|---|
| 631 | |
|---|
| 632 | /* |
|---|
| 633 | * Wireless parameters |
|---|
| 634 | */ |
|---|
| 635 | |
|---|
| 636 | {"wl0_nbw", "20", 0}, /* N-BW */ |
|---|
| 637 | {"wl1_nbw", "20", 0}, /* N-BW */ |
|---|
| 638 | {"wl0_nctrlsb", "lower", 0}, /* N-CTRL SB */ |
|---|
| 639 | {"wl1_nctrlsb", "lower", 0}, /* N-CTRL SB */ |
|---|
| 640 | {"wl0_nband", "2", 0}, /* N-BAND */ |
|---|
| 641 | {"wl1_nband", "2", 0}, /* N-BAND */ |
|---|
| 642 | {"wl0_nmcsidx", "-1", 0}, /* N-MCS Index - rate */ |
|---|
| 643 | {"wl1_nmcsidx", "-1", 0}, /* N-MCS Index - rate */ |
|---|
| 644 | {"wl0_nmode", "-1", 0}, /* N-mode */ |
|---|
| 645 | {"wl1_nmode", "-1", 0}, /* N-mode */ |
|---|
| 646 | {"wl0_nreqd", "0", 0}, /* Require 802.11n support */ |
|---|
| 647 | {"wl1_nreqd", "0", 0}, /* Require 802.11n support */ |
|---|
| 648 | {"wl0_vlan_prio_mode", "off", 0}, /* VLAN Priority support */ |
|---|
| 649 | {"wl1_vlan_prio_mode", "off", 0}, /* VLAN Priority support */ |
|---|
| 650 | {"wl0_leddc", "0x640000", 0}, /* 100% duty cycle for LED on router */ |
|---|
| 651 | {"wl_rxstreams", "0", 0}, /* 802.11n Rx Streams, 0 is invalid, WLCONF will |
|---|
| 652 | * change it to a radio appropriate default |
|---|
| 653 | */ |
|---|
| 654 | {"wl_txstreams", "0", 0}, /* 802.11n Tx Streams 0, 0 is invalid, WLCONF will |
|---|
| 655 | * change it to a radio appropriate default |
|---|
| 656 | */ |
|---|
| 657 | {"wl0_sta_retry_time", "5", 0}, /* 100% duty cycle for LED on router */ |
|---|
| 658 | #ifdef HAVE_DDLAN |
|---|
| 659 | {"wl_distance", "2000", 0}, /* ack timing, distance in meters */ |
|---|
| 660 | #elif HAVE_CARLSONWIRELESS |
|---|
| 661 | {"wl_distance", "0", 0}, /* ack timing, distance in meters */ |
|---|
| 662 | {"ath0_distance", "0", 0}, /* ack timing, distance in meters */ |
|---|
| 663 | #else |
|---|
| 664 | {"wl_distance", "2000", 0}, /* ack timing, distance in meters */ |
|---|
| 665 | #endif |
|---|
| 666 | {"wl_ifname", "", 0}, /* Interface name */ |
|---|
| 667 | {"wl_hwaddr", "", 0}, /* MAC address */ |
|---|
| 668 | {"wl_phytype", "g", 0}, /* Current wireless band ("a" (5 GHz), "b" * |
|---|
| 669 | * * (2.4 GHz), or "g" (2.4 GHz)) *//* |
|---|
| 670 | * Modify |
|---|
| 671 | */ |
|---|
| 672 | {"wl_corerev", "", 0}, /* Current core revision */ |
|---|
| 673 | {"wl_phytypes", "", 0}, /* List of supported wireless bands (e.g. |
|---|
| 674 | * "ga") */ |
|---|
| 675 | {"wl_radioids", "", 0}, /* List of radio IDs */ |
|---|
| 676 | {"wl_shortslot", "auto", 0}, |
|---|
| 677 | {"wl1_shortslot", "auto", 0}, |
|---|
| 678 | #ifdef HAVE_WTS |
|---|
| 679 | {"wl_ssid", "www.wts.com.ve", 0}, /* Service set ID (network name) */ |
|---|
| 680 | #elif HAVE_DDLAN |
|---|
| 681 | {"wl_ssid", "www.ddlan.de", 0}, /* Service set ID (network name) */ |
|---|
| 682 | #elif HAVE_SKYTEL |
|---|
| 683 | {"wl_ssid", "skytel", 0}, /* Service set ID (network name) */ |
|---|
| 684 | #elif HAVE_POWERNOC |
|---|
| 685 | {"wl_ssid", "powernoc", 0}, /* Service set ID (network name) */ |
|---|
| 686 | #elif HAVE_SKYTRON |
|---|
| 687 | {"wl_ssid", "SKYTRON Network", 0}, /* Service set ID (network name) */ |
|---|
| 688 | #elif HAVE_SAGAR |
|---|
| 689 | {"wl_ssid", "hotspot-internet", 0}, /* Service set ID (network name) */ |
|---|
| 690 | #elif HAVE_CORENET |
|---|
| 691 | {"wl_ssid", "corenet", 0}, /* Service set ID (network name) */ |
|---|
| 692 | #elif defined(HAVE_GGEW) && !defined(HAVE_NS5) && !defined(HAVE_NS2) && !defined(HAVE_EOC5610) && !defined(HAVE_BUFFALO_BL_DEFAULTS) |
|---|
| 693 | {"wl_ssid", "GGEWnet-WLAN", 0}, /* Service set ID (network name) */ |
|---|
| 694 | #elif HAVE_NEWMEDIA && !defined(HAVE_NS5) && !defined(HAVE_NS2) && !defined(HAVE_EOC5610) && !defined(HAVE_BUFFALO_BL_DEFAULTS) |
|---|
| 695 | {"wl_ssid", "changeme", 0}, /* Service set ID (network name) */ |
|---|
| 696 | #elif HAVE_MAKSAT |
|---|
| 697 | #if defined(HAVE_DEFREGDOMAIN) |
|---|
| 698 | {"ath0_regdomain", HAVE_DEFREGDOMAIN, 0}, |
|---|
| 699 | #endif |
|---|
| 700 | #ifdef HAVE_MAKSAT_BLANK |
|---|
| 701 | {"wl_ssid", "default", 0}, /* Service set ID (network name) */ |
|---|
| 702 | #else |
|---|
| 703 | {"wl_ssid", "maksat", 0}, /* Service set ID (network name) */ |
|---|
| 704 | #endif |
|---|
| 705 | #elif HAVE_TMK |
|---|
| 706 | {"wl_ssid", "KMT", 0}, /* Service set ID (network name) */ |
|---|
| 707 | #elif HAVE_BKM |
|---|
| 708 | {"wl_ssid", "BKM-HSDL", 0}, /* Service set ID (network name) */ |
|---|
| 709 | #elif HAVE_ERC |
|---|
| 710 | {"wl_ssid", "RemoteEngineer", 0}, /* Service set ID (network name) */ |
|---|
| 711 | #elif HAVE_34TELECOM |
|---|
| 712 | {"wl_ssid", "Lobo", 0}, /* Service set ID (network name) */ |
|---|
| 713 | #else |
|---|
| 714 | |
|---|
| 715 | #if defined(HAVE_MADWIFI) || defined(HAVE_ATH9K) |
|---|
| 716 | #ifdef HAVE_MAKSAT |
|---|
| 717 | {"show_hidden", "1", 0}, |
|---|
| 718 | {"ath0_regulatory", "0", 0}, |
|---|
| 719 | {"ath1_regulatory", "0", 0}, |
|---|
| 720 | {"ath2_regulatory", "0", 0}, |
|---|
| 721 | {"ath3_regulatory", "0", 0}, |
|---|
| 722 | #ifdef HAVE_MAKSAT_BLANK |
|---|
| 723 | {"ath0_ssid", "default", 0}, /* Service set ID (network name) */ |
|---|
| 724 | #else |
|---|
| 725 | {"ath0_ssid", "maksat", 0}, /* Service set ID (network name) */ |
|---|
| 726 | #endif |
|---|
| 727 | #else |
|---|
| 728 | #ifdef HAVE_BUFFALO |
|---|
| 729 | {"wl0_ssid", "BUFFALO", 0}, /* Service set ID (network name) */ |
|---|
| 730 | {"ath0_ssid", "BUFFALO", 0}, /* Service set ID (network name) */ |
|---|
| 731 | #elif defined(HAVE_TRIMAX) |
|---|
| 732 | {"wl0_ssid", "trimax", 0}, /* Service set ID (network name) */ |
|---|
| 733 | {"ath0_ssid", "trimax", 0}, /* Service set ID (network name) */ |
|---|
| 734 | #elif defined(HAVE_WIKINGS) |
|---|
| 735 | {"wl0_ssid", "Excel Networks", 0}, /* Service set ID (network name) */ |
|---|
| 736 | {"ath0_ssid", "Excel Networks", 0}, /* Service set ID (network name) */ |
|---|
| 737 | #elif defined(HAVE_NEXTMEDIA) |
|---|
| 738 | {"wl0_ssid", "nextmedia", 0}, /* Service set ID (network name) */ |
|---|
| 739 | {"ath0_ssid", "nextmedia", 0}, /* Service set ID (network name) */ |
|---|
| 740 | #elif defined(HAVE_CARLSONWIRELESS) |
|---|
| 741 | {"wl0_ifname", "ath0", 0}, /* Wireless interface name) */ |
|---|
| 742 | {"wl0_ssid", "Carlson", 0}, /* Service set ID (network name) */ |
|---|
| 743 | {"ath0_ssid", "Carlson", 0}, /* Service set ID (network name) */ |
|---|
| 744 | {"ath0_nctrlsb", "upper", 0}, /* ath0 11n sub channel */ |
|---|
| 745 | {"ath0_crypto", "aes", 0}, /* ath0 encryption type */ |
|---|
| 746 | {"ath0_security_mode", "psk2", 0}, /* ath0 encryption type */ |
|---|
| 747 | {"ath0_txpwrdbm", "19", 0}, /* ath0 transmit power */ |
|---|
| 748 | #elif defined(HAVE_GGEW) && defined(HAVE_NS5) |
|---|
| 749 | {"ath0_ssid", "GGEWnet-WLAN", 0}, /* Service set ID (network name) */ |
|---|
| 750 | #elif defined(HAVE_GGEW) && defined(HAVE_EOC5610) |
|---|
| 751 | {"ath0_ssid", "GGEWnet-WLAN", 0}, /* Service set ID (network name) */ |
|---|
| 752 | #elif defined(HAVE_GGEW) && defined(HAVE_NS2) |
|---|
| 753 | {"ath0_ssid", "GGEWnet-WLAN", 0}, /* Service set ID (network name) */ |
|---|
| 754 | #elif defined(HAVE_GGEW) && defined(HAVE_EOC2610) |
|---|
| 755 | {"ath0_ssid", "GGEWnet-WLAN", 0}, /* Service set ID (network name) */ |
|---|
| 756 | #elif defined(HAVE_CORENET) |
|---|
| 757 | {"ath0_ssid", "corenet", 0}, /* Service set ID (network name) */ |
|---|
| 758 | #elif defined(HAVE_DDLAN) |
|---|
| 759 | {"wl0_ssid", "www.ddlan.de", 0}, /* Service set ID (network name) */ |
|---|
| 760 | {"ath0_ssid", "www.ddlan.de", 0}, /* Service set ID (network name) */ |
|---|
| 761 | #elif defined(HAVE_TMK) |
|---|
| 762 | {"wl0_ssid", "KMT", 0}, /* Service set ID (network name) */ |
|---|
| 763 | {"ath0_ssid", "KMT", 0}, /* Service set ID (network name) */ |
|---|
| 764 | #elif defined(HAVE_BKM) |
|---|
| 765 | {"wl0_ssid", "BKM-HSDL", 0}, /* Service set ID (network name) */ |
|---|
| 766 | {"ath0_ssid", "BKM-HSDL", 0}, /* Service set ID (network name) */ |
|---|
| 767 | #elif defined(HAVE_ERC) |
|---|
| 768 | {"wl0_ssid", "ERC", 0}, /* Service set ID (network name) */ |
|---|
| 769 | {"ath0_ssid", "ERC", 0}, /* Service set ID (network name) */ |
|---|
| 770 | #else |
|---|
| 771 | {"wl0_ssid", "dd-wrt", 0}, /* Service set ID (network name) */ |
|---|
| 772 | {"ath0_ssid", "dd-wrt", 0}, /* Service set ID (network name) */ |
|---|
| 773 | #endif |
|---|
| 774 | |
|---|
| 775 | #endif |
|---|
| 776 | {"ath0.1_ssid", "", 0}, /* Service set ID (network name) */ |
|---|
| 777 | {"ath0.2_ssid", "", 0}, /* Service set ID (network name) */ |
|---|
| 778 | {"ath0.3_ssid", "", 0}, /* Service set ID (network name) */ |
|---|
| 779 | {"ath0_bridged", "1", 0}, /* Service set ID (network name) */ |
|---|
| 780 | {"ath0.1_bridged", "1", 0}, /* Service set ID (network name) */ |
|---|
| 781 | {"ath0.2_bridged", "1", 0}, /* Service set ID (network name) */ |
|---|
| 782 | {"ath0.3_bridged", "1", 0}, /* Service set ID (network name) */ |
|---|
| 783 | {"ath0_ipaddr", "0.0.0.0", 0}, /* Service set ID (network name) */ |
|---|
| 784 | {"ath0.1_ipaddr", "0.0.0.0", 0}, /* Service set ID (network name) */ |
|---|
| 785 | {"ath0.2_ipaddr", "0.0.0.0", 0}, /* Service set ID (network name) */ |
|---|
| 786 | {"ath0.3_ipaddr", "0.0.0.0", 0}, /* Service set ID (network name) */ |
|---|
| 787 | {"ath0_netmask", "0.0.0.0", 0}, /* Service set ID (network name) */ |
|---|
| 788 | {"ath0.1_netmask", "0.0.0.0", 0}, /* Service set ID (network name) */ |
|---|
| 789 | {"ath0.2_netmask", "0.0.0.0", 0}, /* Service set ID (network name) */ |
|---|
| 790 | {"ath0.3_netmask", "0.0.0.0", 0}, /* Service set ID (network name) */ |
|---|
| 791 | #else |
|---|
| 792 | #ifdef HAVE_BUFFALO |
|---|
| 793 | {"wl_ssid", "BUFFALO", 0}, /* Service set ID (network name) */ |
|---|
| 794 | {"wl0_ssid", "BUFFALO", 0}, /* Service set ID (network name) */ |
|---|
| 795 | #else |
|---|
| 796 | {"wl_ssid", "dd-wrt", 0}, /* Service set ID (network name) */ |
|---|
| 797 | {"wl0_ssid", "dd-wrt", 0}, /* Service set ID (network name) */ |
|---|
| 798 | {"wl1_ssid", "dd-wrt", 0}, /* Service set ID (network name) */ |
|---|
| 799 | #endif |
|---|
| 800 | {"wl0.1_ssid", "", 0}, /* Service set ID (network name) */ |
|---|
| 801 | {"wl0.2_ssid", "", 0}, /* Service set ID (network name) */ |
|---|
| 802 | {"wl0.3_ssid", "", 0}, /* Service set ID (network name) */ |
|---|
| 803 | {"wl0_bridged", "1", 0}, /* Service set ID (network name) */ |
|---|
| 804 | {"wl0.1_bridged", "1", 0}, /* Service set ID (network name) */ |
|---|
| 805 | {"wl0.2_bridged", "1", 0}, /* Service set ID (network name) */ |
|---|
| 806 | {"wl0.3_bridged", "1", 0}, /* Service set ID (network name) */ |
|---|
| 807 | {"wl0_ipaddr", "0.0.0.0", 0}, /* Service set ID (network name) */ |
|---|
| 808 | {"wl0.1_ipaddr", "0.0.0.0", 0}, /* Service set ID (network name) */ |
|---|
| 809 | {"wl0.2_ipaddr", "0.0.0.0", 0}, /* Service set ID (network name) */ |
|---|
| 810 | {"wl0.3_ipaddr", "0.0.0.0", 0}, /* Service set ID (network name) */ |
|---|
| 811 | {"wl0_netmask", "0.0.0.0", 0}, /* Service set ID (network name) */ |
|---|
| 812 | {"wl0.1_netmask", "0.0.0.0", 0}, /* Service set ID (network name) */ |
|---|
| 813 | {"wl0.2_netmask", "0.0.0.0", 0}, /* Service set ID (network name) */ |
|---|
| 814 | {"wl0.3_netmask", "0.0.0.0", 0}, /* Service set ID (network name) */ |
|---|
| 815 | #endif |
|---|
| 816 | #endif |
|---|
| 817 | |
|---|
| 818 | #ifdef HAVE_NEWMEDIA |
|---|
| 819 | {"wl_radio", "1", 0}, /* Enable (1) or disable (0) radio */ |
|---|
| 820 | #else |
|---|
| 821 | #if defined(HAVE_MADWIFI) || defined(HAVE_ATH9K) |
|---|
| 822 | {"ath0_radio", "1", 0}, /* Enable (1) or disable (0) radio */ |
|---|
| 823 | {"ath0_closed", "0", 0}, /* Closed (hidden) network */ |
|---|
| 824 | {"ath1_radio", "1", 0}, /* Enable (1) or disable (0) radio */ |
|---|
| 825 | {"ath1_closed", "0", 0}, /* Closed (hidden) network */ |
|---|
| 826 | {"ath2_radio", "1", 0}, /* Enable (1) or disable (0) radio */ |
|---|
| 827 | {"ath2_closed", "0", 0}, /* Closed (hidden) network */ |
|---|
| 828 | {"ath3_radio", "1", 0}, /* Enable (1) or disable (0) radio */ |
|---|
| 829 | {"ath3_closed", "0", 0}, /* Closed (hidden) network */ |
|---|
| 830 | {"ath4_radio", "1", 0}, /* Enable (1) or disable (0) radio */ |
|---|
| 831 | {"ath4_closed", "0", 0}, /* Closed (hidden) network */ |
|---|
| 832 | {"ath5_radio", "1", 0}, /* Enable (1) or disable (0) radio */ |
|---|
| 833 | {"ath5_closed", "0", 0}, /* Closed (hidden) network */ |
|---|
| 834 | #else |
|---|
| 835 | {"wl_radio", "1", 0}, /* Enable (1) or disable (0) radio */ |
|---|
| 836 | {"wl0_radio", "1", 0}, /* Enable (1) or disable (0) radio */ |
|---|
| 837 | {"wl0_closed", "0", 0}, /* Closed (hidden) network */ |
|---|
| 838 | {"wl0.1_closed", "0", 0}, /* Closed (hidden) network */ |
|---|
| 839 | {"wl0.2_closed", "0", 0}, /* Closed (hidden) network */ |
|---|
| 840 | {"wl0.3_closed", "0", 0}, /* Closed (hidden) network */ |
|---|
| 841 | |
|---|
| 842 | #endif |
|---|
| 843 | |
|---|
| 844 | #endif |
|---|
| 845 | |
|---|
| 846 | #ifdef HAVE_SAGAR |
|---|
| 847 | {"wl_ap_isolate", "1", 0}, /* AP isolate mode */ |
|---|
| 848 | #elif HAVE_FON |
|---|
| 849 | {"wl_ap_isolate", "1", 0}, /* AP isolate mode */ |
|---|
| 850 | #else |
|---|
| 851 | {"wl_ap_isolate", "0", 0}, /* AP isolate mode */ |
|---|
| 852 | {"wl1_ap_isolate", "0", 0}, |
|---|
| 853 | #endif |
|---|
| 854 | #ifdef HAVE_POWERNOC_WORT54G |
|---|
| 855 | {"wl_mode", "sta", 0}, /* AP mode (ap|sta|wet|infra) */ |
|---|
| 856 | {"wl0_mode", "sta", 0}, /* AP mode (ap|sta|wds) */ |
|---|
| 857 | #elif HAVE_SKYTRON |
|---|
| 858 | {"wl_mode", "sta", 0}, |
|---|
| 859 | {"wl0_mode", "sta", 0}, |
|---|
| 860 | #elif HAVE_GGEW && !defined(HAVE_NS5) && !defined(HAVE_NS2) && !defined(HAVE_EOC2610) && !defined(HAVE_EOC5610) |
|---|
| 861 | {"wl_mode", "sta", 0}, |
|---|
| 862 | {"wl0_mode", "sta", 0}, |
|---|
| 863 | #else |
|---|
| 864 | |
|---|
| 865 | #if !defined(HAVE_MADWIFI) && !defined(HAVE_ATH9K) |
|---|
| 866 | {"wl_mode", "ap", 0}, /* AP mode (ap|sta|wet|infra) */ |
|---|
| 867 | {"wl0_mode", "ap", 0}, /* AP mode (ap|sta|wet|infra) */ |
|---|
| 868 | #else |
|---|
| 869 | #ifdef HAVE_DDLAN |
|---|
| 870 | {"wl_mode", "sta", 0}, /* AP mode (ap|sta|wet|infra) */ |
|---|
| 871 | #elif defined(HAVE_GGEW) && defined(HAVE_NS5) |
|---|
| 872 | {"wl_mode", "sta", 0}, /* AP mode (ap|sta|wds) */ |
|---|
| 873 | #elif defined(HAVE_GGEW) && defined(HAVE_EOC5610) |
|---|
| 874 | {"wl_mode", "sta", 0}, /* AP mode (ap|sta|wds) */ |
|---|
| 875 | #elif defined(HAVE_GGEW) && defined(HAVE_NS2) |
|---|
| 876 | {"wl_mode", "sta", 0}, /* AP mode (ap|sta|wds) */ |
|---|
| 877 | #elif defined(HAVE_GGEW) && defined(HAVE_EOC2610) |
|---|
| 878 | {"wl_mode", "sta", 0}, /* AP mode (ap|sta|wds) */ |
|---|
| 879 | #elif defined(HAVE_GGEW) && defined(HAVE_WHRHPGN) |
|---|
| 880 | {"wl_mode", "sta", 0}, /* AP mode (ap|sta|wds) */ |
|---|
| 881 | #elif HAVE_TRIMAX |
|---|
| 882 | {"wl_mode", "sta", 0}, /* AP mode (ap|sta|wet|infra) */ |
|---|
| 883 | #else |
|---|
| 884 | {"wl_mode", "ap", 0}, /* AP mode (ap|sta|wet|infra) */ |
|---|
| 885 | #endif |
|---|
| 886 | #ifdef HAVE_CARLSONWIRELESS |
|---|
| 887 | {"ath0_channelbw", "40", 0}, /* ath0 channel bandwidth */ |
|---|
| 888 | #else |
|---|
| 889 | {"ath0_channelbw", "20", 0}, /* AP mode (ap|sta|wds) */ |
|---|
| 890 | {"ath1_channelbw", "20", 0}, /* AP mode (ap|sta|wds) */ |
|---|
| 891 | {"ath2_channelbw", "20", 0}, /* AP mode (ap|sta|wds) */ |
|---|
| 892 | {"ath3_channelbw", "20", 0}, /* AP mode (ap|sta|wds) */ |
|---|
| 893 | {"ath4_channelbw", "20", 0}, /* AP mode (ap|sta|wds) */ |
|---|
| 894 | {"ath5_channelbw", "20", 0}, /* AP mode (ap|sta|wds) */ |
|---|
| 895 | #endif |
|---|
| 896 | |
|---|
| 897 | #ifdef HAVE_DDLAN |
|---|
| 898 | {"ath0_mode", "sta", 0}, /* AP mode (ap|sta|wds) */ |
|---|
| 899 | #elif defined(HAVE_GGEW) && defined(HAVE_NS5) |
|---|
| 900 | {"ath0_mode", "sta", 0}, /* AP mode (ap|sta|wds) */ |
|---|
| 901 | #elif defined(HAVE_GGEW) && defined(HAVE_EOC5610) |
|---|
| 902 | {"ath0_mode", "sta", 0}, /* AP mode (ap|sta|wds) */ |
|---|
| 903 | #elif defined(HAVE_GGEW) && defined(HAVE_NS2) |
|---|
| 904 | {"ath0_mode", "sta", 0}, /* AP mode (ap|sta|wds) */ |
|---|
| 905 | #elif defined(HAVE_GGEW) && defined(HAVE_EOC2610) |
|---|
| 906 | {"ath0_mode", "sta", 0}, /* AP mode (ap|sta|wds) */ |
|---|
| 907 | #elif defined(HAVE_GGEW) && defined(HAVE_WHRHPGN) |
|---|
| 908 | {"ath0_mode", "ap", 0}, /* AP mode (ap|sta|wds) */ |
|---|
| 909 | #elif HAVE_TRIMAX |
|---|
| 910 | {"ath0_mode", "sta", 0}, /* AP mode (ap|sta|wds) */ |
|---|
| 911 | #elif HAVE_CARLSONWIRELES |
|---|
| 912 | {"ath0_mode", "wdsap", 0}, /* AP mode (wdsap) */ |
|---|
| 913 | #else |
|---|
| 914 | {"ath0_mode", "ap", 0}, /* AP mode (ap|sta|wds) */ |
|---|
| 915 | {"ath1_mode", "ap", 0}, /* AP mode (ap|sta|wds) */ |
|---|
| 916 | {"ath2_mode", "ap", 0}, /* AP mode (ap|sta|wds) */ |
|---|
| 917 | {"ath3_mode", "ap", 0}, /* AP mode (ap|sta|wds) */ |
|---|
| 918 | {"ath4_mode", "ap", 0}, /* AP mode (ap|sta|wds) */ |
|---|
| 919 | {"ath5_mode", "ap", 0}, /* AP mode (ap|sta|wds) */ |
|---|
| 920 | #endif |
|---|
| 921 | {"ath0_xr", "0", 0}, /* AP mode (ap|sta|wds) */ |
|---|
| 922 | {"ath1_xr", "0", 0}, /* AP mode (ap|sta|wds) */ |
|---|
| 923 | {"ath2_xr", "0", 0}, /* AP mode (ap|sta|wds) */ |
|---|
| 924 | {"ath3_xr", "0", 0}, /* AP mode (ap|sta|wds) */ |
|---|
| 925 | {"ath4_xr", "0", 0}, /* AP mode (ap|sta|wds) */ |
|---|
| 926 | {"ath5_xr", "0", 0}, /* AP mode (ap|sta|wds) */ |
|---|
| 927 | #endif |
|---|
| 928 | #endif |
|---|
| 929 | #if defined(HAVE_MADWIFI) || defined(HAVE_ATH9K) |
|---|
| 930 | {"ath0_lazywds", "0", 0}, /* Enable "lazy" WDS mode (0|1) */ |
|---|
| 931 | {"ath1_lazywds", "0", 0}, /* Enable "lazy" WDS mode (0|1) */ |
|---|
| 932 | {"ath2_lazywds", "0", 0}, /* Enable "lazy" WDS mode (0|1) */ |
|---|
| 933 | {"ath3_lazywds", "0", 0}, /* Enable "lazy" WDS mode (0|1) */ |
|---|
| 934 | #else |
|---|
| 935 | {"wl_lazywds", "0", 0}, /* Enable "lazy" WDS mode (0|1) */ |
|---|
| 936 | #endif |
|---|
| 937 | {"wl_wds", "", 0}, /* xx:xx:xx:xx:xx:xx ... */ |
|---|
| 938 | {"wl_wep", "disabled", 0}, /* Data encryption (off|wep|tkip|aes) */ |
|---|
| 939 | #if !defined(HAVE_MADWIFI) && !defined(HAVE_ATH9K) |
|---|
| 940 | {"wl_crypto", "off", 0}, /* Data encryption (off|wep|tkip|aes) */ |
|---|
| 941 | {"wl_auth", "0", 0}, /* Shared key authentication optional (0) or |
|---|
| 942 | * required (1) */ |
|---|
| 943 | {"wl0_crypto", "off", 0}, /* Data encryption (off|wep|tkip|aes) */ |
|---|
| 944 | {"wl0_auth", "0", 0}, /* Shared key authentication optional (0) or |
|---|
| 945 | * required (1) */ |
|---|
| 946 | {"wl1_auth", "0", 0}, |
|---|
| 947 | {"wl0_key", "1", 0}, /* Current WEP key */ |
|---|
| 948 | {"wl0_key1", "", 0}, /* 5/13 char ASCII or 10/26 char hex */ |
|---|
| 949 | {"wl0_key2", "", 0}, /* 5/13 char ASCII or 10/26 char hex */ |
|---|
| 950 | {"wl0_key3", "", 0}, /* 5/13 char ASCII or 10/26 char hex */ |
|---|
| 951 | {"wl0_key4", "", 0}, /* 5/13 char ASCII or 10/26 char hex */ |
|---|
| 952 | |
|---|
| 953 | {"wl0.1_crypto", "off", 0}, /* Data encryption (off|wep|tkip|aes) */ |
|---|
| 954 | {"wl0.1_auth", "0", 0}, /* Shared key authentication optional (0) or |
|---|
| 955 | * required (1) */ |
|---|
| 956 | {"wl0.1_key", "1", 0}, /* Current WEP key */ |
|---|
| 957 | {"wl0.1_key1", "", 0}, /* 5/13 char ASCII or 10/26 char hex */ |
|---|
| 958 | {"wl0.1_key2", "", 0}, /* 5/13 char ASCII or 10/26 char hex */ |
|---|
| 959 | {"wl0.1_key3", "", 0}, /* 5/13 char ASCII or 10/26 char hex */ |
|---|
| 960 | {"wl0.1_key4", "", 0}, /* 5/13 char ASCII or 10/26 char hex */ |
|---|
| 961 | |
|---|
| 962 | {"wl0.2_crypto", "off", 0}, /* Data encryption (off|wep|tkip|aes) */ |
|---|
| 963 | {"wl0.2_auth", "0", 0}, /* Shared key authentication optional (0) or |
|---|
| 964 | * required (1) */ |
|---|
| 965 | {"wl0.2_key", "1", 0}, /* Current WEP key */ |
|---|
| 966 | {"wl0.2_key1", "", 0}, /* 5/13 char ASCII or 10/26 char hex */ |
|---|
| 967 | {"wl0.2_key2", "", 0}, /* 5/13 char ASCII or 10/26 char hex */ |
|---|
| 968 | {"wl0.2_key3", "", 0}, /* 5/13 char ASCII or 10/26 char hex */ |
|---|
| 969 | {"wl0.2_key4", "", 0}, /* 5/13 char ASCII or 10/26 char hex */ |
|---|
| 970 | |
|---|
| 971 | {"wl0.3_crypto", "off", 0}, /* Data encryption (off|wep|tkip|aes) */ |
|---|
| 972 | {"wl0.3_auth", "0", 0}, /* Shared key authentication optional (0) or |
|---|
| 973 | * required (1) */ |
|---|
| 974 | {"wl0.3_key", "1", 0}, /* Current WEP key */ |
|---|
| 975 | {"wl0.3_key1", "", 0}, /* 5/13 char ASCII or 10/26 char hex */ |
|---|
| 976 | {"wl0.3_key2", "", 0}, /* 5/13 char ASCII or 10/26 char hex */ |
|---|
| 977 | {"wl0.3_key3", "", 0}, /* 5/13 char ASCII or 10/26 char hex */ |
|---|
| 978 | {"wl0.3_key4", "", 0}, /* 5/13 char ASCII or 10/26 char hex */ |
|---|
| 979 | #endif |
|---|
| 980 | {"wl_macmode", "disabled", 0}, /* "allow" only, "deny" only, or |
|---|
| 981 | * "disabled" (allow all) */ |
|---|
| 982 | {"wl_macmode1", "disabled", 0}, /* "disabled" or "other" for WEBB *//* Add */ |
|---|
| 983 | #if defined(HAVE_MADWIFI) || defined(HAVE_ATH9K) |
|---|
| 984 | #ifdef HAVE_CARLSONWIRELESS |
|---|
| 985 | {"ath0_channel", "5180", 0}, /* 5275ath0 frequency */ |
|---|
| 986 | {"ath0_rxantenna", "3", 0}, |
|---|
| 987 | {"ath0_txantenna", "3", 0}, |
|---|
| 988 | #else |
|---|
| 989 | {"ath0_channel", "0", 0}, /* Channel number */ |
|---|
| 990 | {"ath1_channel", "0", 0}, /* Channel number */ |
|---|
| 991 | #endif |
|---|
| 992 | #else |
|---|
| 993 | |
|---|
| 994 | {"wl0_channel", "6", 0}, /* Channel number */ |
|---|
| 995 | |
|---|
| 996 | #endif |
|---|
| 997 | {"wl_reg_mode", "off", 0}, /* Regulatory: 802.11H(h)/802.11D(d)/off(off) |
|---|
| 998 | */ |
|---|
| 999 | {"wl_dfs_preism", "60", 0}, /* 802.11H pre network CAC time */ |
|---|
| 1000 | {"wl_dfs_postism", "60", 0}, /* 802.11H In Service Monitoring CAC |
|---|
| 1001 | * time */ |
|---|
| 1002 | {"wl_rate", "0", 0}, /* Rate (bps, 0 for auto) */ |
|---|
| 1003 | {"wl1_rate", "0", 0}, /* Rate (bps, 0 for auto) */ |
|---|
| 1004 | {"wl_mrate", "0", 0}, /* Mcast Rate (bps, 0 for auto) */ |
|---|
| 1005 | {"wl_rateset", "default", 0}, /* "default" or "all" or "12" */ |
|---|
| 1006 | {"wl1_rateset", "default", 0}, /* "default" or "all" or "12" */ |
|---|
| 1007 | {"wl_frag", "2346", 0}, /* Fragmentation threshold */ |
|---|
| 1008 | {"wl1_frag", "2346", 0}, |
|---|
| 1009 | #ifdef HAVE_POWERNOC_WORT54G |
|---|
| 1010 | {"wl_rts", "65", 0}, /* RTS threshold */ |
|---|
| 1011 | #else |
|---|
| 1012 | {"wl_rts", "2347", 0}, /* RTS threshold */ |
|---|
| 1013 | {"wl1_rts", "2347", 0}, |
|---|
| 1014 | #endif |
|---|
| 1015 | {"wl_dtim", "1", 0}, /* DTIM period (3.11.5) *//* It is best value for WiFi test */ |
|---|
| 1016 | {"wl1_dtim", "1", 0}, |
|---|
| 1017 | {"wl_bcn", "100", 0}, /* Beacon interval */ |
|---|
| 1018 | {"wl1_bcn", "100", 0}, |
|---|
| 1019 | {"wl_plcphdr", "long", 0}, /* 802.11b PLCP preamble type */ |
|---|
| 1020 | {"wl1_plcphdr", "long", 0}, |
|---|
| 1021 | |
|---|
| 1022 | #ifdef HAVE_GGEW |
|---|
| 1023 | #if defined(HAVE_NS5) || defined(HAVE_EOC5610) |
|---|
| 1024 | {"ath0_net_mode", "a-only", 0}, |
|---|
| 1025 | #elif defined(HAVE_EOC2610) || defined(HAVE_NS2) |
|---|
| 1026 | {"ath0_net_mode", "mixed", 0}, |
|---|
| 1027 | #else |
|---|
| 1028 | {"wl0_net_mode", "b-only", 0}, /* Wireless mode (mixed|g-only|b-only|disable) */ |
|---|
| 1029 | #endif |
|---|
| 1030 | #elif HAVE_NEWMEDIA |
|---|
| 1031 | {"wl_net_mode", "disabled", 0}, /* Wireless mode |
|---|
| 1032 | * (mixed|g-only|b-only|disable) */ |
|---|
| 1033 | {"wl0_net_mode", "disabled", 0}, /* Wireless mode |
|---|
| 1034 | * (mixed|g-only|b-only|disable) */ |
|---|
| 1035 | #elif HAVE_DDLAN |
|---|
| 1036 | #ifdef HAVE_NS5 |
|---|
| 1037 | {"ath0_net_mode", "a-only", 0}, |
|---|
| 1038 | {"wl0_net_mode", "a-only", 0}, /* Wireless mode |
|---|
| 1039 | * (mixed|g-only|b-only|disable) */ |
|---|
| 1040 | #else |
|---|
| 1041 | {"ath0_net_mode", "b-only", 0}, |
|---|
| 1042 | {"wl0_net_mode", "b-only", 0}, /* Wireless mode |
|---|
| 1043 | * (mixed|g-only|b-only|disable) */ |
|---|
| 1044 | #endif |
|---|
| 1045 | #elif HAVE_CARLSONWIRELESS |
|---|
| 1046 | {"ath0_net_mode", "n5-only", 0},/* ath0 wireless mode */ |
|---|
| 1047 | #else |
|---|
| 1048 | {"wl_net_mode", "mixed", 0}, /* Wireless mode |
|---|
| 1049 | * (mixed|g-only|b-only|disable) */ |
|---|
| 1050 | {"wl0_net_mode", "mixed", 0}, /* Wireless mode |
|---|
| 1051 | * (mixed|g-only|b-only|disable) */ |
|---|
| 1052 | {"wl1_net_mode", "disabled", 0}, |
|---|
| 1053 | #endif |
|---|
| 1054 | |
|---|
| 1055 | #ifdef HAVE_SAGAR |
|---|
| 1056 | {"wl0_gmode", XSTR(GMODE_LEGACY_B), 0}, /* 54g mode */ |
|---|
| 1057 | #elif HAVE_GGEW |
|---|
| 1058 | {"wl0_gmode", "0", 0}, /* 54g mode */ |
|---|
| 1059 | #elif HAVE_NEWMEDIA |
|---|
| 1060 | {"wl0_gmode", "-1", 0}, /* 54g mode */ |
|---|
| 1061 | #else |
|---|
| 1062 | {"wl0_gmode", XSTR(GMODE_AUTO), 0}, /* 54g mode */ |
|---|
| 1063 | #endif |
|---|
| 1064 | |
|---|
| 1065 | {"wl_gmode_protection", "auto", 0}, /* 802.11g RTS/CTS protection |
|---|
| 1066 | * (off|auto) */ |
|---|
| 1067 | {"wl1_gmode_protection", "auto", 0}, |
|---|
| 1068 | {"wl_nmode_protection", "auto", 0}, /* 802.11g RTS/CTS protection |
|---|
| 1069 | * (off|auto) */ |
|---|
| 1070 | #ifdef HAVE_SKYTEL |
|---|
| 1071 | {"wl_frameburst", "on", 0}, /* BRCM Frambursting mode (off|on) */ |
|---|
| 1072 | #elif HAVE_GGEW |
|---|
| 1073 | {"wl_frameburst", "on", 0}, /* BRCM Frambursting mode (off|on) */ |
|---|
| 1074 | #else |
|---|
| 1075 | {"wl_frameburst", "off", 0}, /* BRCM Frambursting mode (off|on) */ |
|---|
| 1076 | {"wl1_frameburst", "off", 0}, |
|---|
| 1077 | #endif |
|---|
| 1078 | |
|---|
| 1079 | {"wl_infra", "1", 0}, /* Network Type (BSS/IBSS) */ |
|---|
| 1080 | |
|---|
| 1081 | {"wl_passphrase", "", 0}, /* Passphrase *//* Add */ |
|---|
| 1082 | {"wl_wep_bit", "64", 0}, /* WEP encryption [64 | 128] *//* Add */ |
|---|
| 1083 | {"wl_wep_buf", "", 0}, /* save all settings for web *//* Add */ |
|---|
| 1084 | {"wl_wep_gen", "", 0}, /* save all settings for generate button *//* Add */ |
|---|
| 1085 | {"wl_wep_last", "", 0}, /* Save last wl_wep mode *//* Add */ |
|---|
| 1086 | {"wl_active_mac", "", 0}, /* xx:xx:xx:xx:xx:xx ... *//* Add */ |
|---|
| 1087 | {"wl_mac_list", "", 0}, /* filter MAC *//* Add */ |
|---|
| 1088 | {"wl_mac_deny", "", 0}, /* filter MAC *//* Add */ |
|---|
| 1089 | |
|---|
| 1090 | /* |
|---|
| 1091 | * WPA parameters |
|---|
| 1092 | */ |
|---|
| 1093 | {"security_mode", "disabled", 0}, /* WPA mode |
|---|
| 1094 | * (disabled|radius|wpa|psk|wep) for |
|---|
| 1095 | * * * WEB *//* |
|---|
| 1096 | * Add |
|---|
| 1097 | */ |
|---|
| 1098 | {"security_mode_last", "", 0}, /* Save last WPA mode *//* Add */ |
|---|
| 1099 | #if !defined(HAVE_MADWIFI) && !defined(HAVE_ATH9K) |
|---|
| 1100 | {"wl0_auth_mode", "disabled", 0}, /* WPA mode (disabled|radius|wpa|psk) |
|---|
| 1101 | */ |
|---|
| 1102 | {"wl0_akm", "disabled", 0}, |
|---|
| 1103 | {"wl0_wpa_psk", "", 0}, /* WPA pre-shared key */ |
|---|
| 1104 | {"wl0_wpa_gtk_rekey", "3600", 0}, /* WPA GTK rekey interval *//* Modify */ |
|---|
| 1105 | {"wl0_radius_port", "1812", 0}, /* RADIUS server UDP port */ |
|---|
| 1106 | {"wl0_radius_ipaddr", "", 0}, /* RADIUS server IP address */ |
|---|
| 1107 | {"wl0_radius_key", "", 0}, /* RADIUS shared secret */ |
|---|
| 1108 | {"wl0_security_mode", "disabled", 0}, /* WPA mode */ |
|---|
| 1109 | |
|---|
| 1110 | {"wl0.1_auth_mode", "disabled", 0}, /* WPA mode (disabled|radius|wpa|psk) |
|---|
| 1111 | */ |
|---|
| 1112 | {"wl0.1_akm", "disabled", 0}, |
|---|
| 1113 | {"wl0.1_wpa_psk", "", 0}, /* WPA pre-shared key */ |
|---|
| 1114 | {"wl0.1_wpa_gtk_rekey", "3600", 0}, /* WPA GTK rekey interval *//* Modify */ |
|---|
| 1115 | {"wl0.1_radius_port", "1812", 0}, /* RADIUS server UDP port */ |
|---|
| 1116 | {"wl0.1_radius_ipaddr", "", 0}, /* RADIUS server IP address */ |
|---|
| 1117 | {"wl0.1_radius_key", "", 0}, /* RADIUS shared secret */ |
|---|
| 1118 | |
|---|
| 1119 | {"wl0.2_auth_mode", "disabled", 0}, /* WPA mode (disabled|radius|wpa|psk) |
|---|
| 1120 | */ |
|---|
| 1121 | {"wl0.2_akm", "disabled", 0}, |
|---|
| 1122 | {"wl0.2_wpa_psk", "", 0}, /* WPA pre-shared key */ |
|---|
| 1123 | {"wl0.2_wpa_gtk_rekey", "3600", 0}, /* WPA GTK rekey interval *//* Modify */ |
|---|
| 1124 | {"wl0.2_radius_port", "1812", 0}, /* RADIUS server UDP port */ |
|---|
| 1125 | {"wl0.2_radius_ipaddr", "", 0}, /* RADIUS server IP address */ |
|---|
| 1126 | {"wl0.2_radius_key", "", 0}, /* RADIUS shared secret */ |
|---|
| 1127 | |
|---|
| 1128 | {"wl0.3_auth_mode", "disabled", 0}, /* WPA mode (disabled|radius|wpa|psk) |
|---|
| 1129 | */ |
|---|
| 1130 | {"wl0.3_akm", "disabled", 0}, |
|---|
| 1131 | {"wl0.3_wpa_psk", "", 0}, /* WPA pre-shared key */ |
|---|
| 1132 | {"wl0.3_wpa_gtk_rekey", "3600", 0}, /* WPA GTK rekey interval *//* Modify */ |
|---|
| 1133 | {"wl0.3_radius_port", "1812", 0}, /* RADIUS server UDP port */ |
|---|
| 1134 | {"wl0.3_radius_ipaddr", "", 0}, /* RADIUS server IP address */ |
|---|
| 1135 | {"wl0.3_radius_key", "", 0}, /* RADIUS shared secret */ |
|---|
| 1136 | |
|---|
| 1137 | #else |
|---|
| 1138 | {"ath0_auth_mode", "disabled", 0}, /* WPA mode (disabled|radius|wpa|psk) |
|---|
| 1139 | */ |
|---|
| 1140 | #ifdef HAVE_CARLSONWIRELESS |
|---|
| 1141 | {"ath0_akm", "psk2", 0}, |
|---|
| 1142 | {"ath0_wpa_psk", "7078227000", 0}, /* ath0 encryption key */ |
|---|
| 1143 | #else |
|---|
| 1144 | {"ath0_akm", "disabled", 0}, |
|---|
| 1145 | {"ath0_wpa_psk", "", 0}, /* WPA pre-shared key */ |
|---|
| 1146 | #endif |
|---|
| 1147 | {"ath0_wpa_gtk_rekey", "3600", 0}, /* WPA GTK rekey interval *//* Modify */ |
|---|
| 1148 | {"ath0_radius_port", "1812", 0}, /* RADIUS server UDP port */ |
|---|
| 1149 | {"ath0_radius_ipaddr", "", 0}, /* RADIUS server IP address */ |
|---|
| 1150 | {"ath0_radius_key", "", 0}, /* RADIUS shared secret */ |
|---|
| 1151 | |
|---|
| 1152 | {"ath1_wpa_gtk_rekey", "3600", 0}, /* WPA GTK rekey interval *//* Modify */ |
|---|
| 1153 | {"ath1_radius_port", "1812", 0}, /* RADIUS server UDP port */ |
|---|
| 1154 | {"ath1_auth_mode", "disabled", 0}, /* WPA mode (disabled|radius|wpa|psk) |
|---|
| 1155 | */ |
|---|
| 1156 | {"ath1_akm", "disabled", 0}, |
|---|
| 1157 | {"ath1_wpa_psk", "", 0}, /* WPA pre-shared key */ |
|---|
| 1158 | {"ath1_radius_ipaddr", "", 0}, /* RADIUS server IP address */ |
|---|
| 1159 | {"ath1_radius_key", "", 0}, /* RADIUS shared secret */ |
|---|
| 1160 | |
|---|
| 1161 | {"ath2_wpa_gtk_rekey", "3600", 0}, /* WPA GTK rekey interval *//* Modify */ |
|---|
| 1162 | {"ath2_radius_port", "1812", 0}, /* RADIUS server UDP port */ |
|---|
| 1163 | {"ath2_auth_mode", "disabled", 0}, /* WPA mode (disabled|radius|wpa|psk) |
|---|
| 1164 | */ |
|---|
| 1165 | {"ath2_akm", "disabled", 0}, |
|---|
| 1166 | {"ath2_wpa_psk", "", 0}, /* WPA pre-shared key */ |
|---|
| 1167 | {"ath2_radius_ipaddr", "", 0}, /* RADIUS server IP address */ |
|---|
| 1168 | {"ath2_radius_key", "", 0}, /* RADIUS shared secret */ |
|---|
| 1169 | |
|---|
| 1170 | {"ath3_wpa_gtk_rekey", "3600", 0}, /* WPA GTK rekey interval *//* Modify */ |
|---|
| 1171 | {"ath3_radius_port", "1812", 0}, /* RADIUS server UDP port */ |
|---|
| 1172 | {"ath3_auth_mode", "disabled", 0}, /* WPA mode (disabled|radius|wpa|psk) |
|---|
| 1173 | */ |
|---|
| 1174 | {"ath3_akm", "disabled", 0}, |
|---|
| 1175 | {"ath3_wpa_psk", "", 0}, /* WPA pre-shared key */ |
|---|
| 1176 | {"ath3_radius_ipaddr", "", 0}, /* RADIUS server IP address */ |
|---|
| 1177 | {"ath3_radius_key", "", 0}, /* RADIUS shared secret */ |
|---|
| 1178 | |
|---|
| 1179 | {"ath4_wpa_gtk_rekey", "3600", 0}, /* WPA GTK rekey interval *//* Modify */ |
|---|
| 1180 | {"ath4_radius_port", "1812", 0}, /* RADIUS server UDP port */ |
|---|
| 1181 | {"ath4_auth_mode", "disabled", 0}, /* WPA mode (disabled|radius|wpa|psk) |
|---|
| 1182 | */ |
|---|
| 1183 | {"ath4_akm", "disabled", 0}, |
|---|
| 1184 | {"ath4_wpa_psk", "", 0}, /* WPA pre-shared key */ |
|---|
| 1185 | {"ath4_radius_ipaddr", "", 0}, /* RADIUS server IP address */ |
|---|
| 1186 | {"ath4_radius_key", "", 0}, /* RADIUS shared secret */ |
|---|
| 1187 | {"ath5_wpa_gtk_rekey", "3600", 0}, /* WPA GTK rekey interval *//* Modify */ |
|---|
| 1188 | {"ath5_radius_port", "1812", 0}, /* RADIUS server UDP port */ |
|---|
| 1189 | {"ath5_auth_mode", "disabled", 0}, /* WPA mode (disabled|radius|wpa|psk) |
|---|
| 1190 | */ |
|---|
| 1191 | {"ath5_akm", "disabled", 0}, |
|---|
| 1192 | {"ath5_wpa_psk", "", 0}, /* WPA pre-shared key */ |
|---|
| 1193 | {"ath5_radius_ipaddr", "", 0}, /* RADIUS server IP address */ |
|---|
| 1194 | {"ath5_radius_key", "", 0}, /* RADIUS shared secret */ |
|---|
| 1195 | #ifdef HAVE_GGEW |
|---|
| 1196 | {"ath0_8021xtype", "ttls", 0}, |
|---|
| 1197 | {"ath0_ttls8021xanon", "anonymous", 0}, |
|---|
| 1198 | {"ath0_ttls8021xphase2", "auth=PAP", 0}, |
|---|
| 1199 | {"ath0_ttls8021xca", "-----BEGIN CERTIFICATE-----\n" |
|---|
| 1200 | "MIICfTCCAeYCCQC/0xTqd3htwDANBgkqhkiG9w0BAQUFADCBgjELMAkGA1UEBhMC\n" |
|---|
| 1201 | "REUxDzANBgNVBAgTBkhlc3NlbjERMA8GA1UEBxMIQmVuc2hlaW0xFTATBgNVBAoT\n" |
|---|
| 1202 | "DEdHRVduZXQgR21iSDEXMBUGA1UEAxMOY2EuZ2dldy1uZXQuZGUxHzAdBgkqhkiG\n" |
|---|
| 1203 | "9w0BCQEWEGluZm9AZ2dldy1uZXQuZGUwHhcNMDgxMjEzMTIzNjU3WhcNMzcwOTEy\n" |
|---|
| 1204 | "MTIzNjU3WjCBgjELMAkGA1UEBhMCREUxDzANBgNVBAgTBkhlc3NlbjERMA8GA1UE\n" |
|---|
| 1205 | "BxMIQmVuc2hlaW0xFTATBgNVBAoTDEdHRVduZXQgR21iSDEXMBUGA1UEAxMOY2Eu\n" |
|---|
| 1206 | "Z2dldy1uZXQuZGUxHzAdBgkqhkiG9w0BCQEWEGluZm9AZ2dldy1uZXQuZGUwgZ8w\n" |
|---|
| 1207 | "DQYJKoZIhvcNAQEBBQADgY0AMIGJAoGBAPoMxn2kv8u/im4rt5nJjV1rYpWn4Xzi\n" |
|---|
| 1208 | "CME3aus+ZgRw6nrgWZSX8Zu1B4ZRpGD0I10UAgrjlkNHNVqiBkCxQd8MZDUsnzd+\n" |
|---|
| 1209 | "i4fZfYBqHliJUE4tCLWbBzMLiZTfuSb6TRaGhCnesXWQ6iIgjI/LJk274Wtq+zc8\n" |
|---|
| 1210 | "ENGTIghlKJH/AgMBAAEwDQYJKoZIhvcNAQEFBQADgYEAe7Q6yWGdMX5f6GDAbFVR\n" |
|---|
| 1211 | "xEZSLgIM6TIazKARcgoV1fD5ymfb9bkWHt2/gXp9EGKVH97nwlkxvR4oYCCVQ9Cp\n" |
|---|
| 1212 | "hyMc/KTqX9P9M6ZTxwIBN+bkgIIbmArzkHRMrONYOgxAW1oGV+mnHPmgo3rF7fuI\n" |
|---|
| 1213 | "kSlc2ZFwN5KCX2+3TdcNnVk=\n" "-----END CERTIFICATE-----\n", 0}, |
|---|
| 1214 | #else |
|---|
| 1215 | {"ath0_8021xtype", "peap", 0}, |
|---|
| 1216 | #endif |
|---|
| 1217 | {"ath1_8021xtype", "peap", 0}, |
|---|
| 1218 | {"ath2_8021xtype", "peap", 0}, |
|---|
| 1219 | {"ath3_8021xtype", "peap", 0}, |
|---|
| 1220 | {"ath4_8021xtype", "peap", 0}, |
|---|
| 1221 | {"ath5_8021xtype", "peap", 0}, |
|---|
| 1222 | #endif |
|---|
| 1223 | {"wl0_radius_override", "1", 0}, // overrides radius if server is |
|---|
| 1224 | // unavailable |
|---|
| 1225 | {"wl0_max_unauth_users", "0", 0}, // overrides radius if server is |
|---|
| 1226 | // unavailable |
|---|
| 1227 | {"wl0_radmacpassword", "0", 0}, // overrides radius if server is |
|---|
| 1228 | // unavailable |
|---|
| 1229 | #ifdef HAVE_SKYTEL |
|---|
| 1230 | {"wl_afterburner", "auto", 0}, /* Afterburner/Speedbooster */ |
|---|
| 1231 | #else |
|---|
| 1232 | {"wl_afterburner", "off", 0}, /* Afterburner/Speedbooster */ |
|---|
| 1233 | {"wl1_afterburner", "off", 0}, |
|---|
| 1234 | #endif |
|---|
| 1235 | {"wl_unit", "0", 0}, /* Last configured interface */ |
|---|
| 1236 | |
|---|
| 1237 | /* |
|---|
| 1238 | * Restore defaults |
|---|
| 1239 | */ |
|---|
| 1240 | {"restore_defaults", "0", 0}, /* Set to 0 to not restore defaults |
|---|
| 1241 | * on boot */ |
|---|
| 1242 | |
|---|
| 1243 | // ////////////////////////////////////// |
|---|
| 1244 | #ifdef HAVE_WTS |
|---|
| 1245 | {"router_name", "WTS", 0}, /* Router name string */ |
|---|
| 1246 | #elif HAVE_SKYTEL |
|---|
| 1247 | {"router_name", "ST54G", 0}, |
|---|
| 1248 | #elif HAVE_CORENET |
|---|
| 1249 | {"router_name", "core-packet", 0}, |
|---|
| 1250 | #elif HAVE_POWERNOC_WORT54G |
|---|
| 1251 | {"router_name", "WORT54G", 0}, |
|---|
| 1252 | #elif HAVE_POWERNOC_WOAP54G |
|---|
| 1253 | {"router_name", "WOAP54G", 0}, |
|---|
| 1254 | #elif HAVE_SKYTRON |
|---|
| 1255 | {"router_name", "skymax254b", 0}, |
|---|
| 1256 | #elif HAVE_34TELECOM |
|---|
| 1257 | {"router_name", "MiuraBasic", 0}, |
|---|
| 1258 | #elif HAVE_MAKSAT |
|---|
| 1259 | #ifdef HAVE_MAKSAT_BLANK |
|---|
| 1260 | {"router_name", "default", 0}, |
|---|
| 1261 | #else |
|---|
| 1262 | {"router_name", "MAKSAT", 0}, |
|---|
| 1263 | #endif |
|---|
| 1264 | #elif HAVE_TRIMAX |
|---|
| 1265 | {"router_name", "TRIMAX", 0}, |
|---|
| 1266 | #elif HAVE_WIKINGS |
|---|
| 1267 | {"router_name", "Excel Networks", 0}, |
|---|
| 1268 | #elif HAVE_NEXTMEDIA |
|---|
| 1269 | {"router_name", "NEXTMEDIA", 0}, |
|---|
| 1270 | #elif HAVE_DDLAN |
|---|
| 1271 | {"router_name", "WDSL-Modem XXX", 0}, |
|---|
| 1272 | #elif HAVE_TMK |
|---|
| 1273 | {"router_name", "KMT-WAS", 0}, |
|---|
| 1274 | #elif HAVE_BKM |
|---|
| 1275 | {"router_name", "BKM-HSDL", 0}, |
|---|
| 1276 | #elif HAVE_ERC |
|---|
| 1277 | {"router_name", "RemoteEngineer", 0}, |
|---|
| 1278 | {"ree_resetme", "1", 0}, |
|---|
| 1279 | #elif HAVE_CARLSONWIRELESS |
|---|
| 1280 | {"router_name", "CWT", 0}, /* Router name) */ |
|---|
| 1281 | #else |
|---|
| 1282 | {"router_name", MODEL_NAME, 0}, /* Router name string */ |
|---|
| 1283 | #endif |
|---|
| 1284 | {"ntp_mode", "auto", 0}, /* NTP server [manual | auto] */ |
|---|
| 1285 | {"pptp_server_ip", "", 0}, /* as same as WAN gateway */ |
|---|
| 1286 | {"pptp_get_ip", "", 0}, /* IP Address assigned by PPTP server */ |
|---|
| 1287 | |
|---|
| 1288 | /* |
|---|
| 1289 | * for firewall |
|---|
| 1290 | */ |
|---|
| 1291 | |
|---|
| 1292 | #ifdef HAVE_SKYTRON |
|---|
| 1293 | {"filter", "off", 0}, /* Firewall Protection [on|off] */ |
|---|
| 1294 | {"block_wan", "0", 0}, /* Block WAN Request [1|0] */ |
|---|
| 1295 | {"block_ident", "0", 0}, /* Block IDENT passthrough [1|0] */ |
|---|
| 1296 | {"block_proxy", "0", 0}, /* Block Proxy [1|0] */ |
|---|
| 1297 | {"block_java", "0", 0}, /* Block Java [1|0] */ |
|---|
| 1298 | {"block_activex", "0", 0}, /* Block ActiveX [1|0] */ |
|---|
| 1299 | {"block_cookie", "0", 0}, /* Block Cookie [1|0] */ |
|---|
| 1300 | {"block_multicast", "1", 0}, /* Multicast Pass Through [1|0] */ |
|---|
| 1301 | {"block_loopback", "0", 0}, /* Block NAT loopback [1|0] */ |
|---|
| 1302 | {"ipsec_pass", "1", 0}, /* IPSec Pass Through [1|0] */ |
|---|
| 1303 | {"pptp_pass", "1", 0}, /* PPTP Pass Through [1|0] */ |
|---|
| 1304 | {"l2tp_pass", "1", 0}, /* L2TP Pass Through [1|0] */ |
|---|
| 1305 | {"remote_management", "1", 0}, /* Remote Management [1|0] */ |
|---|
| 1306 | #ifndef HAVE_MICRO |
|---|
| 1307 | {"limit_http", "0", 0}, /* Impede DDoS/Brutforce [1|0] */ |
|---|
| 1308 | {"limit_ssh", "0", 0}, /* Impede DDoS/Brutforce [1|0] */ |
|---|
| 1309 | {"limit_telnet", "0", 0}, /* Impede DDoS/Brutforce [1|0] */ |
|---|
| 1310 | #endif |
|---|
| 1311 | #elif HAVE_SAGAR |
|---|
| 1312 | {"filter", "off", 0}, /* Firewall Protection [on|off] */ |
|---|
| 1313 | {"block_wan", "0", 0}, /* Block WAN Request [1|0] */ |
|---|
| 1314 | {"block_ident", "0", 0}, /* Block IDENT passthrough [1|0] */ |
|---|
| 1315 | {"block_proxy", "0", 0}, /* Block Proxy [1|0] */ |
|---|
| 1316 | {"block_java", "0", 0}, /* Block Java [1|0] */ |
|---|
| 1317 | {"block_activex", "0", 0}, /* Block ActiveX [1|0] */ |
|---|
| 1318 | {"block_cookie", "0", 0}, /* Block Cookie [1|0] */ |
|---|
| 1319 | {"block_multicast", "1", 0}, /* Multicast Pass Through [1|0] */ |
|---|
| 1320 | {"block_loopback", "0", 0}, /* Block NAT loopback [1|0] */ |
|---|
| 1321 | {"ipsec_pass", "1", 0}, /* IPSec Pass Through [1|0] */ |
|---|
| 1322 | {"pptp_pass", "1", 0}, /* PPTP Pass Through [1|0] */ |
|---|
| 1323 | {"l2tp_pass", "1", 0}, /* L2TP Pass Through [1|0] */ |
|---|
| 1324 | {"remote_management", "1", 0}, /* Remote Management [1|0] */ |
|---|
| 1325 | #ifndef HAVE_MICRO |
|---|
| 1326 | {"limit_http", "0", 0}, /* Impede DDoS/Brutforce [1|0] */ |
|---|
| 1327 | {"limit_ssh", "0", 0}, /* Impede DDoS/Brutforce [1|0] */ |
|---|
| 1328 | {"limit_telnet", "0", 0}, /* Impede DDoS/Brutforce [1|0] */ |
|---|
| 1329 | #endif |
|---|
| 1330 | #elif HAVE_DDLAN |
|---|
| 1331 | {"filter", "off", 0}, /* Firewall Protection [on|off] */ |
|---|
| 1332 | {"block_wan", "0", 0}, /* Block WAN Request [1|0] */ |
|---|
| 1333 | {"block_ident", "0", 0}, /* Block IDENT passthrough [1|0] */ |
|---|
| 1334 | {"block_proxy", "0", 0}, /* Block Proxy [1|0] */ |
|---|
| 1335 | {"block_java", "0", 0}, /* Block Java [1|0] */ |
|---|
| 1336 | {"block_activex", "0", 0}, /* Block ActiveX [1|0] */ |
|---|
| 1337 | {"block_cookie", "0", 0}, /* Block Cookie [1|0] */ |
|---|
| 1338 | {"block_multicast", "1", 0}, /* Multicast Pass Through [1|0] */ |
|---|
| 1339 | {"block_loopback", "0", 0}, /* Block NAT loopback [1|0] */ |
|---|
| 1340 | {"ipsec_pass", "1", 0}, /* IPSec Pass Through [1|0] */ |
|---|
| 1341 | {"pptp_pass", "1", 0}, /* PPTP Pass Through [1|0] */ |
|---|
| 1342 | {"l2tp_pass", "1", 0}, /* L2TP Pass Through [1|0] */ |
|---|
| 1343 | {"remote_management", "1", 0}, /* Remote Management [1|0] */ |
|---|
| 1344 | #ifndef HAVE_MICRO |
|---|
| 1345 | {"limit_http", "0", 0}, /* Impede DDoS/Brutforce [1|0] */ |
|---|
| 1346 | {"limit_ssh", "0", 0}, /* Impede DDoS/Brutforce [1|0] */ |
|---|
| 1347 | {"limit_telnet", "0", 0}, /* Impede DDoS/Brutforce [1|0] */ |
|---|
| 1348 | #endif |
|---|
| 1349 | #elif HAVE_MAKSAT |
|---|
| 1350 | {"filter", "off", 0}, /* Firewall Protection [on|off] */ |
|---|
| 1351 | {"block_wan", "0", 0}, /* Block WAN Request [1|0] */ |
|---|
| 1352 | {"block_ident", "0", 0}, /* Block IDENT passthrough [1|0] */ |
|---|
| 1353 | {"block_proxy", "0", 0}, /* Block Proxy [1|0] */ |
|---|
| 1354 | {"block_java", "0", 0}, /* Block Java [1|0] */ |
|---|
| 1355 | {"block_activex", "0", 0}, /* Block ActiveX [1|0] */ |
|---|
| 1356 | {"block_cookie", "0", 0}, /* Block Cookie [1|0] */ |
|---|
| 1357 | {"block_multicast", "1", 0}, /* Multicast Pass Through [1|0] */ |
|---|
| 1358 | {"block_loopback", "0", 0}, /* Block NAT loopback [1|0] */ |
|---|
| 1359 | {"ipsec_pass", "1", 0}, /* IPSec Pass Through [1|0] */ |
|---|
| 1360 | {"pptp_pass", "1", 0}, /* PPTP Pass Through [1|0] */ |
|---|
| 1361 | {"l2tp_pass", "1", 0}, /* L2TP Pass Through [1|0] */ |
|---|
| 1362 | #ifndef HAVE_MICRO |
|---|
| 1363 | {"limit_http", "0", 0}, /* Impede DDoS/Brutforce [1|0] */ |
|---|
| 1364 | {"limit_ssh", "0", 0}, /* Impede DDoS/Brutforce [1|0] */ |
|---|
| 1365 | {"limit_telnet", "0", 0}, /* Impede DDoS/Brutforce [1|0] */ |
|---|
| 1366 | #endif |
|---|
| 1367 | #elif HAVE_XIOCOM |
|---|
| 1368 | {"filter", "off", 0}, /* Firewall Protection [on|off] */ |
|---|
| 1369 | {"block_wan", "0", 0}, /* Block WAN Request [1|0] */ |
|---|
| 1370 | {"block_ident", "0", 0}, /* Block IDENT passthrough [1|0] */ |
|---|
| 1371 | {"block_proxy", "0", 0}, /* Block Proxy [1|0] */ |
|---|
| 1372 | {"block_java", "0", 0}, /* Block Java [1|0] */ |
|---|
| 1373 | {"block_activex", "0", 0}, /* Block ActiveX [1|0] */ |
|---|
| 1374 | {"block_cookie", "0", 0}, /* Block Cookie [1|0] */ |
|---|
| 1375 | {"block_multicast", "1", 0}, /* Multicast Pass Through [1|0] */ |
|---|
| 1376 | {"block_loopback", "0", 0}, /* Block NAT loopback [1|0] */ |
|---|
| 1377 | {"ipsec_pass", "1", 0}, /* IPSec Pass Through [1|0] */ |
|---|
| 1378 | {"pptp_pass", "1", 0}, /* PPTP Pass Through [1|0] */ |
|---|
| 1379 | {"l2tp_pass", "1", 0}, /* L2TP Pass Through [1|0] */ |
|---|
| 1380 | {"remote_management", "0", 0}, /* Remote Management [1|0] */ |
|---|
| 1381 | #ifndef HAVE_MICRO |
|---|
| 1382 | {"limit_http", "0", 0}, /* Impede DDoS/Brutforce [1|0] */ |
|---|
| 1383 | {"limit_ssh", "0", 0}, /* Impede DDoS/Brutforce [1|0] */ |
|---|
| 1384 | {"limit_telnet", "0", 0}, /* Impede DDoS/Brutforce [1|0] */ |
|---|
| 1385 | #endif |
|---|
| 1386 | #else |
|---|
| 1387 | {"filter", "on", 0}, /* Firewall Protection [on|off] */ |
|---|
| 1388 | {"block_wan", "1", 0}, /* Block WAN Request [1|0] */ |
|---|
| 1389 | {"block_ident", "1", 0}, /* Block IDENT passthrough [1|0] */ |
|---|
| 1390 | {"block_proxy", "0", 0}, /* Block Proxy [1|0] */ |
|---|
| 1391 | {"block_java", "0", 0}, /* Block Java [1|0] */ |
|---|
| 1392 | {"block_activex", "0", 0}, /* Block ActiveX [1|0] */ |
|---|
| 1393 | {"block_cookie", "0", 0}, /* Block Cookie [1|0] */ |
|---|
| 1394 | {"block_multicast", "1", 0}, /* Multicast Pass Through [1|0] */ |
|---|
| 1395 | {"block_loopback", "0", 0}, /* Block NAT loopback [1|0] */ |
|---|
| 1396 | {"ipsec_pass", "1", 0}, /* IPSec Pass Through [1|0] */ |
|---|
| 1397 | {"pptp_pass", "1", 0}, /* PPTP Pass Through [1|0] */ |
|---|
| 1398 | {"l2tp_pass", "1", 0}, /* L2TP Pass Through [1|0] */ |
|---|
| 1399 | #ifndef HAVE_MICRO |
|---|
| 1400 | {"limit_http", "0", 0}, /* Impede DDoS/Brutforce [1|0] */ |
|---|
| 1401 | {"limit_ssh", "0", 0}, /* Impede DDoS/Brutforce [1|0] */ |
|---|
| 1402 | {"limit_telnet", "0", 0}, /* Impede DDoS/Brutforce [1|0] */ |
|---|
| 1403 | #endif |
|---|
| 1404 | #ifdef HAVE_DDLAN |
|---|
| 1405 | {"remote_management", "1", 0}, /* Remote Management [1|0] */ |
|---|
| 1406 | #elif HAVE_GGEW |
|---|
| 1407 | {"remote_management", "0", 0}, /* Remote Management [1|0] */ |
|---|
| 1408 | #elif HAVE_MAGICBOX |
|---|
| 1409 | {"remote_management", "1", 0}, /* Remote Management [1|0] */ |
|---|
| 1410 | #elif HAVE_RB600 |
|---|
| 1411 | {"remote_management", "1", 0}, /* Remote Management [1|0] */ |
|---|
| 1412 | #elif HAVE_XSCALE |
|---|
| 1413 | {"remote_management", "1", 0}, /* Remote Management [1|0] */ |
|---|
| 1414 | #elif HAVE_FONERA |
|---|
| 1415 | {"remote_management", "1", 0}, /* Remote Management [1|0] */ |
|---|
| 1416 | #elif HAVE_LS2 |
|---|
| 1417 | {"remote_management", "1", 0}, /* Remote Management [1|0] */ |
|---|
| 1418 | #elif HAVE_LS5 |
|---|
| 1419 | {"remote_management", "1", 0}, /* Remote Management [1|0] */ |
|---|
| 1420 | #elif HAVE_WHRAG108 |
|---|
| 1421 | {"remote_management", "1", 0}, /* Remote Management [1|0] */ |
|---|
| 1422 | #elif HAVE_TW6600 |
|---|
| 1423 | {"remote_management", "1", 0}, /* Remote Management [1|0] */ |
|---|
| 1424 | #elif HAVE_CA8 |
|---|
| 1425 | {"remote_management", "1", 0}, /* Remote Management [1|0] */ |
|---|
| 1426 | #elif HAVE_RB500 |
|---|
| 1427 | {"remote_management", "1", 0}, /* Remote Management [1|0] */ |
|---|
| 1428 | #elif HAVE_X86 |
|---|
| 1429 | {"remote_management", "1", 0}, /* Remote Management [1|0] */ |
|---|
| 1430 | #else |
|---|
| 1431 | {"remote_management", "0", 0}, /* Remote Management [1|0] */ |
|---|
| 1432 | #endif |
|---|
| 1433 | #endif |
|---|
| 1434 | #ifdef HAVE_SAGAR |
|---|
| 1435 | {"remote_mgt_https", "1", 0}, /* Remote Management use https [1|0] */// add |
|---|
| 1436 | #elif HAVE_HTTPS |
|---|
| 1437 | {"remote_mgt_https", "0", 0}, /* Remote Management use https [1|0] */// add |
|---|
| 1438 | #endif |
|---|
| 1439 | |
|---|
| 1440 | {"mtu_enable", "0", 0}, /* WAN MTU [1|0] */ |
|---|
| 1441 | {"wan_mtu", "1500", 0}, /* Negotiate MTU to the smaller of this value |
|---|
| 1442 | * or the peer MRU */ |
|---|
| 1443 | |
|---|
| 1444 | /* |
|---|
| 1445 | * for forward |
|---|
| 1446 | */ |
|---|
| 1447 | {"forward_port", "", 0}, /* name:[on|off]:[tcp|udp|both]:wan_port>lan_ipaddr:lan_port0 |
|---|
| 1448 | */ |
|---|
| 1449 | {"forward_spec", "", 0}, /* name:[on|off]:[tcp|udp|both]:wan_port>lan_ipaddr:lan_port0 |
|---|
| 1450 | */ |
|---|
| 1451 | |
|---|
| 1452 | {"port_trigger", "", 0}, /* name:[on|off]:[tcp|udp|both]:wan_port0-wan_port1>lan_port0-lan_port1 |
|---|
| 1453 | */ |
|---|
| 1454 | |
|---|
| 1455 | /* |
|---|
| 1456 | * for dynamic route |
|---|
| 1457 | */ |
|---|
| 1458 | #ifdef HAVE_DDLAN |
|---|
| 1459 | {"wk_mode", "zero", 0}, /* Network mode [gateway|router] */ |
|---|
| 1460 | #elif HAVE_MAKSAT |
|---|
| 1461 | #ifdef HAVE_ESR6650 |
|---|
| 1462 | {"wk_mode", "gateway", 0}, /* Network mode [gateway|router] */ |
|---|
| 1463 | #else |
|---|
| 1464 | {"wk_mode", "router", 0}, /* Network mode [gateway|router] */ |
|---|
| 1465 | #endif // HAVE_ESR6650 |
|---|
| 1466 | #else |
|---|
| 1467 | {"wk_mode", "gateway", 0}, /* Network mode [gateway|router] */ |
|---|
| 1468 | #endif |
|---|
| 1469 | {"dr_setting", "0", 0}, /* [ Disable | WAN | LAN | Both ] */ |
|---|
| 1470 | {"dr_lan_tx", "0", 0}, /* Dynamic-Routing LAN out */ |
|---|
| 1471 | {"dr_lan_rx", "0", 0}, /* Dynamic-Routing LAN in */ |
|---|
| 1472 | {"dr_wan_tx", "0", 0}, /* Dynamic-Routing WAN out */ |
|---|
| 1473 | {"dr_wan_rx", "0", 0}, /* Dynamic-Routing WAN in */ |
|---|
| 1474 | |
|---|
| 1475 | /* |
|---|
| 1476 | * for mac clone |
|---|
| 1477 | */ |
|---|
| 1478 | {"mac_clone_enable", "0", 0}, /* User define WAN interface MAC |
|---|
| 1479 | * address */ |
|---|
| 1480 | {"def_hwaddr", "00:00:00:00:00:00", 0}, /* User define WAN interface |
|---|
| 1481 | * MAC address */ |
|---|
| 1482 | |
|---|
| 1483 | /* |
|---|
| 1484 | * for mac addresses |
|---|
| 1485 | */ |
|---|
| 1486 | {"port_swap", "0", 0}, /* used to set mac addresses from et0macaddr |
|---|
| 1487 | * or et1macaddr */ |
|---|
| 1488 | |
|---|
| 1489 | /* |
|---|
| 1490 | * for DDNS |
|---|
| 1491 | */ |
|---|
| 1492 | // for dyndns |
|---|
| 1493 | {"ddns_enable", "0", 0}, /* 0:Disable 1:dyndns 2:afraid 3:zoneedit |
|---|
| 1494 | * 4:no-ip 5:custom 6:3322.org */ |
|---|
| 1495 | {"ddns_wan_ip", "1", 0}, |
|---|
| 1496 | {"ddns_username", "", 0}, |
|---|
| 1497 | {"ddns_passwd", "", 0}, |
|---|
| 1498 | {"ddns_hostname", "", 0}, |
|---|
| 1499 | {"ddns_dyndnstype", "", 0}, |
|---|
| 1500 | {"ddns_wildcard", "", 0}, |
|---|
| 1501 | // for afraid.org |
|---|
| 1502 | {"ddns_username_2", "", 0}, |
|---|
| 1503 | {"ddns_passwd_2", "", 0}, |
|---|
| 1504 | {"ddns_hostname_2", "", 0}, |
|---|
| 1505 | // for zoneedit |
|---|
| 1506 | {"ddns_username_3", "", 0}, |
|---|
| 1507 | {"ddns_passwd_3", "", 0}, |
|---|
| 1508 | {"ddns_hostname_3", "", 0}, |
|---|
| 1509 | // for no-ip |
|---|
| 1510 | {"ddns_username_4", "", 0}, |
|---|
| 1511 | {"ddns_passwd_4", "", 0}, |
|---|
| 1512 | {"ddns_hostname_4", "", 0}, |
|---|
| 1513 | // for custom |
|---|
| 1514 | {"ddns_username_5", "", 0}, |
|---|
| 1515 | {"ddns_passwd_5", "", 0}, |
|---|
| 1516 | {"ddns_hostname_5", "", 0}, |
|---|
| 1517 | {"ddns_custom_5", "", 0}, |
|---|
| 1518 | {"ddns_conf", "", 0}, |
|---|
| 1519 | {"ddns_url", "", 0}, |
|---|
| 1520 | // for 3322.org |
|---|
| 1521 | {"ddns_username_6", "", 0}, |
|---|
| 1522 | {"ddns_passwd_6", "", 0}, |
|---|
| 1523 | {"ddns_hostname_6", "", 0}, |
|---|
| 1524 | {"ddns_dyndnstype_6", "", 0}, |
|---|
| 1525 | {"ddns_wildcard_6", "", 0}, |
|---|
| 1526 | // for easyDNS.com |
|---|
| 1527 | {"ddns_username_7", "", 0}, |
|---|
| 1528 | {"ddns_passwd_7", "", 0}, |
|---|
| 1529 | {"ddns_hostname_7", "", 0}, |
|---|
| 1530 | {"ddns_wildcard_7", "", 0}, |
|---|
| 1531 | // for tzo.com |
|---|
| 1532 | {"ddns_username_8", "", 0}, |
|---|
| 1533 | {"ddns_passwd_8", "", 0}, |
|---|
| 1534 | {"ddns_hostname_8", "", 0}, |
|---|
| 1535 | |
|---|
| 1536 | /* |
|---|
| 1537 | * for last value |
|---|
| 1538 | */ |
|---|
| 1539 | {"ddns_enable_buf", "", 0}, |
|---|
| 1540 | {"ddns_username_buf", "", 0}, |
|---|
| 1541 | {"ddns_passwd_buf", "", 0}, |
|---|
| 1542 | {"ddns_hostname_buf", "", 0}, |
|---|
| 1543 | {"ddns_force", "10", 0}, |
|---|
| 1544 | {"ddns_cache", "", 0}, /* DDNS cache */ |
|---|
| 1545 | {"ddns_time", "", 0}, /* DDNS time */ |
|---|
| 1546 | |
|---|
| 1547 | {"skip_amd_check", "0", 0}, /* 0:Disable 1:Enable */ |
|---|
| 1548 | {"skip_intel_check", "0", 0}, /* 0:Disable 1:Enable */ |
|---|
| 1549 | |
|---|
| 1550 | {"l2tp_use_dhcp", "0", 0}, /* pptp will use dhcp to obtain ip address, netmask and gateway */ |
|---|
| 1551 | {"l2tp_server_ip", "", 0}, /* L2TP auth server (IP Address) */ |
|---|
| 1552 | {"l2tp_server_name", "", 0}, /* L2TP auth server (IP Address) */ |
|---|
| 1553 | {"l2tp_get_ip", "", 0}, /* IP Address assigned by L2TP server */ |
|---|
| 1554 | {"l2tp_req_chap", "yes", 0}, /* L2TP require chap */ |
|---|
| 1555 | {"l2tp_ref_pap", "yes", 0}, /* L2TP refuse pap */ |
|---|
| 1556 | {"l2tp_req_auth", "yes", 0}, /* L2TP require authentication */ |
|---|
| 1557 | {"wan_gateway_buf", "0.0.0.0", 0}, /* save the default gateway for DHCP */ |
|---|
| 1558 | |
|---|
| 1559 | {"hb_server_ip", "", 0}, /* heartbeat auth server (IP Address) */ |
|---|
| 1560 | {"hb_server_domain", "", 0}, /* heartbeat auth server (domain |
|---|
| 1561 | * name) */ |
|---|
| 1562 | // #ifdef HAVE_SAMBA |
|---|
| 1563 | {"samba_mount", "0", 0}, // leave this in all versions, or will |
|---|
| 1564 | // produce error on info or status_router |
|---|
| 1565 | // pages; Eko |
|---|
| 1566 | #ifdef HAVE_SAMBA |
|---|
| 1567 | {"samba_share", "//yourserverip/yourshare", 0}, |
|---|
| 1568 | {"samba_user", "username/computer", 0}, |
|---|
| 1569 | {"samba_password", "iwer573495u7340", 0}, |
|---|
| 1570 | {"samba_script", "yourscript", 0}, |
|---|
| 1571 | #endif |
|---|
| 1572 | {"rflow_enable", "0", 0}, |
|---|
| 1573 | #ifdef HAVE_ERC |
|---|
| 1574 | {"info_passwd", "1", 0}, |
|---|
| 1575 | #else |
|---|
| 1576 | {"info_passwd", "0", 0}, |
|---|
| 1577 | #endif |
|---|
| 1578 | {"macupd_enable", "0", 0}, |
|---|
| 1579 | {"wl_radauth", "0", 0}, |
|---|
| 1580 | {"rc_startup", "", 0}, |
|---|
| 1581 | {"rc_firewall", "", 0}, |
|---|
| 1582 | {"rc_custom", "", 0}, |
|---|
| 1583 | {"rc_shutdown", "", 0}, |
|---|
| 1584 | #if defined(HAVE_MADWIFI) || defined(HAVE_ATH9K) |
|---|
| 1585 | #ifdef HAVE_XIOCOM |
|---|
| 1586 | {"ath0_txpwrdbm", "17", 0}, |
|---|
| 1587 | {"ath1_txpwrdbm", "17", 0}, |
|---|
| 1588 | {"ath2_txpwrdbm", "17", 0}, |
|---|
| 1589 | {"ath3_txpwrdbm", "17", 0}, |
|---|
| 1590 | {"ath4_txpwrdbm", "17", 0}, |
|---|
| 1591 | {"ath5_txpwrdbm", "17", 0}, |
|---|
| 1592 | #elif defined(HAVE_GGEW) && defined(HAVE_EOC5610) |
|---|
| 1593 | {"ath0_txpwrdbm", "28", 0}, |
|---|
| 1594 | #else |
|---|
| 1595 | |
|---|
| 1596 | {"ath0_txpwrdbm", "20", 0}, |
|---|
| 1597 | {"ath1_txpwrdbm", "20", 0}, |
|---|
| 1598 | {"ath2_txpwrdbm", "20", 0}, |
|---|
| 1599 | {"ath3_txpwrdbm", "20", 0}, |
|---|
| 1600 | {"ath4_txpwrdbm", "20", 0}, |
|---|
| 1601 | {"ath5_txpwrdbm", "20", 0}, |
|---|
| 1602 | #endif |
|---|
| 1603 | #else |
|---|
| 1604 | #ifdef HAVE_POWERNOC |
|---|
| 1605 | {"wl0_txpwr", "200", 0}, |
|---|
| 1606 | #elif HAVE_DDLAN |
|---|
| 1607 | {"wl0_txpwr", "100", 0}, |
|---|
| 1608 | #elif HAVE_SKYTRON |
|---|
| 1609 | {"wl0_txpwr", "251", 0}, |
|---|
| 1610 | #elif HAVE_SAGAR |
|---|
| 1611 | {"wl0_txpwr", "100", 0}, |
|---|
| 1612 | #else |
|---|
| 1613 | {"wl0_txpwr", "71", 0}, |
|---|
| 1614 | {"wl1_txpwr", "71", 0}, |
|---|
| 1615 | #endif |
|---|
| 1616 | |
|---|
| 1617 | #endif |
|---|
| 1618 | #ifdef HAVE_GGEW |
|---|
| 1619 | {"txant", "0", 0}, |
|---|
| 1620 | {"wl_antdiv", "0", 0}, |
|---|
| 1621 | #elif HAVE_BUFFALO |
|---|
| 1622 | {"wl0_txant", "0", 0}, |
|---|
| 1623 | {"wl0_antdiv", "3", 0}, |
|---|
| 1624 | {"wl1_txant", "0", 0}, |
|---|
| 1625 | {"wl1_antdiv", "3", 0}, |
|---|
| 1626 | #elif HAVE_ALLNETWRT |
|---|
| 1627 | {"wl0_txant", "0", 0}, |
|---|
| 1628 | {"wl0_antdiv", "0", 0}, |
|---|
| 1629 | #else |
|---|
| 1630 | {"wl0_txant", "3", 0}, |
|---|
| 1631 | {"wl0_antdiv", "3", 0}, |
|---|
| 1632 | {"wl1_txant", "3", 0}, |
|---|
| 1633 | {"wl1_antdiv", "3", 0}, |
|---|
| 1634 | #endif |
|---|
| 1635 | |
|---|
| 1636 | {"apwatchdog_enable", "0", 0}, |
|---|
| 1637 | {"apwatchdog_interval", "15", 0}, |
|---|
| 1638 | {"boot_wait", "on", 0}, |
|---|
| 1639 | #ifdef HAVE_SKYTEL |
|---|
| 1640 | {"cron_enable", "0", 0}, |
|---|
| 1641 | #elif HAVE_WRK54G |
|---|
| 1642 | {"cron_enable", "0", 0}, |
|---|
| 1643 | #else |
|---|
| 1644 | {"cron_enable", "1", 0}, |
|---|
| 1645 | #endif |
|---|
| 1646 | {"cron_jobs", "", 0}, |
|---|
| 1647 | {"dhcpd_options", "", 0}, |
|---|
| 1648 | {"dhcpd_usenvram", "0", 0}, |
|---|
| 1649 | {"local_dns", "0", 0}, |
|---|
| 1650 | {"dnsmasq_no_dns_rebind", "1", 0}, |
|---|
| 1651 | #ifdef HAVE_POWERNOC_WOAP54G |
|---|
| 1652 | {"dnsmasq_enable", "0", 0}, |
|---|
| 1653 | #elif HAVE_FON |
|---|
| 1654 | {"dnsmasq_enable", "0", 0}, |
|---|
| 1655 | #elif HAVE_WRK54G |
|---|
| 1656 | {"dnsmasq_enable", "0", 0}, |
|---|
| 1657 | // #elif HAVE_ADM5120 |
|---|
| 1658 | // {"dnsmasq_enable", "0", 0}, |
|---|
| 1659 | #else |
|---|
| 1660 | {"dnsmasq_enable", "1", 0}, |
|---|
| 1661 | #endif |
|---|
| 1662 | {"dnsmasq_options", "", 0}, |
|---|
| 1663 | #ifdef HAVE_POWERNOC_WOAP54G |
|---|
| 1664 | {"nas_enable", "0", 0}, |
|---|
| 1665 | #else |
|---|
| 1666 | {"nas_enable", "1", 0}, |
|---|
| 1667 | #endif |
|---|
| 1668 | // #ifdef HAVE_DDLAN |
|---|
| 1669 | // {"ntp_enable", "0", 0}, |
|---|
| 1670 | // #else |
|---|
| 1671 | {"ntp_enable", "1", 0}, |
|---|
| 1672 | // #endif |
|---|
| 1673 | {"pptpd_enable", "0", 0}, |
|---|
| 1674 | {"pptpd_forcemppe", "1", 0}, |
|---|
| 1675 | {"pptpd_bcrelay", "0", 0}, |
|---|
| 1676 | {"pptpd_lip", "", 0}, |
|---|
| 1677 | {"pptpd_rip", "", 0}, |
|---|
| 1678 | {"pptpd_auth", "", 0}, |
|---|
| 1679 | {"pptpd_radius", "0", 0}, |
|---|
| 1680 | {"pptpd_radserver", "0.0.0.0", 0}, |
|---|
| 1681 | {"pptpd_radport", "1812", 0}, |
|---|
| 1682 | {"pptpd_acctport", "1813", 0}, |
|---|
| 1683 | {"pptpd_radpass", "", 0}, |
|---|
| 1684 | {"pptp_reorder", "1", 0}, |
|---|
| 1685 | {"pptp_extraoptions", "", 0}, |
|---|
| 1686 | #ifdef HAVE_GGEW |
|---|
| 1687 | {"pptp_encrypt", "1", 0}, |
|---|
| 1688 | #else |
|---|
| 1689 | {"pptp_encrypt", "0", 0}, |
|---|
| 1690 | #endif |
|---|
| 1691 | {"resetbutton_enable", "1", 0}, |
|---|
| 1692 | #ifdef HAVE_SKYTRON |
|---|
| 1693 | {"telnetd_enable", "0", 0}, |
|---|
| 1694 | #elif HAVE_GGEW |
|---|
| 1695 | {"telnetd_enable", "0", 0}, |
|---|
| 1696 | #elif HAVE_WRK54G |
|---|
| 1697 | {"telnetd_enable", "0", 0}, |
|---|
| 1698 | #elif defined(HAVE_ADM5120) && !defined(HAVE_WP54G) |
|---|
| 1699 | {"telnetd_enable", "0", 0}, |
|---|
| 1700 | #else |
|---|
| 1701 | {"telnetd_enable", "1", 0}, |
|---|
| 1702 | #endif |
|---|
| 1703 | {"ipv6_enable", "0", 0}, |
|---|
| 1704 | {"radvd_enable", "0", 0}, |
|---|
| 1705 | {"radvd_conf", "", 0}, |
|---|
| 1706 | #ifdef HAVE_CHILLI |
|---|
| 1707 | {"chilli_net", "192.168.182.0/24", 0}, |
|---|
| 1708 | {"chilli_enable", "0", 0}, |
|---|
| 1709 | {"chilli_url", "", 0}, |
|---|
| 1710 | {"chilli_radius", "0.0.0.0", 0}, |
|---|
| 1711 | {"chilli_backup", "0.0.0.0", 0}, |
|---|
| 1712 | {"chilli_pass", "", 0}, |
|---|
| 1713 | {"chilli_dns1", "0.0.0.0", 0}, |
|---|
| 1714 | {"chilli_interface", "", 0}, |
|---|
| 1715 | {"chilli_radiusnasid", "", 0}, |
|---|
| 1716 | {"chilli_uamsecret", "", 0}, |
|---|
| 1717 | {"chilli_uamanydns", "0", 0}, |
|---|
| 1718 | {"chilli_uamallowed", "", 0}, |
|---|
| 1719 | {"chilli_macauth", "0", 0}, |
|---|
| 1720 | {"chilli_additional", "", 0}, |
|---|
| 1721 | #endif |
|---|
| 1722 | #ifdef HAVE_HOTSPOT |
|---|
| 1723 | {"hotss_enable", "0", 0}, |
|---|
| 1724 | {"hotss_uamenable", "0", 0}, |
|---|
| 1725 | {"hotss_loginonsplash", "0", 0}, |
|---|
| 1726 | {"hotss_customsplash", "0", 0}, |
|---|
| 1727 | {"hotss_uamallowed", "", 0}, |
|---|
| 1728 | {"hotss_operatorid", "", 0}, |
|---|
| 1729 | {"hotss_locationid", "", 0}, |
|---|
| 1730 | {"hotss_interface", "", 0}, |
|---|
| 1731 | {"hotss_net", "192.168.182.0/24", 0}, |
|---|
| 1732 | {"hotss_customuam", "", 0}, |
|---|
| 1733 | {"hotss_customuamproto", "https", 0}, |
|---|
| 1734 | {"hotss_remotekey", "", 0}, |
|---|
| 1735 | #endif |
|---|
| 1736 | #ifdef HAVE_SSHD |
|---|
| 1737 | |
|---|
| 1738 | #ifdef HAVE_SKYTEL |
|---|
| 1739 | {"sshd_enable", "0", 0}, |
|---|
| 1740 | #elif HAVE_GGEW |
|---|
| 1741 | {"sshd_enable", "1", 0}, |
|---|
| 1742 | #elif HAVE_XIOCOM |
|---|
| 1743 | {"sshd_enable", "1", 0}, |
|---|
| 1744 | #elif HAVE_34TELECOM |
|---|
| 1745 | {"sshd_enable", "1", 0}, |
|---|
| 1746 | #elif HAVE_POWERNOC |
|---|
| 1747 | {"sshd_enable", "1", 0}, |
|---|
| 1748 | #elif HAVE_SAGAR |
|---|
| 1749 | {"sshd_enable", "1", 0}, |
|---|
| 1750 | #elif HAVE_SKYTRON |
|---|
| 1751 | {"sshd_enable", "1", 0}, |
|---|
| 1752 | #elif HAVE_MAGICBOX |
|---|
| 1753 | {"sshd_enable", "1", 0}, |
|---|
| 1754 | #elif HAVE_RB600 |
|---|
| 1755 | {"sshd_enable", "1", 0}, |
|---|
| 1756 | #elif HAVE_WHRAG108 |
|---|
| 1757 | {"sshd_enable", "1", 0}, |
|---|
| 1758 | #elif HAVE_TW6600 |
|---|
| 1759 | {"sshd_enable", "0", 0}, |
|---|
| 1760 | #elif HAVE_CA8 |
|---|
| 1761 | {"sshd_enable", "1", 0}, |
|---|
| 1762 | #elif HAVE_X86 |
|---|
| 1763 | {"sshd_enable", "1", 0}, |
|---|
| 1764 | #elif HAVE_NEWMEDIA |
|---|
| 1765 | {"sshd_enable", "1", 0}, |
|---|
| 1766 | #elif HAVE_MAKSAT |
|---|
| 1767 | {"sshd_enable", "1", 0}, |
|---|
| 1768 | #elif HAVE_TMK |
|---|
| 1769 | {"sshd_enable", "1", 0}, |
|---|
| 1770 | #else |
|---|
| 1771 | {"sshd_enable", "0", 0}, |
|---|
| 1772 | #endif |
|---|
| 1773 | {"sshd_forwarding", "0", 0}, |
|---|
| 1774 | {"sshd_port", "22", 0}, |
|---|
| 1775 | {"sshd_passwd_auth", "1", 0}, |
|---|
| 1776 | {"sshd_rsa_host_key", "", 0}, |
|---|
| 1777 | {"sshd_dss_host_key", "", 0}, |
|---|
| 1778 | {"sshd_authorized_keys", "", 0}, |
|---|
| 1779 | #ifdef HAVE_MAGICBOX |
|---|
| 1780 | {"remote_mgt_ssh", "1", 0}, |
|---|
| 1781 | #elif HAVE_RB600 |
|---|
| 1782 | {"remote_mgt_ssh", "1", 0}, |
|---|
| 1783 | #elif HAVE_GGEW |
|---|
| 1784 | {"remote_mgt_ssh", "0", 0}, |
|---|
| 1785 | #elif HAVE_FONERA |
|---|
| 1786 | {"remote_mgt_ssh", "1", 0}, |
|---|
| 1787 | #elif HAVE_LS2 |
|---|
| 1788 | {"remote_mgt_ssh", "1", 0}, |
|---|
| 1789 | #elif HAVE_LS5 |
|---|
| 1790 | {"remote_mgt_ssh", "1", 0}, |
|---|
| 1791 | #elif HAVE_MAKSAT |
|---|
| 1792 | {"remote_mgt_ssh", "1", 0}, |
|---|
| 1793 | #elif HAVE_WHRAG108 |
|---|
| 1794 | {"remote_mgt_ssh", "1", 0}, |
|---|
| 1795 | #elif HAVE_TW6600 |
|---|
| 1796 | {"remote_mgt_ssh", "0", 0}, |
|---|
| 1797 | #elif HAVE_CA8 |
|---|
| 1798 | {"remote_mgt_ssh", "1", 0}, |
|---|
| 1799 | #elif HAVE_X86 |
|---|
| 1800 | {"remote_mgt_ssh", "1", 0}, |
|---|
| 1801 | #else |
|---|
| 1802 | {"remote_mgt_ssh", "0", 0}, |
|---|
| 1803 | #endif |
|---|
| 1804 | {"sshd_wanport", "22", 0}, /* Botho 03-05-2006 : WAN port to listen on */ |
|---|
| 1805 | #endif /* micro build - use telnet remote mgmt */ |
|---|
| 1806 | {"remote_mgt_telnet", "0", 0}, |
|---|
| 1807 | {"telnet_wanport", "23", 0}, /* WAN port to listen on */ |
|---|
| 1808 | {"syslogd_enable", "0", 0}, |
|---|
| 1809 | {"syslogd_rem_ip", "", 0}, |
|---|
| 1810 | #if !defined(HAVE_MADWIFI) && !defined(HAVE_ATH9K) |
|---|
| 1811 | {"wl0_wds1_enable", "0", 0}, |
|---|
| 1812 | {"wl0_wds2_enable", "0", 0}, |
|---|
| 1813 | {"wl0_wds3_enable", "0", 0}, |
|---|
| 1814 | {"wl0_wds4_enable", "0", 0}, |
|---|
| 1815 | {"wl0_wds5_enable", "0", 0}, |
|---|
| 1816 | {"wl0_wds6_enable", "0", 0}, |
|---|
| 1817 | {"wl0_wds7_enable", "0", 0}, |
|---|
| 1818 | {"wl0_wds8_enable", "0", 0}, |
|---|
| 1819 | {"wl0_wds9_enable", "0", 0}, |
|---|
| 1820 | {"wl0_wds10_enable", "0", 0}, |
|---|
| 1821 | |
|---|
| 1822 | {"wl0_wds1_hwaddr", "", 0}, |
|---|
| 1823 | {"wl0_wds2_hwaddr", "", 0}, |
|---|
| 1824 | {"wl0_wds3_hwaddr", "", 0}, |
|---|
| 1825 | {"wl0_wds4_hwaddr", "", 0}, |
|---|
| 1826 | {"wl0_wds5_hwaddr", "", 0}, |
|---|
| 1827 | {"wl0_wds6_hwaddr", "", 0}, |
|---|
| 1828 | {"wl0_wds7_hwaddr", "", 0}, |
|---|
| 1829 | {"wl0_wds8_hwaddr", "", 0}, |
|---|
| 1830 | {"wl0_wds9_hwaddr", "", 0}, |
|---|
| 1831 | {"wl0_wds10_hwaddr", "", 0}, |
|---|
| 1832 | |
|---|
| 1833 | {"wl0_wds1_ipaddr", "", 0}, |
|---|
| 1834 | {"wl0_wds2_ipaddr", "", 0}, |
|---|
| 1835 | {"wl0_wds3_ipaddr", "", 0}, |
|---|
| 1836 | {"wl0_wds4_ipaddr", "", 0}, |
|---|
| 1837 | {"wl0_wds5_ipaddr", "", 0}, |
|---|
| 1838 | {"wl0_wds6_ipaddr", "", 0}, |
|---|
| 1839 | {"wl0_wds7_ipaddr", "", 0}, |
|---|
| 1840 | {"wl0_wds8_ipaddr", "", 0}, |
|---|
| 1841 | {"wl0_wds9_ipaddr", "", 0}, |
|---|
| 1842 | {"wl0_wds10_ipaddr", "", 0}, |
|---|
| 1843 | |
|---|
| 1844 | {"wl0_wds1_netmask", "", 0}, |
|---|
| 1845 | {"wl0_wds2_netmask", "", 0}, |
|---|
| 1846 | {"wl0_wds3_netmask", "", 0}, |
|---|
| 1847 | {"wl0_wds4_netmask", "", 0}, |
|---|
| 1848 | {"wl0_wds5_netmask", "", 0}, |
|---|
| 1849 | {"wl0_wds6_netmask", "", 0}, |
|---|
| 1850 | {"wl0_wds7_netmask", "", 0}, |
|---|
| 1851 | {"wl0_wds8_netmask", "", 0}, |
|---|
| 1852 | {"wl0_wds9_netmask", "", 0}, |
|---|
| 1853 | {"wl0_wds10_netmask", "", 0}, |
|---|
| 1854 | |
|---|
| 1855 | {"wl0_wds1_desc", "", 0}, |
|---|
| 1856 | {"wl0_wds2_desc", "", 0}, |
|---|
| 1857 | {"wl0_wds3_desc", "", 0}, |
|---|
| 1858 | {"wl0_wds4_desc", "", 0}, |
|---|
| 1859 | {"wl0_wds5_desc", "", 0}, |
|---|
| 1860 | {"wl0_wds6_desc", "", 0}, |
|---|
| 1861 | {"wl0_wds7_desc", "", 0}, |
|---|
| 1862 | {"wl0_wds8_desc", "", 0}, |
|---|
| 1863 | {"wl0_wds9_desc", "", 0}, |
|---|
| 1864 | {"wl0_wds10_desc", "", 0}, |
|---|
| 1865 | |
|---|
| 1866 | {"wl0_wds1_ospf", "", 0}, |
|---|
| 1867 | {"wl0_wds2_ospf", "", 0}, |
|---|
| 1868 | {"wl0_wds3_ospf", "", 0}, |
|---|
| 1869 | {"wl0_wds4_ospf", "", 0}, |
|---|
| 1870 | {"wl0_wds5_ospf", "", 0}, |
|---|
| 1871 | {"wl0_wds6_ospf", "", 0}, |
|---|
| 1872 | {"wl0_wds7_ospf", "", 0}, |
|---|
| 1873 | {"wl0_wds8_ospf", "", 0}, |
|---|
| 1874 | {"wl0_wds9_ospf", "", 0}, |
|---|
| 1875 | {"wl0_wds10_ospf", "", 0}, |
|---|
| 1876 | |
|---|
| 1877 | {"wl1_wds1_enable", "0", 0}, |
|---|
| 1878 | {"wl1_wds2_enable", "0", 0}, |
|---|
| 1879 | {"wl1_wds3_enable", "0", 0}, |
|---|
| 1880 | {"wl1_wds4_enable", "0", 0}, |
|---|
| 1881 | {"wl1_wds5_enable", "0", 0}, |
|---|
| 1882 | {"wl1_wds6_enable", "0", 0}, |
|---|
| 1883 | {"wl1_wds7_enable", "0", 0}, |
|---|
| 1884 | {"wl1_wds8_enable", "0", 0}, |
|---|
| 1885 | {"wl1_wds9_enable", "0", 0}, |
|---|
| 1886 | {"wl1_wds10_enable", "0", 0}, |
|---|
| 1887 | |
|---|
| 1888 | {"wl1_wds1_hwaddr", "", 0}, |
|---|
| 1889 | {"wl1_wds2_hwaddr", "", 0}, |
|---|
| 1890 | {"wl1_wds3_hwaddr", "", 0}, |
|---|
| 1891 | {"wl1_wds4_hwaddr", "", 0}, |
|---|
| 1892 | {"wl1_wds5_hwaddr", "", 0}, |
|---|
| 1893 | {"wl1_wds6_hwaddr", "", 0}, |
|---|
| 1894 | {"wl1_wds7_hwaddr", "", 0}, |
|---|
| 1895 | {"wl1_wds8_hwaddr", "", 0}, |
|---|
| 1896 | {"wl1_wds9_hwaddr", "", 0}, |
|---|
| 1897 | {"wl1_wds10_hwaddr", "", 0}, |
|---|
| 1898 | |
|---|
| 1899 | {"wl1_wds1_ipaddr", "", 0}, |
|---|
| 1900 | {"wl1_wds2_ipaddr", "", 0}, |
|---|
| 1901 | {"wl1_wds3_ipaddr", "", 0}, |
|---|
| 1902 | {"wl1_wds4_ipaddr", "", 0}, |
|---|
| 1903 | {"wl1_wds5_ipaddr", "", 0}, |
|---|
| 1904 | {"wl1_wds6_ipaddr", "", 0}, |
|---|
| 1905 | {"wl1_wds7_ipaddr", "", 0}, |
|---|
| 1906 | {"wl1_wds8_ipaddr", "", 0}, |
|---|
| 1907 | {"wl1_wds9_ipaddr", "", 0}, |
|---|
| 1908 | {"wl1_wds10_ipaddr", "", 0}, |
|---|
| 1909 | |
|---|
| 1910 | {"wl1_wds1_netmask", "", 0}, |
|---|
| 1911 | {"wl1_wds2_netmask", "", 0}, |
|---|
| 1912 | {"wl1_wds3_netmask", "", 0}, |
|---|
| 1913 | {"wl1_wds4_netmask", "", 0}, |
|---|
| 1914 | {"wl1_wds5_netmask", "", 0}, |
|---|
| 1915 | {"wl1_wds6_netmask", "", 0}, |
|---|
| 1916 | {"wl1_wds7_netmask", "", 0}, |
|---|
| 1917 | {"wl1_wds8_netmask", "", 0}, |
|---|
| 1918 | {"wl1_wds9_netmask", "", 0}, |
|---|
| 1919 | {"wl1_wds10_netmask", "", 0}, |
|---|
| 1920 | |
|---|
| 1921 | {"wl1_wds1_desc", "", 0}, |
|---|
| 1922 | {"wl1_wds2_desc", "", 0}, |
|---|
| 1923 | {"wl1_wds3_desc", "", 0}, |
|---|
| 1924 | {"wl1_wds4_desc", "", 0}, |
|---|
| 1925 | {"wl1_wds5_desc", "", 0}, |
|---|
| 1926 | {"wl1_wds6_desc", "", 0}, |
|---|
| 1927 | {"wl1_wds7_desc", "", 0}, |
|---|
| 1928 | {"wl1_wds8_desc", "", 0}, |
|---|
| 1929 | {"wl1_wds9_desc", "", 0}, |
|---|
| 1930 | {"wl1_wds10_desc", "", 0}, |
|---|
| 1931 | |
|---|
| 1932 | {"wl1_wds1_ospf", "", 0}, |
|---|
| 1933 | {"wl1_wds2_ospf", "", 0}, |
|---|
| 1934 | {"wl1_wds3_ospf", "", 0}, |
|---|
| 1935 | {"wl1_wds4_ospf", "", 0}, |
|---|
| 1936 | {"wl1_wds5_ospf", "", 0}, |
|---|
| 1937 | {"wl1_wds6_ospf", "", 0}, |
|---|
| 1938 | {"wl1_wds7_ospf", "", 0}, |
|---|
| 1939 | {"wl1_wds8_ospf", "", 0}, |
|---|
| 1940 | {"wl1_wds9_ospf", "", 0}, |
|---|
| 1941 | {"wl1_wds10_ospf", "", 0}, |
|---|
| 1942 | |
|---|
| 1943 | # |
|---|
| 1944 | |
|---|
| 1945 | #endif |
|---|
| 1946 | |
|---|
| 1947 | {"wl0_br1_enable", "0", 0}, |
|---|
| 1948 | {"wl0_br1_nat", "0", 0}, |
|---|
| 1949 | {"wl1_br1_enable", "0", 0}, |
|---|
| 1950 | {"wl1_br1_nat", "0", 0}, |
|---|
| 1951 | #if !defined(HAVE_MADWIFI) && !defined(HAVE_ATH9K) |
|---|
| 1952 | |
|---|
| 1953 | {"wl0_wds", "", 0}, |
|---|
| 1954 | {"wl0_wds0", "", 0}, |
|---|
| 1955 | {"wl0_wds1", "", 0}, |
|---|
| 1956 | {"wl0_wds2", "", 0}, |
|---|
| 1957 | {"wl0_wds3", "", 0}, |
|---|
| 1958 | {"wl0_wds4", "", 0}, |
|---|
| 1959 | {"wl0_wds5", "", 0}, |
|---|
| 1960 | {"wl0_wds6", "", 0}, |
|---|
| 1961 | {"wl0_wds7", "", 0}, |
|---|
| 1962 | {"wl0_wds8", "", 0}, |
|---|
| 1963 | {"wl0_wds9", "", 0}, |
|---|
| 1964 | {"wl1_wds", "", 0}, |
|---|
| 1965 | {"wl1_wds0", "", 0}, |
|---|
| 1966 | {"wl1_wds1", "", 0}, |
|---|
| 1967 | {"wl1_wds2", "", 0}, |
|---|
| 1968 | {"wl1_wds3", "", 0}, |
|---|
| 1969 | {"wl1_wds4", "", 0}, |
|---|
| 1970 | {"wl1_wds5", "", 0}, |
|---|
| 1971 | {"wl1_wds6", "", 0}, |
|---|
| 1972 | {"wl1_wds7", "", 0}, |
|---|
| 1973 | {"wl1_wds8", "", 0}, |
|---|
| 1974 | {"wl1_wds9", "", 0}, |
|---|
| 1975 | {"wl0_wds0_if", "", 0}, |
|---|
| 1976 | {"wl0_wds1_if", "", 0}, |
|---|
| 1977 | {"wl0_wds2_if", "", 0}, |
|---|
| 1978 | {"wl0_wds3_if", "", 0}, |
|---|
| 1979 | {"wl0_wds4_if", "", 0}, |
|---|
| 1980 | {"wl0_wds5_if", "", 0}, |
|---|
| 1981 | {"wl0_wds6_if", "", 0}, |
|---|
| 1982 | {"wl0_wds7_if", "", 0}, |
|---|
| 1983 | {"wl0_wds8_if", "", 0}, |
|---|
| 1984 | {"wl0_wds9_if", "", 0}, |
|---|
| 1985 | {"wl0_wds10_if", "", 0}, |
|---|
| 1986 | |
|---|
| 1987 | {"wl1_wds0_if", "", 0}, |
|---|
| 1988 | {"wl1_wds1_if", "", 0}, |
|---|
| 1989 | {"wl1_wds2_if", "", 0}, |
|---|
| 1990 | {"wl1_wds3_if", "", 0}, |
|---|
| 1991 | {"wl1_wds4_if", "", 0}, |
|---|
| 1992 | {"wl1_wds5_if", "", 0}, |
|---|
| 1993 | {"wl1_wds6_if", "", 0}, |
|---|
| 1994 | {"wl1_wds7_if", "", 0}, |
|---|
| 1995 | {"wl1_wds8_if", "", 0}, |
|---|
| 1996 | {"wl1_wds9_if", "", 0}, |
|---|
| 1997 | {"wl1_wds10_if", "", 0}, |
|---|
| 1998 | |
|---|
| 1999 | {"wds0.1", "", 0}, |
|---|
| 2000 | {"wds0.2", "", 0}, |
|---|
| 2001 | {"wds0.3", "", 0}, |
|---|
| 2002 | {"wds0.4", "", 0}, |
|---|
| 2003 | {"wds0.5", "", 0}, |
|---|
| 2004 | {"wds0.6", "", 0}, |
|---|
| 2005 | {"wds0.7", "", 0}, |
|---|
| 2006 | {"wds0.8", "", 0}, |
|---|
| 2007 | {"wds0.9", "", 0}, |
|---|
| 2008 | {"wds0.10", "", 0}, |
|---|
| 2009 | {"wds0.11", "", 0}, |
|---|
| 2010 | {"wds0.12", "", 0}, |
|---|
| 2011 | {"wds0.13", "", 0}, |
|---|
| 2012 | {"wds0.14", "", 0}, |
|---|
| 2013 | {"wds0.15", "", 0}, |
|---|
| 2014 | {"wds0.16", "", 0}, |
|---|
| 2015 | |
|---|
| 2016 | {"wds1.1", "", 0}, |
|---|
| 2017 | {"wds1.2", "", 0}, |
|---|
| 2018 | {"wds1.3", "", 0}, |
|---|
| 2019 | {"wds1.4", "", 0}, |
|---|
| 2020 | {"wds1.5", "", 0}, |
|---|
| 2021 | {"wds1.6", "", 0}, |
|---|
| 2022 | {"wds1.7", "", 0}, |
|---|
| 2023 | {"wds1.8", "", 0}, |
|---|
| 2024 | {"wds1.9", "", 0}, |
|---|
| 2025 | {"wds1.10", "", 0}, |
|---|
| 2026 | {"wds1.11", "", 0}, |
|---|
| 2027 | {"wds1.12", "", 0}, |
|---|
| 2028 | {"wds1.13", "", 0}, |
|---|
| 2029 | {"wds1.14", "", 0}, |
|---|
| 2030 | {"wds1.15", "", 0}, |
|---|
| 2031 | {"wds1.16", "", 0}, |
|---|
| 2032 | #endif |
|---|
| 2033 | |
|---|
| 2034 | #ifdef HAVE_SKYTRON |
|---|
| 2035 | {"wshaper_enable", "1", 0}, |
|---|
| 2036 | #else |
|---|
| 2037 | {"wshaper_enable", "0", 0}, |
|---|
| 2038 | #endif |
|---|
| 2039 | {"wshaper_dev", "WAN", 0}, |
|---|
| 2040 | #ifdef HAVE_SKYTRON |
|---|
| 2041 | {"wshaper_downlink", "800", 0}, |
|---|
| 2042 | {"wshaper_uplink", "800", 0}, |
|---|
| 2043 | #else |
|---|
| 2044 | {"wshaper_downlink", "0", 0}, |
|---|
| 2045 | {"wshaper_uplink", "0", 0}, |
|---|
| 2046 | #endif |
|---|
| 2047 | {"wshaper_nopriohostsrc", "", 0}, |
|---|
| 2048 | {"wshaper_nopriohostdst", "", 0}, |
|---|
| 2049 | {"wshaper_noprioportsrc", "", 0}, |
|---|
| 2050 | {"wshaper_noprioportdst", "", 0}, |
|---|
| 2051 | {"zebra_enable", "1", 0}, |
|---|
| 2052 | {"qos_type", "0", 0}, |
|---|
| 2053 | {"svqos_svcs", "", 0}, |
|---|
| 2054 | {"svqos_ips", "", 0}, |
|---|
| 2055 | {"svqos_macs", "", 0}, |
|---|
| 2056 | |
|---|
| 2057 | {"svqos_port1bw", "FULL", 0}, |
|---|
| 2058 | {"svqos_port2bw", "FULL", 0}, |
|---|
| 2059 | {"svqos_port3bw", "FULL", 0}, |
|---|
| 2060 | {"svqos_port4bw", "FULL", 0}, |
|---|
| 2061 | |
|---|
| 2062 | {"svqos_port1prio", "10", 0}, |
|---|
| 2063 | {"svqos_port2prio", "10", 0}, |
|---|
| 2064 | {"svqos_port3prio", "10", 0}, |
|---|
| 2065 | {"svqos_port4prio", "10", 0}, |
|---|
| 2066 | #ifdef HAVE_SNMP |
|---|
| 2067 | #ifdef HAVE_SAGAR |
|---|
| 2068 | {"snmpd_enable", "1", 0}, |
|---|
| 2069 | #elif HAVE_DDLAN |
|---|
| 2070 | {"snmpd_enable", "1", 0}, |
|---|
| 2071 | #else |
|---|
| 2072 | {"snmpd_enable", "0", 0}, |
|---|
| 2073 | #endif |
|---|
| 2074 | {"snmpd_syslocation", "Unknown", 0}, |
|---|
| 2075 | {"snmpd_syscontact", "root", 0}, |
|---|
| 2076 | #ifdef CONFIG_BRANDING |
|---|
| 2077 | {"snmpd_sysname", "anonymous", 0}, |
|---|
| 2078 | #elif defined(HAVE_TRIMAX) |
|---|
| 2079 | {"snmpd_sysname", "trimax", 0}, |
|---|
| 2080 | #elif defined(HAVE_WIKINGS) |
|---|
| 2081 | {"snmpd_sysname", "Excel Networks", 0}, |
|---|
| 2082 | #elif defined(HAVE_NEXTMEDIA) |
|---|
| 2083 | {"snmpd_sysname", "nextmedia", 0}, |
|---|
| 2084 | #else |
|---|
| 2085 | {"snmpd_sysname", "dd-wrt", 0}, |
|---|
| 2086 | #endif |
|---|
| 2087 | {"snmpd_rocommunity", "public", 0}, |
|---|
| 2088 | {"snmpd_rwcommunity", "private", 0}, |
|---|
| 2089 | {"snmpd_conf", |
|---|
| 2090 | "See http://www.net-snmp.org for expert snmpd.conf options", |
|---|
| 2091 | 0}, |
|---|
| 2092 | #endif |
|---|
| 2093 | {"wol_enable", "0", 0}, |
|---|
| 2094 | {"wol_interval", "86400", 0}, |
|---|
| 2095 | {"wol_hostname", "", 0}, |
|---|
| 2096 | {"wol_macs", "", 0}, |
|---|
| 2097 | {"wol_passwd", "", 0}, |
|---|
| 2098 | |
|---|
| 2099 | {"hs_enable", "", 0}, |
|---|
| 2100 | {"hs_exempt", "", 0}, |
|---|
| 2101 | {"hs_urls", "", 0}, |
|---|
| 2102 | {"hs_redirect", "", 0}, |
|---|
| 2103 | {"hs_html", "", 0}, |
|---|
| 2104 | {"hs_image", "", 0}, |
|---|
| 2105 | |
|---|
| 2106 | {"def_whwaddr", "00:00:00:00:00:00", 0}, /* User define wireless |
|---|
| 2107 | * interface MAC address */ |
|---|
| 2108 | |
|---|
| 2109 | {"sv_restore_defaults", "0", 0}, // fix for vlan stuff side effects |
|---|
| 2110 | |
|---|
| 2111 | {"ospfd_conf", "", 0}, |
|---|
| 2112 | {"zebra_conf", "", 0}, |
|---|
| 2113 | {"ospfd_copt", "0", 0}, |
|---|
| 2114 | {"zebra_copt", "0", 0}, |
|---|
| 2115 | {"zebra_log", "0", 0}, |
|---|
| 2116 | {"dyn_default", "0", 0}, |
|---|
| 2117 | |
|---|
| 2118 | {"altdns1", "", 0}, |
|---|
| 2119 | {"altdns2", "", 0}, |
|---|
| 2120 | {"altdns3", "", 0}, |
|---|
| 2121 | |
|---|
| 2122 | {"log_accepted", "0", 0}, /* 0:Disable 1:Eanble */ |
|---|
| 2123 | {"log_dropped", "0", 0}, /* 0:Disable 1:Eanble */ |
|---|
| 2124 | {"log_rejected", "0", 0}, /* 0:Disable 1:Eanble */ |
|---|
| 2125 | |
|---|
| 2126 | /* |
|---|
| 2127 | * start lonewolf mods |
|---|
| 2128 | */ |
|---|
| 2129 | {"port0vlans", "1", 0}, |
|---|
| 2130 | {"port1vlans", "0", 0}, |
|---|
| 2131 | {"port2vlans", "0", 0}, |
|---|
| 2132 | {"port3vlans", "0", 0}, |
|---|
| 2133 | {"port4vlans", "0", 0}, |
|---|
| 2134 | {"port5vlans", "0 1 16", 0}, |
|---|
| 2135 | {"vlans", "0", 0}, |
|---|
| 2136 | {"trunking", "0", 0}, |
|---|
| 2137 | /* |
|---|
| 2138 | * end lonewolf mods |
|---|
| 2139 | */ |
|---|
| 2140 | // DD-WRT start |
|---|
| 2141 | {"manual_boot_nv", "0", 0}, |
|---|
| 2142 | #ifdef HAVE_WTS |
|---|
| 2143 | {"status_auth", "0", 0}, |
|---|
| 2144 | #elif HAVE_ERC |
|---|
| 2145 | {"status_auth", "0", 0}, |
|---|
| 2146 | #else |
|---|
| 2147 | {"status_auth", "1", 0}, |
|---|
| 2148 | #endif |
|---|
| 2149 | {"ipv6_enable", "0", 0}, |
|---|
| 2150 | {"ipv6_enable0", "0", 0}, |
|---|
| 2151 | {"enable_jffs2", "0", 0}, |
|---|
| 2152 | {"clean_jffs2", "0", 0}, |
|---|
| 2153 | {"sys_enable_jffs2", "0", 0}, |
|---|
| 2154 | #ifdef HAVE_KAID |
|---|
| 2155 | {"kaid_enable", "0", 0}, |
|---|
| 2156 | {"kaid_macs", "", 0}, |
|---|
| 2157 | {"kaid_uibind", "34522", 0}, |
|---|
| 2158 | {"kaid_orbport", "34525", 0}, |
|---|
| 2159 | {"kaid_orbdeepport", "34523", 0}, |
|---|
| 2160 | #endif |
|---|
| 2161 | #ifdef HAVE_WTS |
|---|
| 2162 | {"language", "spanish", 0}, |
|---|
| 2163 | #elif defined(DEFAULT_LANGUAGE) |
|---|
| 2164 | {"language", DEFAULT_LANGUAGE, 0}, |
|---|
| 2165 | #else |
|---|
| 2166 | {"language", "english", 0}, |
|---|
| 2167 | #endif |
|---|
| 2168 | {"macupd_ip", "0.0.0.0", 0}, |
|---|
| 2169 | {"macupd_port", "2056", 0}, |
|---|
| 2170 | {"macupd_interval", "10", 0}, |
|---|
| 2171 | {"mmc_enable", "0", 0}, |
|---|
| 2172 | {"mmc_enable0", "0", 0}, |
|---|
| 2173 | #ifdef HAVE_MMC |
|---|
| 2174 | {"mmc_gpio", "0", 0}, |
|---|
| 2175 | {"mmc_di", "0", 0}, |
|---|
| 2176 | {"mmc_do", "0", 0}, |
|---|
| 2177 | {"mmc_clk", "0", 0}, |
|---|
| 2178 | {"mmc_cs", "0", 0}, |
|---|
| 2179 | #endif |
|---|
| 2180 | #ifdef HAVE_RB500 |
|---|
| 2181 | {"ip_conntrack_max", "16384", 0}, |
|---|
| 2182 | #elif HAVE_WRT300NV2 |
|---|
| 2183 | {"ip_conntrack_max", "4096", 0}, |
|---|
| 2184 | #elif HAVE_XSCALE |
|---|
| 2185 | {"ip_conntrack_max", "16384", 0}, |
|---|
| 2186 | #elif HAVE_X86 |
|---|
| 2187 | #ifdef HAVE_NOWIFI |
|---|
| 2188 | {"ip_conntrack_max", "4096", 0}, |
|---|
| 2189 | #else |
|---|
| 2190 | {"ip_conntrack_max", "32768", 0}, |
|---|
| 2191 | #endif |
|---|
| 2192 | #elif HAVE_MAGICBOX |
|---|
| 2193 | {"ip_conntrack_max", "16384", 0}, |
|---|
| 2194 | #elif HAVE_LAGUNA |
|---|
| 2195 | {"ip_conntrack_max", "32768", 0}, |
|---|
| 2196 | #elif HAVE_RB600 |
|---|
| 2197 | {"ip_conntrack_max", "32768", 0}, |
|---|
| 2198 | #elif HAVE_MERAKI |
|---|
| 2199 | {"ip_conntrack_max", "16384", 0}, |
|---|
| 2200 | #elif HAVE_FONERA |
|---|
| 2201 | {"ip_conntrack_max", "4096", 0}, |
|---|
| 2202 | #elif HAVE_BUFFALO |
|---|
| 2203 | {"ip_conntrack_max", "4096", 0}, |
|---|
| 2204 | #elif HAVE_LS2 |
|---|
| 2205 | {"ip_conntrack_max", "4096", 0}, |
|---|
| 2206 | #elif HAVE_LS5 |
|---|
| 2207 | {"ip_conntrack_max", "4096", 0}, |
|---|
| 2208 | #elif HAVE_WHRAG108 |
|---|
| 2209 | {"ip_conntrack_max", "16384", 0}, |
|---|
| 2210 | #elif HAVE_TW6600 |
|---|
| 2211 | {"ip_conntrack_max", "4096", 0}, |
|---|
| 2212 | #elif HAVE_CA8 |
|---|
| 2213 | {"ip_conntrack_max", "16384", 0}, |
|---|
| 2214 | #elif HAVE_MICRO |
|---|
| 2215 | {"ip_conntrack_max", "1024", 0}, |
|---|
| 2216 | #else |
|---|
| 2217 | {"ip_conntrack_max", "4096", 0}, |
|---|
| 2218 | #endif |
|---|
| 2219 | #ifdef HAVE_MICRO |
|---|
| 2220 | {"ip_conntrack_tcp_timeouts", "300", 0}, |
|---|
| 2221 | #else |
|---|
| 2222 | {"ip_conntrack_tcp_timeouts", "3600", 0}, |
|---|
| 2223 | #endif |
|---|
| 2224 | {"ip_conntrack_udp_timeouts", "120", 0}, |
|---|
| 2225 | {"rflow_ip", "0.0.0.0", 0}, |
|---|
| 2226 | {"rflow_port", "2055", 0}, |
|---|
| 2227 | {"rflow_if", "br0", 0}, |
|---|
| 2228 | #ifdef HAVE_PPPOERELAY |
|---|
| 2229 | #ifdef HAVE_DDLAN |
|---|
| 2230 | {"pppoerelay_enable", "1", 0}, |
|---|
| 2231 | #else |
|---|
| 2232 | {"pppoerelay_enable", "0", 0}, |
|---|
| 2233 | #endif |
|---|
| 2234 | #endif |
|---|
| 2235 | {"schedule_enable", "0", 0}, |
|---|
| 2236 | {"schedule_time", "3600", 0}, |
|---|
| 2237 | {"schedule_hour_time", "1", 0}, |
|---|
| 2238 | {"schedule_minutes", "0", 0}, |
|---|
| 2239 | {"schedule_hours", "0", 0}, |
|---|
| 2240 | {"schedule_weekdays", "00", 0}, |
|---|
| 2241 | {"smtp_redirect_enable", "0", 0}, |
|---|
| 2242 | {"smtp_redirect_destination", "0.0.0.0", 0}, |
|---|
| 2243 | {"smtp_source_network", "0.0.0.0", 0}, |
|---|
| 2244 | {"wds_watchdog_enable", "0", 0}, |
|---|
| 2245 | {"wds_watchdog_interval_sec", "1000", 0}, |
|---|
| 2246 | {"wds_watchdog_ips", "", 0}, |
|---|
| 2247 | {"dhcpfwd_enable", "0", 0}, |
|---|
| 2248 | {"dhcpfwd_ip", "0.0.0.0", 0}, |
|---|
| 2249 | {"NC_enable", "0", 0}, |
|---|
| 2250 | #ifdef CONFIG_BRANDING |
|---|
| 2251 | {"NC_GatewayName", "GATEWAY", 0}, |
|---|
| 2252 | #else |
|---|
| 2253 | {"NC_GatewayName", "DD-WRT", 0}, |
|---|
| 2254 | #endif |
|---|
| 2255 | #ifdef CONFIG_BRANDING |
|---|
| 2256 | {"NC_HomePage", "", 0}, |
|---|
| 2257 | #else |
|---|
| 2258 | {"NC_HomePage", "http://www.dd-wrt.com", 0}, |
|---|
| 2259 | #endif |
|---|
| 2260 | {"NC_ExcludePorts", "25", 0}, |
|---|
| 2261 | {"NC_IncludePorts", "", 0}, |
|---|
| 2262 | {"NC_Verbosity", "2", 0}, |
|---|
| 2263 | {"NC_LoginTimeout", "86400", 0}, |
|---|
| 2264 | #ifdef CONFIG_BRANDING |
|---|
| 2265 | {"NC_AllowedWebHosts", "google.com", 0}, |
|---|
| 2266 | #else |
|---|
| 2267 | {"NC_AllowedWebHosts", "", 0}, |
|---|
| 2268 | #endif |
|---|
| 2269 | #ifdef HAVE_RAMSKOV |
|---|
| 2270 | {"NC_RouteOnly", "0", 0}, |
|---|
| 2271 | {"NC_DocumentRoot", "/tmp", 0}, |
|---|
| 2272 | #else |
|---|
| 2273 | {"NC_RouteOnly", "0", 0}, |
|---|
| 2274 | {"NC_DocumentRoot", "/www", 0}, |
|---|
| 2275 | #endif |
|---|
| 2276 | {"NC_SplashURL", "", 0}, |
|---|
| 2277 | {"NC_SplashURLTimeout", "21600", 0}, |
|---|
| 2278 | {"NC_MACWhiteList", "", 0}, |
|---|
| 2279 | {"NC_GatewayPort", "5280", 0}, |
|---|
| 2280 | {"NC_GatewayMode", "Open", 0}, |
|---|
| 2281 | {"NC_extifname", "auto", 0}, |
|---|
| 2282 | {"NC_ForcedRedirect", "0", 0}, |
|---|
| 2283 | {"NC_IdleTimeout", "0", 0}, |
|---|
| 2284 | {"NC_MaxMissedARP", "5", 0}, |
|---|
| 2285 | {"NC_RenewTimeout", "0", 0}, |
|---|
| 2286 | |
|---|
| 2287 | {"wl_wme", "on", 0}, /* WME mode (off|on) */ |
|---|
| 2288 | {"wl1_wme", "on", 0}, /* WME mode (off|on) */ |
|---|
| 2289 | /* |
|---|
| 2290 | * WME parameters |
|---|
| 2291 | */ |
|---|
| 2292 | /* |
|---|
| 2293 | * EDCA parameters for STA |
|---|
| 2294 | */ |
|---|
| 2295 | {"wl_wme_sta_bk", "15 1023 7 0 0 off", 0}, /* WME STA AC_BK paramters */ |
|---|
| 2296 | {"wl_wme_sta_be", "15 1023 3 0 0 off", 0}, /* WME STA AC_BE paramters */ |
|---|
| 2297 | {"wl_wme_sta_vi", "7 15 2 6016 3008 off", 0}, /* WME STA AC_VI |
|---|
| 2298 | * paramters */ |
|---|
| 2299 | {"wl_wme_sta_vo", "3 7 2 3264 1504 off", 0}, /* WME STA AC_VO |
|---|
| 2300 | * paramters */ |
|---|
| 2301 | |
|---|
| 2302 | /* |
|---|
| 2303 | * EDCA parameters for AP |
|---|
| 2304 | */ |
|---|
| 2305 | {"wl_wme_ap_bk", "15 1023 7 0 0 off", 0}, /* WME AP AC_BK paramters */ |
|---|
| 2306 | {"wl_wme_ap_be", "15 63 3 0 0 off", 0}, /* WME AP AC_BE paramters */ |
|---|
| 2307 | {"wl_wme_ap_vi", "7 15 1 6016 3008 off", 0}, /* WME AP AC_VI |
|---|
| 2308 | * paramters */ |
|---|
| 2309 | {"wl_wme_ap_vo", "3 7 1 3264 1504 off", 0}, /* WME AP AC_VO paramters */ |
|---|
| 2310 | {"wl_wme_no_ack", "off", 0}, /* WME No-Acknowledgmen mode */ |
|---|
| 2311 | {"wl_wme_apsd", "on", 0}, /* WME APSD mode */ |
|---|
| 2312 | |
|---|
| 2313 | {"wl1_wme_sta_bk", "15 1023 7 0 0 off", 0}, /* WME STA AC_BK paramters */ |
|---|
| 2314 | {"wl1_wme_sta_be", "15 1023 3 0 0 off", 0}, /* WME STA AC_BE paramters */ |
|---|
| 2315 | {"wl1_wme_sta_vi", "7 15 2 6016 3008 off", 0}, /* WME STA AC_VI * paramters */ |
|---|
| 2316 | {"wl1_wme_sta_vo", "3 7 2 3264 1504 off", 0}, /* WME STA AC_VO |
|---|
| 2317 | * paramters */ |
|---|
| 2318 | |
|---|
| 2319 | /* |
|---|
| 2320 | * EDCA parameters for AP |
|---|
| 2321 | */ |
|---|
| 2322 | {"wl1_wme_ap_bk", "15 1023 7 0 0 off", 0}, /* WME AP AC_BK paramters */ |
|---|
| 2323 | {"wl1_wme_ap_be", "15 63 3 0 0 off", 0}, /* WME AP AC_BE paramters */ |
|---|
| 2324 | {"wl1_wme_ap_vi", "7 15 1 6016 3008 off", 0}, /* WME AP AC_VI * paramters */ |
|---|
| 2325 | {"wl1_wme_ap_vo", "3 7 1 3264 1504 off", 0}, /* WME AP AC_VO |
|---|
| 2326 | * paramters */ |
|---|
| 2327 | {"wl1_wme_no_ack", "off", 0}, /* WME No-Acknowledgmen mode */ |
|---|
| 2328 | {"wl1_wme_apsd", "on", 0}, /* WME APSD mode */ |
|---|
| 2329 | |
|---|
| 2330 | {"wl_maxassoc", "128", 0}, /* Max associations driver could support */ |
|---|
| 2331 | {"wl1_maxassoc", "128", 0}, /* Max associations driver could support */ |
|---|
| 2332 | |
|---|
| 2333 | /* Per AC Tx parameters */ |
|---|
| 2334 | |
|---|
| 2335 | {"wl_wme_txp_be", "7 3 4 2 0", 0}, /* WME AC_BE Tx parameters */ |
|---|
| 2336 | {"wl_wme_txp_bk", "7 3 4 2 0", 0}, /* WME AC_BK Tx parameters */ |
|---|
| 2337 | {"wl_wme_txp_vi", "7 3 4 2 0", 0}, /* WME AC_VI Tx parameters */ |
|---|
| 2338 | {"wl_wme_txp_vo", "7 3 4 2 0", 0}, /* WME AC_VO Tx parameters */ |
|---|
| 2339 | |
|---|
| 2340 | {"wl1_wme_txp_be", "7 3 4 2 0", 0}, /* WME AC_BE Tx parameters */ |
|---|
| 2341 | {"wl1_wme_txp_bk", "7 3 4 2 0", 0}, /* WME AC_BK Tx parameters */ |
|---|
| 2342 | {"wl1_wme_txp_vi", "7 3 4 2 0", 0}, /* WME AC_VI Tx parameters */ |
|---|
| 2343 | {"wl1_wme_txp_vo", "7 3 4 2 0", 0}, /* WME AC_VO Tx parameters */ |
|---|
| 2344 | |
|---|
| 2345 | #ifdef HAVE_ZEROIP |
|---|
| 2346 | {"shat_enable", "0", 0}, |
|---|
| 2347 | {"shat_range", "192.168.1.79+20", 0}, |
|---|
| 2348 | {"shat_shield", "", 0}, |
|---|
| 2349 | #endif |
|---|
| 2350 | #ifdef HAVE_SKYTRON |
|---|
| 2351 | {"dhcp_dnsmasq", "1", 0}, |
|---|
| 2352 | {"enable_game", "1", 0}, |
|---|
| 2353 | #elif HAVE_POWERNOC |
|---|
| 2354 | {"dhcp_dnsmasq", "1", 0}, |
|---|
| 2355 | {"enable_game", "0", 0}, |
|---|
| 2356 | #elif HAVE_FON |
|---|
| 2357 | {"dhcp_dnsmasq", "0", 0}, |
|---|
| 2358 | {"enable_game", "0", 0}, |
|---|
| 2359 | #elif HAVE_WTS |
|---|
| 2360 | {"dhcp_dnsmasq", "1", 0}, |
|---|
| 2361 | {"enable_game", "0", 0}, |
|---|
| 2362 | #elif HAVE_WRK54G |
|---|
| 2363 | {"dhcp_dnsmasq", "0", 0}, |
|---|
| 2364 | // #elif HAVE_ADM5120 |
|---|
| 2365 | // {"dhcp_dnsmasq", "0", 0}, |
|---|
| 2366 | #else |
|---|
| 2367 | {"dhcp_dnsmasq", "1", 0}, |
|---|
| 2368 | {"enable_game", "0", 0}, |
|---|
| 2369 | #endif |
|---|
| 2370 | {"dns_dnsmasq", "1", 0}, |
|---|
| 2371 | {"auth_dnsmasq", "1", 0}, |
|---|
| 2372 | #ifdef HAVE_GGEW |
|---|
| 2373 | {"ral", "217.113.177.185 172.16.0.0/28", 0}, |
|---|
| 2374 | {"pptp_use_dhcp", "1", 0}, /* pptp will use dhcp to obtain ip address, netmask and gateway */ |
|---|
| 2375 | {"pptp_server_name", "proxy2.wlan.ggew-net.de", 0}, |
|---|
| 2376 | #else |
|---|
| 2377 | {"pptp_use_dhcp", "0", 0}, /* pptp will use dhcp to obtain ip address, netmask and gateway */ |
|---|
| 2378 | {"pptp_server_name", "", 0}, |
|---|
| 2379 | #endif |
|---|
| 2380 | |
|---|
| 2381 | {"forward_entries", "0", 0}, |
|---|
| 2382 | {"forwardspec_entries", "0", 0}, |
|---|
| 2383 | {"trigger_entries", "0", 0}, |
|---|
| 2384 | #ifdef HAVE_SKYTRON |
|---|
| 2385 | {"sip_port", "5060", 0}, |
|---|
| 2386 | {"sip_domain", "sip.skytron.de", 0}, |
|---|
| 2387 | #else |
|---|
| 2388 | {"sip_port", "5060", 0}, /* MILKFISH SETTING */// this setting is not evaluated/used by the |
|---|
| 2389 | // milkfish scripts for milkfish-dd 1.0 - |
|---|
| 2390 | // fs070712 |
|---|
| 2391 | {"sip_domain", "192.168.1.1", 0}, /* MILKFISH SETTING */// set "192.168.1.1" as default - not |
|---|
| 2392 | // |
|---|
| 2393 | // |
|---|
| 2394 | // setting at all disables dbtextctl |
|---|
| 2395 | // script - fs070712 |
|---|
| 2396 | #endif |
|---|
| 2397 | #ifdef HAVE_AQOS |
|---|
| 2398 | {"default_uplevel", "100000", 0}, // set a useful value to prevent |
|---|
| 2399 | // deadlock |
|---|
| 2400 | {"default_downlevel", "100000", 0}, // set a useful value to prevent |
|---|
| 2401 | // deadlock |
|---|
| 2402 | #endif |
|---|
| 2403 | {"static_leases", "", 0}, |
|---|
| 2404 | {"static_leasenum", "0", 0}, |
|---|
| 2405 | {"dhcpc_vendorclass", "", 0}, // vendor class id for client |
|---|
| 2406 | // (optional) |
|---|
| 2407 | {"dhcpc_requestip", "", 0}, // request ip (optional) |
|---|
| 2408 | #ifdef HAVE_DDLAN |
|---|
| 2409 | {"maskmac", "0", 0}, |
|---|
| 2410 | #else |
|---|
| 2411 | {"maskmac", "1", 0}, |
|---|
| 2412 | #endif |
|---|
| 2413 | {"fullswitch", "0", 0}, |
|---|
| 2414 | #ifdef HAVE_OPENVPN |
|---|
| 2415 | {"openvpncl_enable", "0", 0}, |
|---|
| 2416 | {"openvpncl_remoteip", "0.0.0.0", 0}, |
|---|
| 2417 | {"openvpncl_remoteport", "1194", 0}, |
|---|
| 2418 | {"openvpncl_ca", "", 0}, |
|---|
| 2419 | {"openvpncl_client", "", 0}, |
|---|
| 2420 | {"openvpncl_key", "", 0}, |
|---|
| 2421 | {"openvpncl_lzo", "0", 0}, |
|---|
| 2422 | {"openvpncl_proto", "udp", 0}, |
|---|
| 2423 | {"openvpncl_mtu", "1500", 0}, |
|---|
| 2424 | {"openvpncl_mssfix", "", 0}, |
|---|
| 2425 | {"openvpncl_certtype", "0", 0}, |
|---|
| 2426 | {"openvpncl_tuntap", "tun", 0}, |
|---|
| 2427 | {"openvpncl_nat", "0", 0}, |
|---|
| 2428 | {"openvpncl_config", "", 0}, |
|---|
| 2429 | {"openvpncl_tlsauth", "", 0}, |
|---|
| 2430 | {"openvpncl_cipher", "bf-cbc", 0}, |
|---|
| 2431 | {"openvpncl_auth", "sha1", 0}, |
|---|
| 2432 | {"openvpncl_adv", "0", 0}, |
|---|
| 2433 | {"openvpncl_bridge", "0", 0}, |
|---|
| 2434 | {"openvpncl_tlscip", "0", 0}, |
|---|
| 2435 | {"openvpncl_route", "", 0}, |
|---|
| 2436 | {"openvpncl_ip", "", 0}, |
|---|
| 2437 | |
|---|
| 2438 | {"openvpn_enable", "0", 0}, |
|---|
| 2439 | {"openvpn_net", "0.0.0.0", 0}, |
|---|
| 2440 | {"openvpn_mask", "0.0.0.0", 0}, |
|---|
| 2441 | {"openvpn_gateway", "0.0.0.0", 0}, |
|---|
| 2442 | {"openvpn_startip", "0.0.0.0", 0}, |
|---|
| 2443 | {"openvpn_endip", "0.0.0.0", 0}, |
|---|
| 2444 | {"openvpn_port", "1194", 0}, |
|---|
| 2445 | {"openvpn_ca", "", 0}, |
|---|
| 2446 | {"openvpn_crl", "", 0}, |
|---|
| 2447 | {"openvpn_crt", "", 0}, |
|---|
| 2448 | {"openvpn_client", "", 0}, //old and invalid just to be compatible to old config |
|---|
| 2449 | {"openvpn_key", "", 0}, |
|---|
| 2450 | {"openvpn_lzo", "0", 0}, |
|---|
| 2451 | {"openvpn_proto", "udp", 0}, |
|---|
| 2452 | {"openvpn_mtu", "1500", 0}, |
|---|
| 2453 | {"openvpn_mssfix", "", 0}, |
|---|
| 2454 | {"openvpn_config", "", 0}, |
|---|
| 2455 | {"openvpn_dh", "", 0}, |
|---|
| 2456 | {"openvpn_tlsauth", "", 0}, |
|---|
| 2457 | {"openvpn_config", "", 0}, |
|---|
| 2458 | {"openvpn_tuntap", "tun", 0}, |
|---|
| 2459 | {"openvpn_cl2cl", "1", 0}, |
|---|
| 2460 | {"openvpn_dupcn", "0", 0}, |
|---|
| 2461 | {"openvpn_onwan", "0", 0}, |
|---|
| 2462 | {"openvpn_switch", "0", 0}, //switch between old/new style config |
|---|
| 2463 | {"openvpn_cipher", "bf-cbc", 0}, |
|---|
| 2464 | {"openvpn_auth", "sha1", 0}, |
|---|
| 2465 | {"openvpn_redirgate", "0", 0}, |
|---|
| 2466 | {"openvpn_adv", "0", 0}, |
|---|
| 2467 | {"openvpn_tlscip", "0", 0}, |
|---|
| 2468 | {"openvpn_proxy", "0", 0}, |
|---|
| 2469 | {"openvpn_ccddef", "", 0}, |
|---|
| 2470 | |
|---|
| 2471 | #endif |
|---|
| 2472 | #ifdef HAVE_KODATA |
|---|
| 2473 | {"newhttp_username", "bJ/GddyoJuiU2", 0}, |
|---|
| 2474 | {"newhttp_passwd", "bJDLObifZlIRQ", 0}, |
|---|
| 2475 | #endif |
|---|
| 2476 | #ifdef HAVE_34TELECOM |
|---|
| 2477 | {"newhttp_passwd", "hdslklas9a", 0}, |
|---|
| 2478 | #endif |
|---|
| 2479 | #ifdef HAVE_ERC |
|---|
| 2480 | {"newhttp_passwd", "$1$.V44ffYt$6ttOdlItuYV6uvi..vvoO/", 0}, |
|---|
| 2481 | #endif |
|---|
| 2482 | #ifdef HAVE_CARLSONWIRELESS |
|---|
| 2483 | {"newhttp_username", "$1$y5qEiLaV$/2cQErs8qxs./J3pl2l2F.", 0}, /* HTTP username) */ |
|---|
| 2484 | {"newhttp_passwd", "$1$y5qEiLaV$KNvLd5jrLCfYko/e6e7lZ1", 0}, /* HTTP password) */ |
|---|
| 2485 | #endif |
|---|
| 2486 | #ifdef HAVE_MADWIFI |
|---|
| 2487 | /* |
|---|
| 2488 | * {"ath0_regdomain", "96", 0}, {"ath1_regdomain", "96", 0}, |
|---|
| 2489 | * {"ath2_regdomain", "96", 0}, {"ath3_regdomain", "96", 0}, |
|---|
| 2490 | * {"ath4_regdomain", "96", 0}, {"ath5_regdomain", "96", 0}, |
|---|
| 2491 | */ |
|---|
| 2492 | #endif |
|---|
| 2493 | #ifdef HAVE_SPUTNIK_APD |
|---|
| 2494 | |
|---|
| 2495 | #ifdef HAVE_SPUTNIK |
|---|
| 2496 | {"sputnik_mjid_type", "0", 0}, |
|---|
| 2497 | {"sputnik_mjid", "sputnik@wifi.sputnik.com", 0}, |
|---|
| 2498 | #if defined(HAVE_XSCALE) || defined(HAVE_X86) |
|---|
| 2499 | {"sputnik_mode", "pro", 0}, |
|---|
| 2500 | #else |
|---|
| 2501 | {"sputnik_mode", "standard", 0}, |
|---|
| 2502 | #endif |
|---|
| 2503 | {"sputnik_done", "0", 0}, |
|---|
| 2504 | {"sputnik_rereg", "1", 0}, |
|---|
| 2505 | {"apd_enable", "1", 0}, |
|---|
| 2506 | #else |
|---|
| 2507 | {"sputnik_mjid_type", "0", 0}, |
|---|
| 2508 | {"sputnik_mjid", "", 0}, |
|---|
| 2509 | {"sputnik_mode", "standard", 0}, |
|---|
| 2510 | {"sputnik_done", "0", 0}, |
|---|
| 2511 | {"apd_enable", "0", 0}, |
|---|
| 2512 | #endif |
|---|
| 2513 | #endif |
|---|
| 2514 | #ifdef HAVE_FONERA |
|---|
| 2515 | {"upgrade_delay", "1200", 0}, |
|---|
| 2516 | #elif HAVE_MERAKI |
|---|
| 2517 | {"upgrade_delay", "600", 0}, |
|---|
| 2518 | #elif HAVE_LS2 |
|---|
| 2519 | {"upgrade_delay", "600", 0}, |
|---|
| 2520 | #else |
|---|
| 2521 | {"upgrade_delay", "300", 0}, |
|---|
| 2522 | #endif |
|---|
| 2523 | #ifdef HAVE_WIFIDOG |
|---|
| 2524 | {"wd_enable", "0", 0}, |
|---|
| 2525 | {"wd_gwid", "default", 0}, |
|---|
| 2526 | {"wd_url", "", 0}, |
|---|
| 2527 | {"wd_gwport", "2060", 0}, |
|---|
| 2528 | {"wd_httpdname", "WiFiDog", 0}, |
|---|
| 2529 | {"wd_httpdcon", "10", 0}, |
|---|
| 2530 | {"wd_interval", "60", 0}, |
|---|
| 2531 | {"wd_timeout", "5", 0}, |
|---|
| 2532 | {"wd_maclist", "", 0}, |
|---|
| 2533 | {"wd_hostname", "", 0}, |
|---|
| 2534 | {"wd_sslavailable", "0", 0}, |
|---|
| 2535 | {"wd_sslport", "443", 0}, |
|---|
| 2536 | {"wd_httpport", "80", 0}, |
|---|
| 2537 | {"wd_path", "/wifidog", 0}, |
|---|
| 2538 | {"wd_auth", "0", 0}, |
|---|
| 2539 | {"wd_username", "", 0}, |
|---|
| 2540 | {"wd_password", "", 0}, |
|---|
| 2541 | #endif |
|---|
| 2542 | |
|---|
| 2543 | #ifdef HAVE_CHILLILOCAL |
|---|
| 2544 | {"fon_usernames", "0", 0}, |
|---|
| 2545 | {"fon_userlist", "", 0}, |
|---|
| 2546 | #endif |
|---|
| 2547 | {"fon_enable", "0", 0}, |
|---|
| 2548 | {"pptpd_client_enable", "", 0}, |
|---|
| 2549 | {"pptpd_client_srvip", "", 0}, |
|---|
| 2550 | {"pptpd_client_srvsub", "", 0}, |
|---|
| 2551 | {"pptpd_client_srvsubmsk", "", 0}, |
|---|
| 2552 | {"pptpd_client_srvuser", "", 0}, |
|---|
| 2553 | {"pptpd_client_srvpass", "", 0}, |
|---|
| 2554 | {"pptpd_client_ipparam", "", 0}, |
|---|
| 2555 | {"pptpd_client_mtu", "1450", 0}, |
|---|
| 2556 | {"pptpd_client_mru", "1450", 0}, |
|---|
| 2557 | #ifdef HAVE_RADIOOFF |
|---|
| 2558 | #ifdef HAVE_AOSS |
|---|
| 2559 | {"radiooff_button", "2", 0}, |
|---|
| 2560 | {"radiooff_boot_off", "0", 0}, |
|---|
| 2561 | #else |
|---|
| 2562 | {"radiooff_button", "0", 0}, |
|---|
| 2563 | {"radiooff_boot_off", "0", 0}, |
|---|
| 2564 | #endif |
|---|
| 2565 | #endif |
|---|
| 2566 | {"radio0_on_time", "111111111111111111111111", 0}, /* Radio timer, |
|---|
| 2567 | * always on */ |
|---|
| 2568 | {"radio0_timer_enable", "0", 0}, |
|---|
| 2569 | {"radio1_on_time", "111111111111111111111111", 0}, /* Radio timer, |
|---|
| 2570 | * always on */ |
|---|
| 2571 | {"radio1_timer_enable", "0", 0}, |
|---|
| 2572 | #ifdef HAVE_CPUTEMP |
|---|
| 2573 | {"hwmon_temp_max", "60", 0}, |
|---|
| 2574 | {"hwmon_temp_hyst", "50", 0}, |
|---|
| 2575 | #endif |
|---|
| 2576 | #ifdef HAVE_RSTATS |
|---|
| 2577 | {"rstats_enable", "0", 0}, |
|---|
| 2578 | {"rstats_path", "", 0}, |
|---|
| 2579 | {"rstats_stime", "48", 0}, |
|---|
| 2580 | {"rstats_data", "", 0}, |
|---|
| 2581 | #endif |
|---|
| 2582 | #ifdef HAVE_NSTX |
|---|
| 2583 | {"nstxd_enable", "0", 0}, |
|---|
| 2584 | {"nstx_ipenable", "0", 0}, |
|---|
| 2585 | {"nstx_ip", "0.0.0.0", 0}, |
|---|
| 2586 | {"nstx_log", "0", 0}, |
|---|
| 2587 | #endif |
|---|
| 2588 | #ifdef HAVE_PORTSETUP |
|---|
| 2589 | {"eth0_bridged", "1", 0}, /* Service set ID (network name) */ |
|---|
| 2590 | {"eth0_ipaddr", "0.0.0.0", 0}, /* Service set ID (network name) */ |
|---|
| 2591 | {"eth0_netmask", "0.0.0.0", 0}, /* Service set ID (network name) */ |
|---|
| 2592 | |
|---|
| 2593 | {"eth1_bridged", "1", 0}, /* Service set ID (network name) */ |
|---|
| 2594 | {"eth1_ipaddr", "0.0.0.0", 0}, /* Service set ID (network name) */ |
|---|
| 2595 | {"eth1_netmask", "0.0.0.0", 0}, /* Service set ID (network name) */ |
|---|
| 2596 | |
|---|
| 2597 | {"eth2_bridged", "1", 0}, /* Service set ID (network name) */ |
|---|
| 2598 | {"eth2_ipaddr", "0.0.0.0", 0}, /* Service set ID (network name) */ |
|---|
| 2599 | {"eth2_netmask", "0.0.0.0", 0}, /* Service set ID (network name) */ |
|---|
| 2600 | |
|---|
| 2601 | {"eth3_bridged", "1", 0}, /* Service set ID (network name) */ |
|---|
| 2602 | {"eth3_ipaddr", "0.0.0.0", 0}, /* Service set ID (network name) */ |
|---|
| 2603 | {"eth3_netmask", "0.0.0.0", 0}, /* Service set ID (network name) */ |
|---|
| 2604 | |
|---|
| 2605 | {"eth4_bridged", "1", 0}, /* Service set ID (network name) */ |
|---|
| 2606 | {"eth4_ipaddr", "0.0.0.0", 0}, /* Service set ID (network name) */ |
|---|
| 2607 | {"eth4_netmask", "0.0.0.0", 0}, /* Service set ID (network name) */ |
|---|
| 2608 | |
|---|
| 2609 | {"eth5_bridged", "1", 0}, /* Service set ID (network name) */ |
|---|
| 2610 | {"eth5_ipaddr", "0.0.0.0", 0}, /* Service set ID (network name) */ |
|---|
| 2611 | {"eth5_netmask", "0.0.0.0", 0}, /* Service set ID (network name) */ |
|---|
| 2612 | |
|---|
| 2613 | {"eth6_bridged", "1", 0}, /* Service set ID (network name) */ |
|---|
| 2614 | {"eth6_ipaddr", "0.0.0.0", 0}, /* Service set ID (network name) */ |
|---|
| 2615 | {"eth6_netmask", "0.0.0.0", 0}, /* Service set ID (network name) */ |
|---|
| 2616 | |
|---|
| 2617 | {"eth7_bridged", "1", 0}, /* Service set ID (network name) */ |
|---|
| 2618 | {"eth7_ipaddr", "0.0.0.0", 0}, /* Service set ID (network name) */ |
|---|
| 2619 | {"eth7_netmask", "0.0.0.0", 0}, /* Service set ID (network name) */ |
|---|
| 2620 | |
|---|
| 2621 | {"eth8_bridged", "1", 0}, /* Service set ID (network name) */ |
|---|
| 2622 | {"eth8_ipaddr", "0.0.0.0", 0}, /* Service set ID (network name) */ |
|---|
| 2623 | {"eth8_netmask", "0.0.0.0", 0}, /* Service set ID (network name) */ |
|---|
| 2624 | |
|---|
| 2625 | {"eth9_bridged", "1", 0}, /* Service set ID (network name) */ |
|---|
| 2626 | {"eth9_ipaddr", "0.0.0.0", 0}, /* Service set ID (network name) */ |
|---|
| 2627 | {"eth9_netmask", "0.0.0.0", 0}, /* Service set ID (network name) */ |
|---|
| 2628 | |
|---|
| 2629 | {"eth10_bridged", "1", 0}, /* Service set ID (network name) */ |
|---|
| 2630 | {"eth10_ipaddr", "0.0.0.0", 0}, /* Service set ID (network name) */ |
|---|
| 2631 | {"eth10_netmask", "0.0.0.0", 0}, /* Service set ID (network name) */ |
|---|
| 2632 | #endif |
|---|
| 2633 | #ifdef HAVE_EOP |
|---|
| 2634 | {"oet1_en", "0", 0}, |
|---|
| 2635 | {"oet1_rem", "192.168.90.1", 0}, |
|---|
| 2636 | {"oet1_ip", "1.2.3.4", 0}, |
|---|
| 2637 | {"oet1_netmask", "255.255.255.0", 0}, |
|---|
| 2638 | {"oet1_id", "1", 0}, |
|---|
| 2639 | {"oet1_comp", "0", 0}, |
|---|
| 2640 | {"oet1_pt", "0", 0}, |
|---|
| 2641 | {"oet1_fragment", "0", 0}, |
|---|
| 2642 | {"oet1_mssfix", "0", 0}, |
|---|
| 2643 | {"oet1_shaper", "0", 0}, |
|---|
| 2644 | {"oet1_bridged", "1", 0}, |
|---|
| 2645 | |
|---|
| 2646 | {"oet2_en", "0", 0}, |
|---|
| 2647 | {"oet2_rem", "192.168.90.1", 0}, |
|---|
| 2648 | {"oet2_ip", "1.2.3.4", 0}, |
|---|
| 2649 | {"oet2_netmask", "255.255.255.0", 0}, |
|---|
| 2650 | {"oet2_id", "1", 0}, |
|---|
| 2651 | {"oet2_comp", "0", 0}, |
|---|
| 2652 | {"oet2_pt", "0", 0}, |
|---|
| 2653 | {"oet2_fragment", "0", 0}, |
|---|
| 2654 | {"oet2_mssfix", "0", 0}, |
|---|
| 2655 | {"oet2_shaper", "0", 0}, |
|---|
| 2656 | {"oet2_bridged", "1", 0}, |
|---|
| 2657 | |
|---|
| 2658 | {"oet3_en", "0", 0}, |
|---|
| 2659 | {"oet3_rem", "192.168.90.1", 0}, |
|---|
| 2660 | {"oet3_ip", "1.2.3.4", 0}, |
|---|
| 2661 | {"oet3_netmask", "255.255.255.0", 0}, |
|---|
| 2662 | {"oet3_id", "1", 0}, |
|---|
| 2663 | {"oet3_comp", "0", 0}, |
|---|
| 2664 | {"oet3_pt", "0", 0}, |
|---|
| 2665 | {"oet3_fragment", "0", 0}, |
|---|
| 2666 | {"oet3_mssfix", "0", 0}, |
|---|
| 2667 | {"oet3_shaper", "0", 0}, |
|---|
| 2668 | {"oet3_bridged", "1", 0}, |
|---|
| 2669 | |
|---|
| 2670 | {"oet4_en", "0", 0}, |
|---|
| 2671 | {"oet4_rem", "192.168.90.1", 0}, |
|---|
| 2672 | {"oet4_ip", "1.2.3.4", 0}, |
|---|
| 2673 | {"oet4_netmask", "255.255.255.0", 0}, |
|---|
| 2674 | {"oet4_id", "1", 0}, |
|---|
| 2675 | {"oet4_comp", "0", 0}, |
|---|
| 2676 | {"oet4_pt", "0", 0}, |
|---|
| 2677 | {"oet4_fragment", "0", 0}, |
|---|
| 2678 | {"oet4_mssfix", "0", 0}, |
|---|
| 2679 | {"oet4_shaper", "0", 0}, |
|---|
| 2680 | {"oet4_bridged", "1", 0}, |
|---|
| 2681 | |
|---|
| 2682 | {"oet5_en", "0", 0}, |
|---|
| 2683 | {"oet5_rem", "192.168.90.1", 0}, |
|---|
| 2684 | {"oet5_ip", "1.2.3.4", 0}, |
|---|
| 2685 | {"oet5_netmask", "255.255.255.0", 0}, |
|---|
| 2686 | {"oet5_id", "1", 0}, |
|---|
| 2687 | {"oet5_comp", "0", 0}, |
|---|
| 2688 | {"oet5_pt", "0", 0}, |
|---|
| 2689 | {"oet5_fragment", "0", 0}, |
|---|
| 2690 | {"oet5_mssfix", "0", 0}, |
|---|
| 2691 | {"oet5_shaper", "0", 0}, |
|---|
| 2692 | {"oet5_bridged", "1", 0}, |
|---|
| 2693 | |
|---|
| 2694 | {"oet6_en", "0", 0}, |
|---|
| 2695 | {"oet6_rem", "192.168.90.1", 0}, |
|---|
| 2696 | {"oet6_ip", "1.2.3.4", 0}, |
|---|
| 2697 | {"oet6_netmask", "255.255.255.0", 0}, |
|---|
| 2698 | {"oet6_id", "1", 0}, |
|---|
| 2699 | {"oet6_comp", "0", 0}, |
|---|
| 2700 | {"oet6_pt", "0", 0}, |
|---|
| 2701 | {"oet6_fragment", "0", 0}, |
|---|
| 2702 | {"oet6_mssfix", "0", 0}, |
|---|
| 2703 | {"oet6_shaper", "0", 0}, |
|---|
| 2704 | {"oet6_bridged", "1", 0}, |
|---|
| 2705 | |
|---|
| 2706 | {"oet7_en", "0", 0}, |
|---|
| 2707 | {"oet7_rem", "192.168.90.1", 0}, |
|---|
| 2708 | {"oet7_ip", "1.2.3.4", 0}, |
|---|
| 2709 | {"oet7_netmask", "255.255.255.0", 0}, |
|---|
| 2710 | {"oet7_id", "1", 0}, |
|---|
| 2711 | {"oet7_comp", "0", 0}, |
|---|
| 2712 | {"oet7_pt", "0", 0}, |
|---|
| 2713 | {"oet7_fragment", "0", 0}, |
|---|
| 2714 | {"oet7_mssfix", "0", 0}, |
|---|
| 2715 | {"oet7_shaper", "0", 0}, |
|---|
| 2716 | {"oet7_bridged", "1", 0}, |
|---|
| 2717 | |
|---|
| 2718 | {"oet8_en", "0", 0}, |
|---|
| 2719 | {"oet8_rem", "192.168.90.1", 0}, |
|---|
| 2720 | {"oet8_ip", "1.2.3.4", 0}, |
|---|
| 2721 | {"oet8_netmask", "255.255.255.0", 0}, |
|---|
| 2722 | {"oet8_id", "1", 0}, |
|---|
| 2723 | {"oet8_comp", "0", 0}, |
|---|
| 2724 | {"oet8_pt", "0", 0}, |
|---|
| 2725 | {"oet8_fragment", "0", 0}, |
|---|
| 2726 | {"oet8_mssfix", "0", 0}, |
|---|
| 2727 | {"oet8_shaper", "0", 0}, |
|---|
| 2728 | {"oet8_bridged", "1", 0}, |
|---|
| 2729 | |
|---|
| 2730 | {"oet9_en", "0", 0}, |
|---|
| 2731 | {"oet9_rem", "192.168.90.1", 0}, |
|---|
| 2732 | {"oet9_ip", "1.2.3.4", 0}, |
|---|
| 2733 | {"oet9_netmask", "255.255.255.0", 0}, |
|---|
| 2734 | {"oet9_id", "1", 0}, |
|---|
| 2735 | {"oet9_comp", "0", 0}, |
|---|
| 2736 | {"oet9_pt", "0", 0}, |
|---|
| 2737 | {"oet9_fragment", "0", 0}, |
|---|
| 2738 | {"oet9_mssfix", "0", 0}, |
|---|
| 2739 | {"oet9_shaper", "0", 0}, |
|---|
| 2740 | {"oet9_bridged", "1", 0}, |
|---|
| 2741 | |
|---|
| 2742 | {"oet10_en", "0", 0}, |
|---|
| 2743 | {"oet10_rem", "192.168.90.1", 0}, |
|---|
| 2744 | {"oet10_ip", "1.2.3.4", 0}, |
|---|
| 2745 | {"oet10_netmask", "255.255.255.0", 0}, |
|---|
| 2746 | {"oet10_id", "1", 0}, |
|---|
| 2747 | {"oet10_comp", "0", 0}, |
|---|
| 2748 | {"oet10_pt", "0", 0}, |
|---|
| 2749 | {"oet10_fragment", "0", 0}, |
|---|
| 2750 | {"oet10_mssfix", "0", 0}, |
|---|
| 2751 | {"oet10_shaper", "0", 0}, |
|---|
| 2752 | {"oet10_bridged", "1", 0}, |
|---|
| 2753 | #endif |
|---|
| 2754 | {"wifi_bonding", "0", 0}, |
|---|
| 2755 | #ifdef HAVE_RADLOCAL |
|---|
| 2756 | {"iradius_enable", "0", 0}, |
|---|
| 2757 | #endif |
|---|
| 2758 | #if defined(HAVE_MADWIFI) || defined(HAVE_ATH9K) |
|---|
| 2759 | {"wifi_display", "ath0", 0}, |
|---|
| 2760 | #else |
|---|
| 2761 | {"wifi_display", "wl0", 0}, |
|---|
| 2762 | #endif |
|---|
| 2763 | #ifdef HAVE_USB |
|---|
| 2764 | {"usb_enable", "0", 0}, |
|---|
| 2765 | {"usb_uhci", "0", 0}, |
|---|
| 2766 | {"usb_ohci", "0", 0}, |
|---|
| 2767 | {"usb_usb2", "0", 0}, |
|---|
| 2768 | {"usb_storage", "0", 0}, |
|---|
| 2769 | {"usb_printer", "0", 0}, |
|---|
| 2770 | {"usb_automnt", "0", 0}, |
|---|
| 2771 | {"usb_mntpoint", "mnt", 0}, |
|---|
| 2772 | {"usb_runonmount", "", 0}, |
|---|
| 2773 | #endif |
|---|
| 2774 | {"ttraff_enable", "1", 0}, |
|---|
| 2775 | #ifdef HAVE_PPPOESERVER |
|---|
| 2776 | {"pppoeserver_enabled", "0", 0}, |
|---|
| 2777 | {"pppoeserver_interface", "br0", 0}, |
|---|
| 2778 | {"pppoeradius_enabled", "0", 0}, |
|---|
| 2779 | {"pppoeserver_bsdcomp", "0", 0}, |
|---|
| 2780 | {"pppoeserver_deflate", "0", 0}, |
|---|
| 2781 | {"pppoeserver_lzs", "0", 0}, |
|---|
| 2782 | {"pppoeserver_mppc", "0", 0}, |
|---|
| 2783 | {"pppoeserver_encryption", "0", 0}, |
|---|
| 2784 | {"pppoeserver_lcpechoint", "60", 0}, |
|---|
| 2785 | {"pppoeserver_lcpechofail", "5", 0}, |
|---|
| 2786 | {"pppoeserver_sessionlimit", "10", 0}, |
|---|
| 2787 | {"pppoeserver_chaps", "", 0}, |
|---|
| 2788 | {"pppoeserver_chapsnum", "0", 0}, |
|---|
| 2789 | {"pppoeserver_idle", "600", 0}, |
|---|
| 2790 | {"pppoeserver_authserverip", "192.168.1.1", 0}, |
|---|
| 2791 | {"pppoeserver_authserverport", "1812", 0}, |
|---|
| 2792 | {"pppoeserver_acctserverport", "1813", 0}, |
|---|
| 2793 | {"pppoeserver_sharedkey", "", 0}, |
|---|
| 2794 | {"pppoeserver_pool", "192.168.1.10-100", 0}, |
|---|
| 2795 | #endif |
|---|
| 2796 | #ifdef HAVE_MILKFISH |
|---|
| 2797 | {"milkfish_enabled", "0", 0}, /* MILKFISH enable=1|disable=0 */ |
|---|
| 2798 | {"openser_cfg", "/var/openser/milkfish_openser.cfg", 0}, /* MILKFISH |
|---|
| 2799 | * SETTING */ |
|---|
| 2800 | {"milkfish_fromdomain", "", 0}, /* MILKFISH SETTING */ |
|---|
| 2801 | {"milkfish_fromswitch", "off", 0}, /* MILKFISH SETTING */ |
|---|
| 2802 | {"milkfish_username", "", 0}, /* MILKFISH SETTING */ |
|---|
| 2803 | {"milkfish_password", "", 0}, /* MILKFISH SETTING */ |
|---|
| 2804 | {"milkfish_routerid", "", 0}, /* MILKFISH SETTING */ |
|---|
| 2805 | {"milkfish_ppptime", "off", 0}, /* MILKFISH SETTING - keep always |
|---|
| 2806 | * "off" on dd-wrt ! */ |
|---|
| 2807 | {"milkfish_audit", "off", 0}, /* MILKFISH SETTING */ |
|---|
| 2808 | {"milkfish_dynsip", "off", 0}, /* MILKFISH SETTING */ |
|---|
| 2809 | {"milkfish_siptrace", "off", 0}, /* MILKFISH SETTING */ |
|---|
| 2810 | {"milkfish_ddsubscribers", "", 0}, /* MILKFISH SETTING */ |
|---|
| 2811 | {"milkfish_ddsubscribersnum", "0", 0}, /* MILKFISH SETTING */ |
|---|
| 2812 | {"milkfish_ddaliases", "", 0}, /* MILKFISH SETTING */ |
|---|
| 2813 | {"milkfish_ddaliasesnum", "0", 0}, /* MILKFISH SETTING */ |
|---|
| 2814 | {"milkfish_ddactive", "", 0}, /* MILKFISH SETTING */ |
|---|
| 2815 | {"milkfish_ddactivenum", "0", 0}, /* MILKFISH SETTING */ |
|---|
| 2816 | {"milkfish_dsusername", "", 0}, /* MILKFISH SETTING */ |
|---|
| 2817 | {"milkfish_dspassword", "", 0}, /* MILKFISH SETTING */ |
|---|
| 2818 | #endif |
|---|
| 2819 | #ifdef HAVE_OLSRD |
|---|
| 2820 | {"olsrd_pollsize", "0.1", 0}, |
|---|
| 2821 | {"olsrd_redundancy", "2", 0}, |
|---|
| 2822 | {"olsrd_coverage", "7", 0}, |
|---|
| 2823 | {"olsrd_gateway", "0", 0}, |
|---|
| 2824 | {"olsrd_lqfisheye", "1", 0}, |
|---|
| 2825 | {"olsrd_lqaging", "0.1", 0}, |
|---|
| 2826 | {"olsrd_lqdijkstramin", "0", 0}, |
|---|
| 2827 | {"olsrd_lqdijkstramax", "5.0", 0}, |
|---|
| 2828 | {"olsrd_lqlevel", "2", 0}, |
|---|
| 2829 | {"olsrd_hysteresis", "0", 0}, |
|---|
| 2830 | {"olsrd_smartgw", "0", 0}, |
|---|
| 2831 | #endif |
|---|
| 2832 | {"reconnect_enable", "0", 0}, |
|---|
| 2833 | {"reconnect_hours", "0", 0}, |
|---|
| 2834 | {"reconnect_minutes", "0", 0}, |
|---|
| 2835 | {"af_enable", "0", 0}, |
|---|
| 2836 | {"af_email", "", 0}, |
|---|
| 2837 | {"af_ssid", "0", 0}, |
|---|
| 2838 | {"af_ssid_name", "AnchorFree WiFi", 0}, |
|---|
| 2839 | {"af_address", "", 0}, |
|---|
| 2840 | {"af_address_2", "", 0}, |
|---|
| 2841 | {"af_city", "", 0}, |
|---|
| 2842 | {"af_zip", "", 0}, |
|---|
| 2843 | {"af_state", "", 0}, |
|---|
| 2844 | {"af_country", "", 0}, |
|---|
| 2845 | {"af_category", "0", 0}, |
|---|
| 2846 | {"af_publish", "1", 0}, |
|---|
| 2847 | {"af_agree", "0", 0}, |
|---|
| 2848 | #ifdef HAVE_WAVESAT |
|---|
| 2849 | {"ofdm_mode", "disabled", 0}, |
|---|
| 2850 | {"ofdm_upstream", "3525000", 0}, |
|---|
| 2851 | {"ofdm_downstream", "3450000", 0}, |
|---|
| 2852 | {"ofdm_width", "7", 0}, |
|---|
| 2853 | {"ofdm_duplex", "TDD", 0}, |
|---|
| 2854 | #endif |
|---|
| 2855 | #ifdef HAVE_FTP |
|---|
| 2856 | {"proftpd_enable", "0", 0}, |
|---|
| 2857 | {"proftpd_port", "21", 0}, |
|---|
| 2858 | {"proftpd_dir", "mnt", 0}, |
|---|
| 2859 | {"proftpd_passw", "", 0}, |
|---|
| 2860 | {"proftpd_writeen", "off", 0}, |
|---|
| 2861 | {"proftpd_anon", "0", 0}, |
|---|
| 2862 | {"proftpd_anon_subdir", "", 0}, |
|---|
| 2863 | #endif |
|---|
| 2864 | #ifdef HAVE_SAMBA3 |
|---|
| 2865 | {"samba3_enable", "0", 0}, |
|---|
| 2866 | {"samba3_pub", "0", 0}, |
|---|
| 2867 | {"samba3_dirpath", "/jffs", 0}, |
|---|
| 2868 | {"samba3_pubacl", "1", 0}, |
|---|
| 2869 | {"samba3_advanced", "0", 0}, |
|---|
| 2870 | #endif |
|---|
| 2871 | #ifdef HAVE_VNCREPEATER |
|---|
| 2872 | {"vncr_enable", "0", 0}, |
|---|
| 2873 | #endif |
|---|
| 2874 | #ifdef HAVE_AP_SERV |
|---|
| 2875 | {"apserv_enable", "1", 0}, |
|---|
| 2876 | #endif |
|---|
| 2877 | #ifdef HAVE_AOSS |
|---|
| 2878 | {"aoss_enable", "1", 0}, |
|---|
| 2879 | {"aoss_tkip", "0", 0}, |
|---|
| 2880 | {"aoss_aes", "1", 0}, |
|---|
| 2881 | {"aoss_wep", "0", 0}, |
|---|
| 2882 | #endif |
|---|
| 2883 | #ifdef HAVE_WPS |
|---|
| 2884 | {"wps_enabled", "1", 0}, |
|---|
| 2885 | {"wps_registrar", "1", 0}, |
|---|
| 2886 | #endif |
|---|
| 2887 | |
|---|
| 2888 | #ifdef HAVE_LLTD |
|---|
| 2889 | {"lltd_enabled", "0", 0}, |
|---|
| 2890 | #endif |
|---|
| 2891 | {"warn_enabled", "0", 0}, |
|---|
| 2892 | {"warn_connlimit", "500", 0}, |
|---|
| 2893 | |
|---|
| 2894 | {0, 0, 0} |
|---|
| 2895 | }; |
|---|
| 2896 | #else |
|---|
| 2897 | struct nvram_tuple *srouter_defaults = NULL; |
|---|
| 2898 | static unsigned int defaultnum; |
|---|
| 2899 | void load_defaults(void) |
|---|
| 2900 | { |
|---|
| 2901 | FILE *in = fopen("/etc/defaults.bin", "rb"); |
|---|
| 2902 | if (in == NULL) |
|---|
| 2903 | return; |
|---|
| 2904 | defaultnum = (unsigned int)getc(in); |
|---|
| 2905 | defaultnum |= (unsigned int)getc(in) << 8; |
|---|
| 2906 | defaultnum |= (unsigned int)getc(in) << 16; |
|---|
| 2907 | defaultnum |= (unsigned int)getc(in) << 24; |
|---|
| 2908 | //fread(&defaultnum, 4, 1, in); |
|---|
| 2909 | int i; |
|---|
| 2910 | srouter_defaults = |
|---|
| 2911 | (struct nvram_tuple *)malloc(sizeof(struct nvram_tuple) * |
|---|
| 2912 | defaultnum); |
|---|
| 2913 | for (i = 0; i < defaultnum; i++) { |
|---|
| 2914 | unsigned int vl = (unsigned int)getc(in); |
|---|
| 2915 | if (vl) { |
|---|
| 2916 | srouter_defaults[i].name = malloc(vl + 1); |
|---|
| 2917 | fread(srouter_defaults[i].name, vl, 1, in); |
|---|
| 2918 | srouter_defaults[i].name[vl] = 0; |
|---|
| 2919 | vl = (unsigned int)getc(in); |
|---|
| 2920 | if (vl & 128) { |
|---|
| 2921 | vl &= 127; |
|---|
| 2922 | vl |= (unsigned int)getc(in) << 7; |
|---|
| 2923 | } |
|---|
| 2924 | srouter_defaults[i].value = malloc(vl + 1); |
|---|
| 2925 | fread(srouter_defaults[i].value, vl, 1, in); |
|---|
| 2926 | srouter_defaults[i].value[vl] = 0; |
|---|
| 2927 | } else { |
|---|
| 2928 | srouter_defaults[i].name = NULL; |
|---|
| 2929 | srouter_defaults[i].value = NULL; |
|---|
| 2930 | } |
|---|
| 2931 | } |
|---|
| 2932 | fclose(in); |
|---|
| 2933 | } |
|---|
| 2934 | |
|---|
| 2935 | void free_defaults(void) |
|---|
| 2936 | { |
|---|
| 2937 | int i; |
|---|
| 2938 | for (i = defaultnum - 1; i > -1; i--) { |
|---|
| 2939 | if (srouter_defaults[i].name) { |
|---|
| 2940 | free(srouter_defaults[i].value); |
|---|
| 2941 | free(srouter_defaults[i].name); |
|---|
| 2942 | } |
|---|
| 2943 | } |
|---|
| 2944 | free(srouter_defaults); |
|---|
| 2945 | |
|---|
| 2946 | } |
|---|
| 2947 | #endif |
|---|
| 2948 | |
|---|
| 2949 | #ifdef HAVE_SKYTEL |
|---|
| 2950 | #undef HAVE_POWERNOC_WORT54G |
|---|
| 2951 | #undef HAVE_POWERNOC |
|---|
| 2952 | #endif |
|---|