mirror of
https://github.com/freebsd/freebsd-src
synced 2024-09-24 10:44:53 +00:00
Reset fsm.maxconfig in the *_Setup() routines.
This commit is contained in:
parent
27084c858c
commit
5454ccd9e0
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/cvs2svn/branches/MP/; revision=33892
|
@ -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;
|
||||
|
|
|
@ -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 &&
|
||||
|
|
|
@ -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);
|
||||
|
|
Loading…
Reference in a new issue