summaryrefslogtreecommitdiffstats
path: root/usr.sbin/ppp/os.c
diff options
context:
space:
mode:
authorbrian <brian@FreeBSD.org>1997-09-03 02:08:20 +0000
committerbrian <brian@FreeBSD.org>1997-09-03 02:08:20 +0000
commita5b9ae295918c9219a141f439a54c0478e8463c3 (patch)
treef025931d5d51eb8c3d89f9373f64572853a573de /usr.sbin/ppp/os.c
parent2ee142dce306fa15e6b932e9243a4fed3e1be7c8 (diff)
downloadFreeBSD-src-a5b9ae295918c9219a141f439a54c0478e8463c3.zip
FreeBSD-src-a5b9ae295918c9219a141f439a54c0478e8463c3.tar.gz
Bring CCP and IPCP layers down properly when LCP
comes down. Give a count of bytes sent/received in IPCP log.
Diffstat (limited to 'usr.sbin/ppp/os.c')
-rw-r--r--usr.sbin/ppp/os.c13
1 files changed, 8 insertions, 5 deletions
diff --git a/usr.sbin/ppp/os.c b/usr.sbin/ppp/os.c
index f8eed52..bde3b3b 100644
--- a/usr.sbin/ppp/os.c
+++ b/usr.sbin/ppp/os.c
@@ -17,7 +17,7 @@
* IMPLIED WARRANTIES, INCLUDING, WITHOUT LIMITATION, THE IMPLIED
* WARRANTIES OF MERCHANTIBILITY AND FITNESS FOR A PARTICULAR PURPOSE.
*
- * $Id: os.c,v 1.25 1997/08/31 22:59:44 brian Exp $
+ * $Id: os.c,v 1.26 1997/09/03 00:40:50 brian Exp $
*
*/
#include "fsm.h"
@@ -234,13 +234,16 @@ void
OsLinkdown()
{
char *s;
+ int Level;
if (linkup) {
+ FsmDown(&CcpFsm); /* CCP must come down */
+
s = (char *) inet_ntoa(peer_addr);
- if (LogIsKept(LogLINK))
- LogPrintf(LogLINK, "OsLinkdown: %s\n", s);
- else
- LogPrintf(LogLCP, "OsLinkdown: %s\n", s);
+ Level = LogIsKept(LogLINK) ? LogLINK : LogIPCP;
+ LogPrintf(Level, "OsLinkdown: %s\n", s);
+
+ FsmDown(&IpcpFsm); /* IPCP must come down */
if (!(mode & MODE_AUTO))
DeleteIfRoutes(0);
OpenPOWER on IntegriCloud