tuexen 36cef24e89 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
2017-01-13 10:55:26 +00:00
..
2017-01-13 08:31:55 +00:00
2017-01-09 23:41:10 +00:00
2017-01-10 21:10:20 +00:00
2017-01-12 20:26:02 +00:00