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

Last change on this file since 17177 was 17177, checked in by sash, 2 years ago

ovpnd: add DEFAULT file to ccd dir. can be used as default when clients will connect

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