HomeFreeBSD

Ensure that the buffer length and the length provided in the IPv4

Description

Ensure that the buffer length and the length provided in the IPv4
header match when using a raw socket to send IPv4 packets and
providing the header. If they don't match, let send return -1
and set errno to EINVAL.

Before this patch is was only enforced that the length in the header
is not larger then the buffer length.

PR: 212283
Reviewed by: ae, gnn
MFC after: 1 week
Differential Revision: https://reviews.freebsd.org/D9161

Details

Provenance
tuexenAuthored on Jan 13 2017, 10:55 AM
Parents
rG4902e14dc8a9: Improve CAM_CDB_POINTER support.
Branches
Unknown
Tags
Unknown

Event Timeline