source: src/router/services/sysinit/defaults.c @ 19211

Last change on this file since 19211 was 19211, checked in by sash, 13 months ago

ovpn: finish dhcp block

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