From f94e6a834302c2a19ff8c7f7415a58d67cf85da7 Mon Sep 17 00:00:00 2001 From: Kevin Darbyshire-Bryant Date: Mon, 20 May 2013 21:34:07 +0100 Subject: [PATCH] Expose pppoe lcp echo parameters in gui --- release/src/router/httpd/tomato.c | 2 ++ release/src/router/nvram/defaults.c | 4 ++-- release/src/router/www/basic-network.asp | 24 +++++++++++++++++++++--- 3 files changed, 25 insertions(+), 5 deletions(-) diff --git a/release/src/router/httpd/tomato.c b/release/src/router/httpd/tomato.c index dd91b1007d..24a9892242 100644 --- a/release/src/router/httpd/tomato.c +++ b/release/src/router/httpd/tomato.c @@ -560,6 +560,8 @@ static const nvset_t nvset_list[] = { { "wan_mtu", V_RANGE(576, 1500) }, { "wan_islan", V_01 }, { "modem_ipaddr", V_IP }, + { "pppoe_lei", V_RANGE(1, 60) }, + { "pppoe_lef", V_RANGE(1, 10) }, // 3G MODEM { "modem_pin", V_LENGTH(0,6) }, diff --git a/release/src/router/nvram/defaults.c b/release/src/router/nvram/defaults.c index 477c5b3985..42a6ed8c2d 100644 --- a/release/src/router/nvram/defaults.c +++ b/release/src/router/nvram/defaults.c @@ -159,8 +159,8 @@ const defaults_t defaults[] = { { "ppp_custom", "" }, // PPPD additional options { "ppp_mlppp", "0" }, // PPPoE single line MLPPP - { "pppoe_lei", "" }, - { "pppoe_lef", "" }, + { "pppoe_lei", "10" }, // PPP LCP Echo interval + { "pppoe_lef", "5" }, // PPP LCP echo link failure limit #ifdef TCONFIG_IPV6 // IPv6 parameters diff --git a/release/src/router/www/basic-network.asp b/release/src/router/www/basic-network.asp index 2bcbdf561b..587dc00585 100644 --- a/release/src/router/www/basic-network.asp +++ b/release/src/router/www/basic-network.asp @@ -46,7 +46,7 @@