diff options
author | brian <brian@FreeBSD.org> | 1999-03-29 08:21:28 +0000 |
---|---|---|
committer | brian <brian@FreeBSD.org> | 1999-03-29 08:21:28 +0000 |
commit | 539d220871d789543afc7e3744e712d33128ca1b (patch) | |
tree | 22cddce0f60f9ee116dd5d869726e4f1b301b5ee /usr.sbin/ppp/lqr.c | |
parent | 1d23653385b701e6ef13bbbe4fb216bab202b990 (diff) | |
download | FreeBSD-src-539d220871d789543afc7e3744e712d33128ca1b.zip FreeBSD-src-539d220871d789543afc7e3744e712d33128ca1b.tar.gz |
Ensure that the thing we're casting to struct ip
is aligned for non-i386 architectures.
Diffstat (limited to 'usr.sbin/ppp/lqr.c')
-rw-r--r-- | usr.sbin/ppp/lqr.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/usr.sbin/ppp/lqr.c b/usr.sbin/ppp/lqr.c index ff17a24..82bf6df 100644 --- a/usr.sbin/ppp/lqr.c +++ b/usr.sbin/ppp/lqr.c @@ -17,7 +17,7 @@ * IMPLIED WARRANTIES, INCLUDING, WITHOUT LIMITATION, THE IMPLIED * WARRANTIES OF MERCHANTIBILITY AND FITNESS FOR A PARTICULAR PURPOSE. * - * $Id: lqr.c,v 1.30 1998/08/07 18:42:49 brian Exp $ + * $Id: lqr.c,v 1.31 1999/01/28 01:56:33 brian Exp $ * * o LQR based on RFC1333 * @@ -171,7 +171,7 @@ lqr_Input(struct physical *physical, struct mbuf *bp) len, (long)sizeof(struct lqrdata)); else if (!IsAccepted(physical->link.lcp.cfg.lqr) && !(physical->hdlc.lqm.method & LQM_LQR)) { - bp->offset -= 2; + bp->offset -= 2; /* XXX: We have a bit too much knowledge here ! */ bp->cnt += 2; lcp_SendProtoRej(physical->hdlc.lqm.owner, MBUF_CTOP(bp), bp->cnt); } else { @@ -179,6 +179,7 @@ lqr_Input(struct physical *physical, struct mbuf *bp) struct lcp *lcp; u_int32_t lastLQR; + bp = mbuf_Contiguous(bp); lqr = (struct lqrdata *)MBUF_CTOP(bp); lcp = physical->hdlc.lqm.owner; if (ntohl(lqr->MagicNumber) != physical->hdlc.lqm.owner->his_magic) |