aboutsummaryrefslogtreecommitdiff
path: root/usr.sbin/ppp/ip.c
diff options
context:
space:
mode:
authorBrian Somers <brian@FreeBSD.org>1997-04-21 01:02:02 +0000
committerBrian Somers <brian@FreeBSD.org>1997-04-21 01:02:02 +0000
commit07030d97c184b6b6c8b7259923670b86e60384e1 (patch)
tree49c506aab356b54a0bc677dc9ec94f9138bddbd2 /usr.sbin/ppp/ip.c
parent19a58fedcac487ef343a91b4b63e0021ce75f8cc (diff)
downloadsrc-07030d97c184b6b6c8b7259923670b86e60384e1.tar.gz
src-07030d97c184b6b6c8b7259923670b86e60384e1.zip
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)
Notes
Notes: svn path=/head/; revision=25067
Diffstat (limited to 'usr.sbin/ppp/ip.c')
-rw-r--r--usr.sbin/ppp/ip.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/usr.sbin/ppp/ip.c b/usr.sbin/ppp/ip.c
index 1e6647341193..8d13cc570a98 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;
}
/*