]> The Tcpdump Group git mirrors - tcpdump/commit
Ignore failures when setting the default "any" device DLL to LINUX_SLL2.
authorGuy Harris <[email protected]>
Wed, 7 Jun 2023 02:56:17 +0000 (19:56 -0700)
committerGuy Harris <[email protected]>
Wed, 7 Jun 2023 02:56:17 +0000 (19:56 -0700)
commitc6b4ee68786c76d47327944e9f3be779bcfe4c6e
tree33c43d0aa2a80605354243c36cb84e72b67f1ba9
parent10f7dff0c64e8ebb480cf48f5a09871e0d431761
Ignore failures when setting the default "any" device DLL to LINUX_SLL2.

If the user didn't explicitly request DLT_LINUX_SLL2 with -y, attempt to
set the link-layer type on the "any" device to DLT_LINUX_SLL2, but, if
that fails, just drive on - it could be the Solaris or macOS "any"
device, neither of which support the Linux-style headers, or it could be
a tcpdump built with a newer libpcap but dynamically-linked, and running
on a system with an older libpcap that doesn't support DLT_LINUX_SLL2.

Fixes #1057.
tcpdump.c