If executing the stuff from ppp.linkdown results in a state change,
don't continue adjusting the ipcp state machine. This allows ``down'' to work in ppp.linkdown - useful for a tunnel setup.
This commit is contained in:
parent
63b65f9457
commit
2d3be64975
@ -349,10 +349,12 @@ fsm_Close(struct fsm *fp)
|
||||
break;
|
||||
case ST_OPENED:
|
||||
(*fp->fn->LayerDown)(fp);
|
||||
FsmInitRestartCounter(fp, FSM_TRM_TIMER);
|
||||
FsmSendTerminateReq(fp);
|
||||
NewState(fp, ST_CLOSING);
|
||||
(*fp->parent->LayerDown)(fp->parent->object, fp);
|
||||
if (fp->state == ST_OPENED) {
|
||||
FsmInitRestartCounter(fp, FSM_TRM_TIMER);
|
||||
FsmSendTerminateReq(fp);
|
||||
NewState(fp, ST_CLOSING);
|
||||
(*fp->parent->LayerDown)(fp->parent->object, fp);
|
||||
}
|
||||
break;
|
||||
case ST_REQSENT:
|
||||
case ST_ACKRCVD:
|
||||
|
Loading…
x
Reference in New Issue
Block a user