summaryrefslogtreecommitdiffstats
path: root/usr.sbin/ppp/lqr.c
diff options
context:
space:
mode:
authorbrian <brian@FreeBSD.org>1998-06-15 19:05:27 +0000
committerbrian <brian@FreeBSD.org>1998-06-15 19:05:27 +0000
commit4ea5840027f56ea4075ff02e0ab45e168d292ec8 (patch)
treea19788af57c1c514975a36a764ee996d206dbeac /usr.sbin/ppp/lqr.c
parentd0b2b1163f0060c908f4d9de9bd704e4820707ad (diff)
downloadFreeBSD-src-4ea5840027f56ea4075ff02e0ab45e168d292ec8.zip
FreeBSD-src-4ea5840027f56ea4075ff02e0ab45e168d292ec8.tar.gz
Make `close lcp' just close the LCP layer and not hangup. This is
useful for slirp users that wish to get their shell back after the ppp session. `close' with no args still hangs up as expected. Required by: jmz
Diffstat (limited to 'usr.sbin/ppp/lqr.c')
-rw-r--r--usr.sbin/ppp/lqr.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/usr.sbin/ppp/lqr.c b/usr.sbin/ppp/lqr.c
index 0d63322..f69ef40 100644
--- a/usr.sbin/ppp/lqr.c
+++ b/usr.sbin/ppp/lqr.c
@@ -17,7 +17,7 @@
* IMPLIED WARRANTIES, INCLUDING, WITHOUT LIMITATION, THE IMPLIED
* WARRANTIES OF MERCHANTIBILITY AND FITNESS FOR A PARTICULAR PURPOSE.
*
- * $Id: lqr.c,v 1.22.2.30 1998/05/08 01:15:08 brian Exp $
+ * $Id: lqr.c,v 1.25 1998/05/21 21:46:33 brian Exp $
*
* o LQR based on RFC1333
*
@@ -136,7 +136,7 @@ SendLqrReport(void *v)
log_Printf(LogLQM, "%s: Too many LQR packets lost\n",
lcp->fsm.link->name);
p->hdlc.lqm.method = 0;
- datalink_Down(p->dl, 0);
+ datalink_Down(p->dl, CLOSE_NORMAL);
} else {
SendLqrData(lcp);
p->hdlc.lqm.lqr.resent++;
@@ -151,7 +151,7 @@ SendLqrReport(void *v)
log_Printf(LogLQM, "%s: Too many ECHO LQR packets lost\n",
lcp->fsm.link->name);
p->hdlc.lqm.method = 0;
- datalink_Down(p->dl, 0);
+ datalink_Down(p->dl, CLOSE_NORMAL);
} else
SendEchoReq(lcp);
}
OpenPOWER on IntegriCloud