summaryrefslogtreecommitdiff
path: root/accel-pppd/ppp/ppp_lcp.c
diff options
context:
space:
mode:
authorKozlov Dmitry <xeb@mail.ru>2012-01-20 11:32:50 +0400
committerKozlov Dmitry <xeb@mail.ru>2012-01-20 11:32:50 +0400
commit98557211e85c5f08c43b3b40bb006ac3d78e791e (patch)
tree8444fdababe8f33528f71c124683eb29c3b3ead1 /accel-pppd/ppp/ppp_lcp.c
parentf809cd21de7a3ad5451df2b448be983f6b98e900 (diff)
downloadaccel-ppp-98557211e85c5f08c43b3b40bb006ac3d78e791e.tar.gz
accel-ppp-98557211e85c5f08c43b3b40bb006ac3d78e791e.zip
ppp: move [lcp] echo-interval/echo-failure to [ppp] lcp-echo-interval/lcp-echo-failure
Diffstat (limited to 'accel-pppd/ppp/ppp_lcp.c')
-rw-r--r--accel-pppd/ppp/ppp_lcp.c12
1 files changed, 10 insertions, 2 deletions
diff --git a/accel-pppd/ppp/ppp_lcp.c b/accel-pppd/ppp/ppp_lcp.c
index 58c21dcc..cc07997a 100644
--- a/accel-pppd/ppp/ppp_lcp.c
+++ b/accel-pppd/ppp/ppp_lcp.c
@@ -857,11 +857,19 @@ static void load_config(void)
char *opt;
opt = conf_get_opt("lcp", "echo-interval");
- if (opt && atoi(opt) > 0)
+ if (opt && atoi(opt) >= 0)
conf_echo_interval = atoi(opt);
opt = conf_get_opt("lcp", "echo-failure");
- if (opt && atoi(opt) > 0)
+ if (opt && atoi(opt) >= 0)
+ conf_echo_failure = atoi(opt);
+
+ opt = conf_get_opt("ppp", "lcp-echo-interval");
+ if (opt && atoi(opt) >= 0)
+ conf_echo_interval = atoi(opt);
+
+ opt = conf_get_opt("ppp", "lcp-echo-failure");
+ if (opt && atoi(opt) >= 0)
conf_echo_failure = atoi(opt);
}