diff options
author | Kozlov Dmitry <xeb@mail.ru> | 2012-01-20 11:32:50 +0400 |
---|---|---|
committer | Kozlov Dmitry <xeb@mail.ru> | 2012-01-20 11:32:50 +0400 |
commit | 98557211e85c5f08c43b3b40bb006ac3d78e791e (patch) | |
tree | 8444fdababe8f33528f71c124683eb29c3b3ead1 /accel-pppd/ppp/ppp_lcp.c | |
parent | f809cd21de7a3ad5451df2b448be983f6b98e900 (diff) | |
download | accel-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.c | 12 |
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); } |