diff options
author | brian <brian@FreeBSD.org> | 1997-04-21 01:02:02 +0000 |
---|---|---|
committer | brian <brian@FreeBSD.org> | 1997-04-21 01:02:02 +0000 |
commit | ad4ab187936a54f3a8329d804592f12284e6c176 (patch) | |
tree | 7b87206f10e0b3c6831b1d1b453f11c55a48e172 /usr.sbin/ppp/ip.c | |
parent | ca8a9db2701fdcbcc35546f2de8867e0b669e7bc (diff) | |
download | FreeBSD-src-ad4ab187936a54f3a8329d804592f12284e6c176.zip FreeBSD-src-ad4ab187936a54f3a8329d804592f12284e6c176.tar.gz |
Add a reconnect capability directing ppp to re-establish
the connection after an unexpected loss of carrier:
set reconnect timer ntries
The man page warns against using this command when your
timeout value is slightly more than the other sides :{}
Suggested by: burton@bsampley.vip.best.com (Burton Sampley)
Diffstat (limited to 'usr.sbin/ppp/ip.c')
-rw-r--r-- | usr.sbin/ppp/ip.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/usr.sbin/ppp/ip.c b/usr.sbin/ppp/ip.c index 1e66473..8d13cc5 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$ + * $Id: ip.c,v 1.14 1997/02/22 16:10:18 peter Exp $ * * TODO: * o Return ICMP message for filterd packet @@ -45,6 +45,7 @@ static void IdleTimeout() { LogPrintf(LOG_PHASE_BIT, "Idle timer expired.\n"); LcpClose(); + lostCarrier = 0; } /* |