]> 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)
committerFrancois-Xavier Le Bail <[email protected]>
Thu, 12 Oct 2023 14:13:43 +0000 (16:13 +0200)
commita6e78f896b25cb7204e9f5739eab48add4dad559
tree467bd68a79bc0381fee7eecf5ab47b550b3f8e4e
parentd1648631d3c9b712a3b6b662207038c2f29ada1e
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.

(cherry picked from commit c6b4ee68786c76d47327944e9f3be779bcfe4c6e)
tcpdump.c