diff options
author | sam <sam@FreeBSD.org> | 2006-11-18 15:50:24 +0000 |
---|---|---|
committer | sam <sam@FreeBSD.org> | 2006-11-18 15:50:24 +0000 |
commit | c124338e03b52550e2f3f756e19781b41bed45b9 (patch) | |
tree | 731fc4fa320713ebfef27a96cc17e3faf1f9bf1d /sys/net/ethernet.h | |
parent | 040e4f0e6cb5061ef1e27dea8588cc7502d91522 (diff) | |
download | FreeBSD-src-c124338e03b52550e2f3f756e19781b41bed45b9.zip FreeBSD-src-c124338e03b52550e2f3f756e19781b41bed45b9.tar.gz |
mark struct ether_header packed so gcc honors alignment
constratins on arm; this fixes bridging when packets are
rx'd so ip headers are 32-bit aligned
Reviewed by: imp (and discussed elsewhere)
MFC after: 2 weeks
Diffstat (limited to 'sys/net/ethernet.h')
-rw-r--r-- | sys/net/ethernet.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/net/ethernet.h b/sys/net/ethernet.h index 45986a4..befdd93 100644 --- a/sys/net/ethernet.h +++ b/sys/net/ethernet.h @@ -61,7 +61,7 @@ struct ether_header { u_char ether_dhost[ETHER_ADDR_LEN]; u_char ether_shost[ETHER_ADDR_LEN]; u_short ether_type; -}; +} __packed; /* * Structure of a 48-bit Ethernet address. |