summaryrefslogtreecommitdiffstats
path: root/usr.sbin/ppp/ip.c
diff options
context:
space:
mode:
authorbrian <brian@FreeBSD.org>1997-09-03 00:40:51 +0000
committerbrian <brian@FreeBSD.org>1997-09-03 00:40:51 +0000
commit42c1dbe984c79c814ba81ffa653a825839a60133 (patch)
treedf85d748ce7f5610f631a77e6407b8f2c42adcd7 /usr.sbin/ppp/ip.c
parent24ac227fe1eed875b0afed20b605ebefdb25b533 (diff)
downloadFreeBSD-src-42c1dbe984c79c814ba81ffa653a825839a60133.zip
FreeBSD-src-42c1dbe984c79c814ba81ffa653a825839a60133.tar.gz
Allow the transition from an idle timeout value
of zero (no timeout) while IPCP is up. Move some prototypes into .h files and re-order some includes.
Diffstat (limited to 'usr.sbin/ppp/ip.c')
-rw-r--r--usr.sbin/ppp/ip.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/usr.sbin/ppp/ip.c b/usr.sbin/ppp/ip.c
index 2dd4e2c..394841e 100644
--- a/usr.sbin/ppp/ip.c
+++ b/usr.sbin/ppp/ip.c
@@ -17,7 +17,7 @@
* IMPLIED WARRANTIES, INCLUDING, WITHOUT LIMITATION, THE IMPLIED
* WARRANTIES OF MERCHANTIBILITY AND FITNESS FOR A PARTICULAR PURPOSE.
*
- * $Id: ip.c,v 1.22 1997/06/16 21:20:00 brian Exp $
+ * $Id: ip.c,v 1.23 1997/08/25 00:29:13 brian Exp $
*
* TODO:
* o Return ICMP message for filterd packet
@@ -38,6 +38,7 @@
#include "filter.h"
#include "mbuf.h"
#include "log.h"
+#include "os.h"
extern void SendPppFrame();
extern void LcpClose();
@@ -71,7 +72,7 @@ StartIdleTimer()
void
UpdateIdleTimer()
{
- if (IdleTimer.state == TIMER_RUNNING)
+ if (OsLinkIsUp())
StartIdleTimer();
}
OpenPOWER on IntegriCloud