CVSROOT:        /cvs
Module name:    src
Changes by:     [email protected]        2017/05/10 15:41:27

Modified files:
        sys/sys        : mbuf.h 

Log message:
Declare struct m_hdr as __aligned(8).  This forces the compiler to pad out to
the next 8-byte boundary.  This avoids introducing additional padding
between struct m_hdr and union M_dat in struct mbuf when we add a 64-bit
timestamp in struct pkthdr, which would lead to a miscalculation of MLEN and
panics on 32-bit architectures.  Note that using __aligned(sizeof(int64_t))
here would make the compiler crash!

Put back the packet timestamp now that it is (hopefully) safe to do so.

ok bluhm@, mikeb@

Reply via email to