mirror of
https://git.FreeBSD.org/src.git
synced 2024-12-19 10:53:58 +00:00
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:
parent
cce1514679
commit
fdc6354580
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=164381
@ -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.
|
||||
|
Loading…
Reference in New Issue
Block a user