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

Last change on this file since 12234 was 12234, checked in by eko, 4 years ago

pptp extraoptions

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