From 2b5dcd2ffe73e5f6e2c749af2efb07cba3cfe75c Mon Sep 17 00:00:00 2001 From: Brian Somers Date: Thu, 2 Aug 2001 09:28:31 +0000 Subject: [PATCH] Pack struct uniqtag declarations to stop our data field from being pushed 4 bytes to the right on the alpha. Tested by: Thomas Pornin MFC after: 1 week --- sys/netgraph/ng_pppoe.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/sys/netgraph/ng_pppoe.c b/sys/netgraph/ng_pppoe.c index 2378e7a0a08..b97af26fbbd 100644 --- a/sys/netgraph/ng_pppoe.c +++ b/sys/netgraph/ng_pppoe.c @@ -868,7 +868,7 @@ pppoe_start(sessp sp) struct { struct pppoe_tag hdr; union uniq data; - } uniqtag; + } __attribute ((packed)) uniqtag; /* * kick the state machine into starting up @@ -910,7 +910,7 @@ ng_pppoe_rcvdata(hook_p hook, item_p item) struct { struct pppoe_tag hdr; union uniq data; - } uniqtag; + } __attribute ((packed)) uniqtag; negp neg = NULL; struct mbuf *m;