Allow libpcap to read files with some additional link-layer type values
authorsashan <sashan@openbsd.org>
Thu, 10 Aug 2023 15:47:05 +0000 (15:47 +0000)
committersashan <sashan@openbsd.org>
Thu, 10 Aug 2023 15:47:05 +0000 (15:47 +0000)
commitac17704babad29bba70f30455d39f3f4e1d0112d
tree58f86994aec319753889dc664cf83debc0f1594b
parent0e358455be3dcd6dd2275d731e48c13182450873
Allow libpcap to read files with some additional link-layer type values

patch has been contributed by Guy Harris from libpcap/tcpdump. It
resolves collision between DLT_* values on various OSes. The issue
prevents correct interpretation of link layer information in capture
files which might come from another OS. To resolve this libpcap/tcpdump
community introduced a LINKTYPE_* values. The patch provides translation
between DLT_* and LINKTYPE_* for OpenBSD. More details can be found
here: https://www.tcpdump.org/linktypes.html

No objection from OpenBSD community.

OK sthen@
lib/libpcap/savefile.c