summaryrefslogtreecommitdiffstats
path: root/usr.sbin/ppp
diff options
context:
space:
mode:
authorbrian <brian@FreeBSD.org>1999-08-10 08:42:20 +0000
committerbrian <brian@FreeBSD.org>1999-08-10 08:42:20 +0000
commit8b50508e93e642ac1cb7e34577fbf5dea80c436e (patch)
tree45aadd9bcd04ceeaf4b39770d44a9200b367f159 /usr.sbin/ppp
parentf4970b7e4f0e4f4970899d8529a91524a9f0969f (diff)
downloadFreeBSD-src-8b50508e93e642ac1cb7e34577fbf5dea80c436e.zip
FreeBSD-src-8b50508e93e642ac1cb7e34577fbf5dea80c436e.tar.gz
If we receive an IPCP protocol reject, bring it down.
Diffstat (limited to 'usr.sbin/ppp')
-rw-r--r--usr.sbin/ppp/fsm.c9
1 files changed, 8 insertions, 1 deletions
diff --git a/usr.sbin/ppp/fsm.c b/usr.sbin/ppp/fsm.c
index 50b8210..894acbe 100644
--- a/usr.sbin/ppp/fsm.c
+++ b/usr.sbin/ppp/fsm.c
@@ -17,7 +17,7 @@
* IMPLIED WARRANTIES, INCLUDING, WITHOUT LIMITATION, THE IMPLIED
* WARRANTIES OF MERCHANTIBILITY AND FITNESS FOR A PARTICULAR PURPOSE.
*
- * $Id: fsm.c,v 1.44 1999/05/14 09:36:04 brian Exp $
+ * $Id: fsm.c,v 1.45 1999/06/02 15:58:57 brian Exp $
*
* TODO:
*/
@@ -863,6 +863,13 @@ FsmRecvProtoRej(struct fsm *fp, struct fsmheader *lhp, struct mbuf *bp)
/* (*fp->parent->LayerFinish)(fp->parent->object, fp); */
}
break;
+ case PROTO_IPCP:
+ if (fp->proto == PROTO_LCP) {
+ log_Printf(LogPHASE, "%s: IPCP protocol reject closes IPCP !\n",
+ fp->link->name);
+ fsm_Close(&fp->bundle->ncp.ipcp.fsm);
+ }
+ break;
case PROTO_MP:
if (fp->proto == PROTO_LCP) {
struct lcp *lcp = fsm2lcp(fp);
OpenPOWER on IntegriCloud