diff options
author | brian <brian@FreeBSD.org> | 1997-06-01 14:37:19 +0000 |
---|---|---|
committer | brian <brian@FreeBSD.org> | 1997-06-01 14:37:19 +0000 |
commit | 5992baf27dfd7f3ae3370c7dfee87c5f3dd847ce (patch) | |
tree | efbc9041822925558a23b8aca76d1e0ada3f5e71 /usr.sbin/ppp/fsm.c | |
parent | a58162b8e7c725f55526b3ebffa310740ddb2ef5 (diff) | |
download | FreeBSD-src-5992baf27dfd7f3ae3370c7dfee87c5f3dd847ce.zip FreeBSD-src-5992baf27dfd7f3ae3370c7dfee87c5f3dd847ce.tar.gz |
Go directly to ST_STOPPED when a TerminateReq is
received and after the TerminateAck is sent (as
per rfc1661) rather than to ST_STOPPING. Going
to ST_STOPPING will leave us in a state where
we're waiting for the other side to do something -
not a good idea, especially as the client side sends
a TerminateReq then exits on idle timeout.
Diffstat (limited to 'usr.sbin/ppp/fsm.c')
-rw-r--r-- | usr.sbin/ppp/fsm.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/usr.sbin/ppp/fsm.c b/usr.sbin/ppp/fsm.c index e923511..72d70fb 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.9 1997/02/22 16:10:13 peter Exp $ + * $Id: fsm.c,v 1.10 1997/05/10 01:22:10 brian Exp $ * * TODO: * o Refer loglevel for log output @@ -521,10 +521,10 @@ struct mbuf *bp; NewState(fp, ST_REQSENT); break; case ST_OPENED: - (fp->LayerDown)(fp); + (fp->LayerFinish)(fp); /* Zero Restart counter */ (fp->SendTerminateAck)(fp); - NewState(fp, ST_STOPPING); + NewState(fp, ST_STOPPED); break; } pfree(bp); |