From 5454ccd9e03d30ba508cb590b7f6a2c61d8e0ee7 Mon Sep 17 00:00:00 2001 From: Brian Somers Date: Fri, 27 Feb 1998 21:46:26 +0000 Subject: [PATCH] Reset fsm.maxconfig in the *_Setup() routines. --- usr.sbin/ppp/ccp.c | 3 ++- usr.sbin/ppp/ipcp.c | 3 ++- usr.sbin/ppp/lcp.c | 3 ++- 3 files changed, 6 insertions(+), 3 deletions(-) diff --git a/usr.sbin/ppp/ccp.c b/usr.sbin/ppp/ccp.c index c7d952b2bf4..eb8a311e20a 100644 --- a/usr.sbin/ppp/ccp.c +++ b/usr.sbin/ppp/ccp.c @@ -17,7 +17,7 @@ * IMPLIED WARRANTIES, INCLUDING, WITHOUT LIMITATION, THE IMPLIED * WARRANTIES OF MERCHANTIBILITY AND FITNESS FOR A PARTICULAR PURPOSE. * - * $Id: ccp.c,v 1.30.2.14 1998/02/24 03:36:45 brian Exp $ + * $Id: ccp.c,v 1.30.2.15 1998/02/27 01:22:18 brian Exp $ * * TODO: * o Support other compression protocols @@ -148,6 +148,7 @@ ccp_Setup(struct ccp *ccp) { /* Set ourselves up for a startup */ ccp->fsm.open_mode = 0; + ccp->fsm.maxconfig = 10; ccp->his_proto = ccp->my_proto = -1; ccp->reset_sent = ccp->last_reset = -1; ccp->in_algorithm = ccp->out_algorithm = -1; diff --git a/usr.sbin/ppp/ipcp.c b/usr.sbin/ppp/ipcp.c index 4e0cf0cd60f..58c618b5f07 100644 --- a/usr.sbin/ppp/ipcp.c +++ b/usr.sbin/ppp/ipcp.c @@ -17,7 +17,7 @@ * IMPLIED WARRANTIES, INCLUDING, WITHOUT LIMITATION, THE IMPLIED * WARRANTIES OF MERCHANTIBILITY AND FITNESS FOR A PARTICULAR PURPOSE. * - * $Id: ipcp.c,v 1.50.2.16 1998/02/24 03:36:49 brian Exp $ + * $Id: ipcp.c,v 1.50.2.17 1998/02/27 01:22:25 brian Exp $ * * TODO: * o More RFC1772 backwoard compatibility @@ -242,6 +242,7 @@ ipcp_Setup(struct ipcp *ipcp) int pos; ipcp->fsm.open_mode = 0; + ipcp->fsm.maxconfig = 10; if (iplist_isvalid(&ipcp->cfg.peer_list)) { if (ipcp->my_ifip.s_addr != INADDR_ANY && diff --git a/usr.sbin/ppp/lcp.c b/usr.sbin/ppp/lcp.c index cbb489530d1..33ed078379c 100644 --- a/usr.sbin/ppp/lcp.c +++ b/usr.sbin/ppp/lcp.c @@ -17,7 +17,7 @@ * IMPLIED WARRANTIES, INCLUDING, WITHOUT LIMITATION, THE IMPLIED * WARRANTIES OF MERCHANTIBILITY AND FITNESS FOR A PARTICULAR PURPOSE. * - * $Id: lcp.c,v 1.55.2.20 1998/02/24 03:36:50 brian Exp $ + * $Id: lcp.c,v 1.55.2.21 1998/02/27 01:22:30 brian Exp $ * * TODO: * o Limit data field length by MRU @@ -184,6 +184,7 @@ lcp_Setup(struct lcp *lcp, int openmode) struct physical *p = link2physical(lcp->fsm.link); lcp->fsm.open_mode = openmode; + lcp->fsm.maxconfig = 10; hdlc_Init(&p->hdlc); async_Init(&p->async);