From c549dba7258bc37df1ef142f391aeb19ca40249b Mon Sep 17 00:00:00 2001 From: Sylvain Rochet Date: Mon, 4 Jun 2012 16:25:16 +0200 Subject: [PATCH] re-enabled LCP echo interval / echo fail --- src/netif/ppp/lcp.c | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/src/netif/ppp/lcp.c b/src/netif/ppp/lcp.c index 533b0824..a0d9d669 100644 --- a/src/netif/ppp/lcp.c +++ b/src/netif/ppp/lcp.c @@ -75,8 +75,15 @@ static void lcp_delayed_up (void *); /* * LCP-related command-line options. */ +#if 0 /* UNUSED */ int lcp_echo_interval = 0; /* Interval between LCP echo-requests */ int lcp_echo_fails = 0; /* Tolerance to unanswered echo-requests */ +#endif /* UNUSED */ + +/* options */ +static u_int lcp_echo_interval = LCP_ECHOINTERVAL; /* Interval between LCP echo-requests */ +static u_int lcp_echo_fails = LCP_MAXECHOFAILS; /* Tolerance to unanswered echo-requests */ + #if PPP_LCP_ADAPTIVE bool lcp_echo_adaptive = 0; /* request echo only if the link was idle */ #endif