root/src/router/services/sysinit/defaults.c

Revision 12468, 87.5 kB (checked in by BrainSlayer, 5 months ago)

new definitions

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