diff --git a/src/netif/ppp/auth.c b/src/netif/ppp/auth.c index 3ac8405c..449a0778 100644 --- a/src/netif/ppp/auth.c +++ b/src/netif/ppp/auth.c @@ -1306,7 +1306,9 @@ check_maxoctets(arg) notice("Traffic limit reached. Limit: %u Used: %u", maxoctets, used); status = EXIT_TRAFFIC_LIMIT; lcp_close(0, "Traffic limit"); +#if 0 /* UNUSED */ need_holdoff = 0; +#endif /* UNUSED */ } else { TIMEOUT(check_maxoctets, NULL, maxoctets_timeout); } @@ -1343,7 +1345,9 @@ check_idle(arg) notice("Terminating connection due to lack of activity."); status = EXIT_IDLE_TIMEOUT; lcp_close(0, "Link inactive"); +#if 0 /* UNUSED */ need_holdoff = 0; +#endif /* UNUSED */ } else { TIMEOUT(check_idle, NULL, tlim); } diff --git a/src/netif/ppp/options.c b/src/netif/ppp/options.c index d4017f06..b5964d17 100644 --- a/src/netif/ppp/options.c +++ b/src/netif/ppp/options.c @@ -110,9 +110,9 @@ bool demand = 0; /* do dial-on-demand */ char *ipparam = NULL; /* Extra parameter for ip up/down scripts */ #endif int idle_time_limit = 0; /* Disconnect if idle for this many seconds */ +#if 0 int holdoff = 30; /* # seconds to pause before reconnecting */ bool holdoff_specified; /* true if a holdoff value has been given */ -#if 0 int log_to_fd = 1; /* send log messages to this fd too */ bool log_default = 1; /* log_to_fd is default (stdout) */ int maxfail = 10; /* max # of unsuccessful connection attempts */ diff --git a/src/netif/ppp/ppp.c b/src/netif/ppp/ppp.c index 25333554..12ee1065 100644 --- a/src/netif/ppp/ppp.c +++ b/src/netif/ppp/ppp.c @@ -155,7 +155,6 @@ int error_count; /* # of times error() has been called */ int unsuccess; /* # unsuccessful connection attempts */ int listen_time; /* time to listen first (ms) */ int status; /* exit status for pppd */ -int need_holdoff; /* need holdoff period before restarting */ /* FIXME: outpacket_buf per PPP session */ @@ -364,7 +363,6 @@ int ppp_init(void) { unsuccess = 0; listen_time = 0; status = EXIT_OK; - need_holdoff = 1; #if PPP_STATS_SUPPORT link_stats_valid = 0; #endif /* PPP_STATS_SUPPORT */