diff --git a/src/netif/ppp/auth.c b/src/netif/ppp/auth.c index 37c4df3c..3ac8405c 100644 --- a/src/netif/ppp/auth.c +++ b/src/netif/ppp/auth.c @@ -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) diff --git a/src/netif/ppp/options.c b/src/netif/ppp/options.c index 0cbe1de7..d2707d75 100644 --- a/src/netif/ppp/options.c +++ b/src/netif/ppp/options.c @@ -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 diff --git a/src/netif/ppp/ppp_impl.h b/src/netif/ppp/ppp_impl.h index dfdacb64..184dfdd5 100644 --- a/src/netif/ppp/ppp_impl.h +++ b/src/netif/ppp/ppp_impl.h @@ -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;