removed holdoff support, can be handled without persist mode outside lwIP

This commit is contained in:
Sylvain Rochet 2012-06-09 14:31:45 +02:00
parent 6589cf9d8e
commit 4e7ce11684
3 changed files with 5 additions and 3 deletions

View File

@ -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);
}

View File

@ -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 */

View File

@ -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 */