summaryrefslogtreecommitdiffstats
path: root/usr.sbin/ppp/ip.c
diff options
context:
space:
mode:
authorbrian <brian@FreeBSD.org>1999-03-29 08:21:28 +0000
committerbrian <brian@FreeBSD.org>1999-03-29 08:21:28 +0000
commit539d220871d789543afc7e3744e712d33128ca1b (patch)
tree22cddce0f60f9ee116dd5d869726e4f1b301b5ee /usr.sbin/ppp/ip.c
parent1d23653385b701e6ef13bbbe4fb216bab202b990 (diff)
downloadFreeBSD-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/ip.c')
-rw-r--r--usr.sbin/ppp/ip.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/usr.sbin/ppp/ip.c b/usr.sbin/ppp/ip.c
index ac3b54a..79ab1ca 100644
--- a/usr.sbin/ppp/ip.c
+++ b/usr.sbin/ppp/ip.c
@@ -17,7 +17,7 @@
* IMPLIED WARRANTIES, INCLUDING, WITHOUT LIMITATION, THE IMPLIED
* WARRANTIES OF MERCHANTIBILITY AND FITNESS FOR A PARTICULAR PURPOSE.
*
- * $Id: ip.c,v 1.54 1998/11/10 00:32:39 brian Exp $
+ * $Id: ip.c,v 1.55 1999/01/28 01:56:32 brian Exp $
*
* TODO:
* o Return ICMP message for filterd packet
@@ -553,7 +553,7 @@ ip_FlushPacket(struct link *l, struct bundle *bundle)
for (queue = &ipcp->Queue[PRI_FAST]; queue >= ipcp->Queue; queue--)
if (queue->top) {
- bp = mbuf_Dequeue(queue);
+ bp = mbuf_Contiguous(mbuf_Dequeue(queue));
if (bp) {
struct ip *pip = (struct ip *)MBUF_CTOP(bp);
OpenPOWER on IntegriCloud