diff options
author | Brian Somers <brian@FreeBSD.org> | 1999-06-02 15:59:09 +0000 |
---|---|---|
committer | Brian Somers <brian@FreeBSD.org> | 1999-06-02 15:59:09 +0000 |
commit | 411675bae35766a6137a33683240c043896ea3da (patch) | |
tree | ed7035ac811f6d1f9c1fd070386dd2caced8bb08 /usr.sbin/ppp/hdlc.c | |
parent | 3f9d7b80b279741348818efdc101dc225e85a2ef (diff) | |
download | src-test2-411675bae35766a6137a33683240c043896ea3da.tar.gz src-test2-411675bae35766a6137a33683240c043896ea3da.zip |
Notes
Diffstat (limited to 'usr.sbin/ppp/hdlc.c')
-rw-r--r-- | usr.sbin/ppp/hdlc.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/usr.sbin/ppp/hdlc.c b/usr.sbin/ppp/hdlc.c index a2042ff48705..f9696455bbc6 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.41 1999/04/03 11:54:00 brian Exp $ + * $Id: hdlc.c,v 1.42 1999/05/08 11:06:36 brian Exp $ * * TODO: */ @@ -158,6 +158,7 @@ hdlc_LayerPush(struct bundle *bundle, struct link *l, struct mbuf *bp, u_char *cp; u_short fcs; + mbuf_SetType(bp, MB_HDLCOUT); fcs = HdlcFcsBuf(INITFCS, bp); fcs = ~fcs; @@ -344,13 +345,12 @@ hdlc_LayerPull(struct bundle *b, struct link *l, struct mbuf *bp, } bp = mbuf_Truncate(bp, len - 2); /* discard the FCS */ + mbuf_SetType(bp, MB_HDLCIN); return bp; } -/* - * Detect a HDLC frame - */ +/* Detect a HDLC frame */ static const struct frameheader { const u_char *data; |