diff options
author | brian <brian@FreeBSD.org> | 1997-09-10 21:33:32 +0000 |
---|---|---|
committer | brian <brian@FreeBSD.org> | 1997-09-10 21:33:32 +0000 |
commit | 49b883a1dd5b5019c848e73206a2e4e81476c5ee (patch) | |
tree | 3de8de5bf4eee5d3aaef4b8536e7882b6c6344a1 /usr.sbin/ppp/hdlc.c | |
parent | d4697c2a95a093188f9d457064f3a6fc4e97b9ef (diff) | |
download | FreeBSD-src-49b883a1dd5b5019c848e73206a2e4e81476c5ee.zip FreeBSD-src-49b883a1dd5b5019c848e73206a2e4e81476c5ee.tar.gz |
o Initialize the PRED1 input queue when we
receive the ResetAck, NOT when we send the
ResetReq (as per the rfc).
o SILENTLY ignore CCPs that arrive *before*
the network phase (as per the rfc).
o Check that we've actually negotiated PRED1
before sending PRED1 output.
This bug has been around for a *VERY* long
time ! We shouldn't need to explicitly disable
PRED1 now :-)
Diffstat (limited to 'usr.sbin/ppp/hdlc.c')
-rw-r--r-- | usr.sbin/ppp/hdlc.c | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/usr.sbin/ppp/hdlc.c b/usr.sbin/ppp/hdlc.c index e9bb0f3..ddfb199 100644 --- a/usr.sbin/ppp/hdlc.c +++ b/usr.sbin/ppp/hdlc.c @@ -17,7 +17,7 @@ * IMPLIED WARRANTIES, INCLUDING, WITHOUT LIMITATION, THE IMPLIED * WARRANTIES OF MERCHANTIBILITY AND FITNESS FOR A PARTICULAR PURPOSE. * - * $Id: hdlc.c,v 1.16 1997/06/09 03:27:22 brian Exp $ + * $Id: hdlc.c,v 1.17 1997/08/25 00:29:13 brian Exp $ * * TODO: */ @@ -152,8 +152,10 @@ HdlcOutput(int pri, u_short proto, struct mbuf * bp) if ((proto & 0xfff1) == 0x21) { /* Network Layer protocol */ if (CcpFsm.state == ST_OPENED) { - Pred1Output(pri, proto, bp); - return; + if (CcpInfo.want_proto == PRED1) { + Pred1Output(pri, proto, bp); + return; + } } } if (DEV_IS_SYNC) |