diff options
author | joerg <joerg@FreeBSD.org> | 1996-03-08 01:21:53 +0000 |
---|---|---|
committer | joerg <joerg@FreeBSD.org> | 1996-03-08 01:21:53 +0000 |
commit | 7e6170e383f73faccc3e064c6b7a300c862b5429 (patch) | |
tree | 9da4d2050e128575827ab587a8d654b90acd021c /usr.sbin | |
parent | 8eea1d0d90c20997a26dd49a7ed7c3a27a82dc53 (diff) | |
download | FreeBSD-src-7e6170e383f73faccc3e064c6b7a300c862b5429.zip FreeBSD-src-7e6170e383f73faccc3e064c6b7a300c862b5429.tar.gz |
Work around the problem that our -current pppd can no longer talk
with our iijppp as a client.
Simply shut down the CCP layer if no matching protocol could be found.
Reviewed by: peter
Diffstat (limited to 'usr.sbin')
-rw-r--r-- | usr.sbin/pppd/ccp.c | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/usr.sbin/pppd/ccp.c b/usr.sbin/pppd/ccp.c index b36c8a0..9c2fd55 100644 --- a/usr.sbin/pppd/ccp.c +++ b/usr.sbin/pppd/ccp.c @@ -26,7 +26,7 @@ */ #ifndef lint -static char rcsid[] = "$Id: ccp.c,v 1.2 1995/10/31 21:20:49 peter Exp $"; +static char rcsid[] = "$Id: ccp.c,v 1.3 1995/10/31 21:29:19 peter Exp $"; #endif #include <syslog.h> @@ -497,6 +497,10 @@ ccp_up(f) syslog(LOG_NOTICE, "%s enabled", go->bsd_compress? ho->bsd_compress? "Compression": "Receive compression": "Transmit compression"); + if (!ANY_COMPRESS(ccp_gotoptions[f->unit])) { + syslog(LOG_NOTICE, "No matching compression scheme, CCP disabled"); + ccp_close(f->unit); + } } /* |