freebsd_network: Properly align mbuf members.

This commit is contained in:
Augustin Cavalier
2019-01-03 21:20:35 -05:00
parent 6ef670c379
commit a029a69c55
@@ -250,19 +250,16 @@ struct mbuf {
int32_t m_len; /* amount of data in this mbuf */ int32_t m_len; /* amount of data in this mbuf */
uint32_t m_type:8, /* type of data in this mbuf */ uint32_t m_type:8, /* type of data in this mbuf */
m_flags:24; m_flags:24;
#if !defined(__LP64__)
uint32_t m_pad; /* pad for 64bit alignment */
#endif
union { union {
struct { struct {
struct pkthdr MH_pkthdr; struct pkthdr MH_pkthdr;
union { union {
struct m_ext MH_ext; struct m_ext MH_ext;
char MH_databuf[0]; char MH_databuf[0] __aligned(8);
} MH_dat; } MH_dat;
} MH; } MH;
char M_databuf[0]; char M_databuf[0] __aligned(8);
} M_dat; } M_dat;
}; };