HomeFreeBSD

MFC r290441:

Description

MFC r290441:
Fix for unaligned IP-header.

The mbuf length fields must be set before m_adj() is called else
m_adj() will not always adjust the mbuf and an unaligned read
exception can trigger inside the network stack. This can happen on
platforms where unaligned reads are not supported. Adjust a length
check to include the 2-byte ethernet alignment while at it.

Details

Provenance
hselaskyAuthored on
Parents
rS290608: MFC r290441:
Branches
Unknown
Tags
Unknown