mirror of
https://github.com/lwip-tcpip/lwip.git
synced 2025-02-22 21:40:33 +00:00
now using maxconnect from ppp_settings
This commit is contained in:
parent
2e6fa7f8a3
commit
d27da93c33
@ -1227,8 +1227,8 @@ np_up(unit, proto)
|
||||
* Set a timeout to close the connection once the maximum
|
||||
* connect time has expired.
|
||||
*/
|
||||
if (maxconnect > 0)
|
||||
TIMEOUT(connect_time_expired, 0, maxconnect);
|
||||
if (ppp_settings.maxconnect > 0)
|
||||
TIMEOUT(connect_time_expired, 0, ppp_settings.maxconnect);
|
||||
|
||||
#ifdef MAXOCTETS
|
||||
if (maxoctets > 0)
|
||||
|
@ -98,8 +98,8 @@ char devnam[MAXPATHLEN]; /* Device name */
|
||||
#endif
|
||||
bool nodetach = 0; /* Don't detach from controlling tty */
|
||||
bool updetach = 0; /* Detach once link is up */
|
||||
int maxconnect = 0; /* Maximum connect time */
|
||||
#if 0
|
||||
int maxconnect = 0; /* Maximum connect time */
|
||||
char user[MAXNAMELEN]; /* Username for PAP */
|
||||
char passwd[MAXSECRETLEN]; /* Password for PAP */
|
||||
#endif
|
||||
|
@ -279,9 +279,6 @@ extern u_char outpacket_buf[]; /* Buffer for outgoing packets */
|
||||
/* FIXME: add more HAVE_MULTILINK */
|
||||
extern bool multilink; /* enable multilink operation */
|
||||
|
||||
/* FIXME: it is really necessary ? */
|
||||
extern int maxconnect; /* Maximum connect time (seconds) */
|
||||
|
||||
#ifdef HAVE_MULTILINK
|
||||
extern bool doing_multilink;
|
||||
extern bool multilink_master;
|
||||
|
Loading…
x
Reference in New Issue
Block a user