diff options
author | nate <nate@FreeBSD.org> | 1996-12-03 21:38:52 +0000 |
---|---|---|
committer | nate <nate@FreeBSD.org> | 1996-12-03 21:38:52 +0000 |
commit | 8620fc8544ff62f29a19ab194cb21a092e314a97 (patch) | |
tree | bb44448442ea3de595c180ce0d9d0398f57509f7 /usr.sbin/ppp/ip.c | |
parent | 1aa66460f8fa844a7fec1e9c9cf4bca3e5528b72 (diff) | |
download | FreeBSD-src-8620fc8544ff62f29a19ab194cb21a092e314a97.zip FreeBSD-src-8620fc8544ff62f29a19ab194cb21a092e314a97.tar.gz |
Added my 'ddial' patches to user-PPP. The new mode tries it's darndest
to keep the link up, so it re-dials whenever it detects the link go
down. This is useful for 'dedicated' links who use PPP.
It's been used for over a year w/out problems at different sites.
Diffstat (limited to 'usr.sbin/ppp/ip.c')
-rw-r--r-- | usr.sbin/ppp/ip.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/usr.sbin/ppp/ip.c b/usr.sbin/ppp/ip.c index c6732d3..1756b4d 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.8 1996/01/30 11:08:33 dfr Exp $ + * $Id: ip.c,v 1.9 1996/05/11 20:48:25 phk Exp $ * * TODO: * o Return ICMP message for filterd packet @@ -53,7 +53,7 @@ static void IdleTimeout() void StartIdleTimer() { - if (!(mode & MODE_DEDICATED)) { + if (!(mode & (MODE_DEDICATED|MODE_DDIAL))) { StopTimer(&IdleTimer); IdleTimer.func = IdleTimeout; IdleTimer.load = VarIdleTimeout * SECTICKS; @@ -74,7 +74,7 @@ StopIdleTimer() static void RestartIdleTimer() { - if (!(mode & MODE_DEDICATED) && ipKeepAlive ) { + if (!(mode & (MODE_DEDICATED|MODE_DDIAL)) && ipKeepAlive ) { StartTimer(&IdleTimer); ipIdleSecs = 0; } |