1/*
2 * Router default NVRAM values
3 *
4 * Copyright 2001, Broadcom Corporation
5 * All Rights Reserved.
6 *
7 * This is UNPUBLISHED PROPRIETARY SOURCE CODE of Broadcom Corporation;
8 * the contents of this file may not be disclosed to third parties, copied or
9 * duplicated in any form, in whole or in part, without the prior written
10 * permission of Broadcom Corporation.
11 *
12 * $Id: defaults.c,v 1.1.1.1 2008/10/15 03:31:33 james26_jang Exp $
13 */
14
15#include <epivers.h>
16#include <bcmnvram.h>
17
18struct nvram_tuple router_defaults[] = {
19	/* OS parameters */
20	{ "lan_ifname", "", 0 },		/* LAN interface name */
21	{ "lan_ifnames", "", 0 },		/* Enslaved LAN interfaces */
22	{ "lan_hwnames", "", 0 },		/* LAN driver names (e.g. et0) */
23	{ "lan_hwaddr", "", 0 },		/* LAN interface MAC address */
24	{ "wan_ifname", "", 0 },		/* WAN interface name */
25	{ "wan_hwname", "", 0 },		/* WAN driver name (e.g. et1) */
26	{ "wan_hwaddr", "", 0 },		/* WAN interface MAC address */
27	{ "os_name", "", 0 },			/* OS name string */
28	{ "os_version", EPI_VERSION_STR, 0 },	/* OS revision */
29
30	/* Miscellaneous parameters */
31	{ "timer_interval", "3600", 0 },	/* Timer interval in seconds */
32	{ "ntp_server", "", 0 },		/* NTP server */
33	{ "log_level", "0", 0 },		/* Bitmask 0:off 1:denied 2:accepted */
34	{ "time_zone", "PST8PDT", 0 },		/* Time zone (GNU TZ format) */
35	{ "upnp_enable", "0", 0 },		/* Start UPnP */
36	{ "os_server", "", 0 },			/* URL for getting upgrades */
37	{ "stats_server", "", 0 },		/* URL for posting stats */
38	{ "console_loglevel", "1", 0 },		/* Kernel panics only */
39
40	/* TCP/IP parameters */
41	{ "lan_proto", "dhcp", 0 },		/* [static|dhcp] */
42	{ "lan_ipaddr", "192.168.1.1", 0 },	/* LAN IP address */
43	{ "lan_netmask", "255.255.255.0", 0 },	/* LAN netmask */
44	{ "lan_stp", "1", 0 },			/* LAN spanning tree protocol */
45	{ "wan_proto", "dhcp", 0 },		/* [static|dhcp|pppoe] */
46	{ "wan_ipaddr", "0.0.0.0", 0 },		/* WAN IP address */
47	{ "wan_netmask", "0.0.0.0", 0 },	/* WAN netmask */
48	{ "wan_gateway", "0.0.0.0", 0 },	/* WAN gateway */
49	{ "wan_dns", "", 0 },			/* x.x.x.x x.x.x.x ... */
50	{ "wan_wins", "", 0 },			/* x.x.x.x x.x.x.x ... */
51	{ "wan_hostname", "", 0 },		/* WAN hostname */
52	{ "wan_domain", "", 0 },		/* WAN domain name */
53	{ "wan_lease", "864000", 0 },		/* WAN lease time in seconds */
54	{ "static_route", "", 0 },		/* Static routes (ipaddr:netmask:gateway:metric:ifname ...) */
55
56	/* LAN filters */
57	{ "filter_ip", "", 0 },			/* lan_ipaddr0-lan_ipaddr1 ... */
58	{ "filter_tcp", "", 0 },		/* [lan_ipaddr|*]:lan_port0-lan_port1 */
59	{ "filter_udp", "", 0 },		/* [lan_ipaddr|*]:lan_port0-lan_port1 */
60	{ "filter_mac", "", 0 },		/* xx:xx:xx:xx:xx:xx ... */
61
62	/* Port forwards */
63	{ "forward_tcp", "", 0 },		/* wan_port0-wan_port1>lan_ipaddr:lan_port0-lan_port1 */
64	{ "forward_udp", "", 0 },		/* wan_port0-wan_port1>lan_ipaddr:lan_port0-lan_port1 */
65	{ "dmz_ipaddr", "", 0 },		/* x.x.x.x (equivalent to 0-60999>dmz_ipaddr:0-60999) */
66
67	/* DHCP server parameters */
68	{ "dhcp_start", "192.168.1.100", 0 },	/* First assignable DHCP address */
69	{ "dhcp_end", "192.168.1.150", 0 },	/* Last assignable DHCP address */
70
71	/* Web server parameters */
72	{ "http_username", "", 0 },		/* Username */
73	{ "http_passwd", "admin", 0 },		/* Password */
74	{ "http_wanport", "", 0 },		/* WAN port to listen on */
75	{ "http_lanport", "80", 0 },		/* LAN port to listen on */
76
77	/* PPPoE parameters */
78	{ "pppoe_ifname", "", 0 },		/* PPPoE enslaved interface */
79	{ "pppoe_username", "", 0 },		/* PPP username */
80	{ "pppoe_passwd", "", 0 },		/* PPP password */
81	{ "pppoe_idletime", "60", 0 },		/* Dial on demand max idle time (seconds) */
82	{ "pppoe_keepalive", "0", 0 },		/* Restore link automatically */
83	{ "pppoe_demand", "0", 0 },		/* Dial on demand */
84	{ "pppoe_mru", "1500", 0 },		/* Negotiate MRU to this value */
85	{ "pppoe_mtu", "1500", 0 },		/* Negotiate MTU to the smaller of this value or the peer MRU */
86
87	/* Wireless parameters */
88	{ "wl_ssid", "Broadcom", 0 },		/* Service set ID (network name) */
89	{ "wl_country", "USA", 0 },		/* Country (USA|Canada|Europe|Japan) */
90	{ "wl_closed", "0", 0 },		/* Closed (hidden) network */
91	{ "wl_wep", "off", 0 },			/* WEP data encryption (off|on|restricted) */
92	{ "wl_auth", "0", 0 },			/* Authentication (0|1) */
93	{ "wl_key", "1", 0 },			/* Current WEP key */
94	{ "wl_key1", "", 0 },			/* 5/13 char ASCII or 10/26 char hex */
95	{ "wl_key2", "", 0 },			/* 5/13 char ASCII or 10/26 char hex */
96	{ "wl_key3", "", 0 },			/* 5/13 char ASCII or 10/26 char hex */
97	{ "wl_key4", "", 0 },			/* 5/13 char ASCII or 10/26 char hex */
98	{ "wl_mac", "", 0 },			/* xx:xx:xx:xx:xx:xx ... */
99	{ "d11b_channel", "11", 0 },		/* Channel number (1-14 depending on country) */
100	{ "d11b_rate", "0", 0 },		/* Rate (bps, 0 for auto) */
101	{ "d11b_rateset", "default", 0 },	/* "default" (1/2/5.5/11) or "min" (1/2) */
102	{ "d11b_frag", "1536", 0 },		/* Fragmentation threshold */
103	{ "d11b_rts", "1536", 0 },		/* RTS threshold */
104	{ "d11b_dtim", "3", 0 },		/* DTIM period */
105	{ "d11b_bcn", "100", 0 },		/* Beacon interval */
106
107	/* Restore defaults */
108	{ "restore_defaults", "0", 0 },		/* Set to 0 to not restore defaults on boot */
109
110	{ 0, 0, 0 }
111};
112