MFV r355890:
authorCy Schubert <cy@FreeBSD.org>
Sat, 21 Dec 2019 21:05:53 +0000 (21:05 +0000)
committerCy Schubert <cy@FreeBSD.org>
Sat, 21 Dec 2019 21:05:53 +0000 (21:05 +0000)
commit31bfaf17a7722093845fa18933e75e080940f1f9
tree1d549f814b4c8b412f3cb580a6d6a74049f7e745
parent39e421e8cedb2a1e819ab3f703a22b4c3da76b61
parent20616273d52132557e786a8aea1637be4c218a08
MFV r355890:

Fix libpcap issue #893: check for invalid IPv4 addresses.

This fixes errors such as:

tcpdump -i lagg0 net 999.999.999.999

This was originally discovered on a Red Hat 7.7 server and verified
to also be a bug on FreeBSD.

Obtained from: https://github.com/the-tcpdump-group/libpcap/commit/ \
07070918d5e81a515315b395f334e52589fe0fb
Fixed by: https://github.com/guyharris
MFC after: 2 weeks
contrib/libpcap/gencode.c
contrib/libpcap/nametoaddr.c