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
This commit is contained in:
Sam Leffler 2006-11-18 15:50:24 +00:00
parent cce1514679
commit fdc6354580
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=164381

View File

@ -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.