mirror of
https://github.com/lwip-tcpip/lwip.git
synced 2025-02-23 06:41:08 +00:00
removed holdoff support, can be handled without persist mode outside lwIP
This commit is contained in:
parent
6589cf9d8e
commit
4e7ce11684
@ -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);
|
||||
}
|
||||
|
@ -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 */
|
||||
|
@ -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 */
|
||||
|
Loading…
x
Reference in New Issue
Block a user