Don't blow away ``set escape'' settings when we've completed the

login phase.  Just initialise the correct parts.

Originially submitted by:	Vladimir B. Machulsky <bofhmail@yahoo.com>
This commit is contained in:
Brian Somers 2002-03-04 10:08:57 +00:00
parent 2291a8f3be
commit ea59de3733
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=91623
3 changed files with 9 additions and 2 deletions

View File

@ -55,11 +55,17 @@
void
async_Init(struct async *async)
{
async_Setup(async);
memset(async->cfg.EscMap, '\0', sizeof async->cfg.EscMap);
}
void
async_Setup(struct async *async)
{
async->mode = MODE_HUNT;
async->length = 0;
async->my_accmap = async->his_accmap = 0xffffffff;
memset(async->cfg.EscMap, '\0', sizeof async->cfg.EscMap);
}
void

View File

@ -47,6 +47,7 @@ struct physical;
struct bundle;
extern void async_Init(struct async *);
extern void async_Setup(struct async *);
extern void async_SetLinkParams(struct async *, struct lcp *);
extern struct layer asynclayer;

View File

@ -234,7 +234,7 @@ datalink_LoginDone(struct datalink *dl)
dl->dial.incs = 0;
hdlc_Init(&dl->physical->hdlc, &dl->physical->link.lcp);
async_Init(&dl->physical->async);
async_Setup(&dl->physical->async);
lcp_Setup(&dl->physical->link.lcp, dl->state == DATALINK_READY ?
0 : dl->physical->link.lcp.cfg.openmode);