ctdb-common: Support IB in pcap-based capture
commit9f7d69a05b6114efe18bf4c86ca8de7789e9a96d
authorMartin Schwenke <martin@meltin.net>
Mon, 15 Aug 2022 00:52:27 +0000 (15 10:52 +1000)
committerAmitay Isaacs <amitay@samba.org>
Tue, 20 Sep 2022 10:43:37 +0000 (20 10:43 +0000)
treee8f8883f6f14099a4465c1b0bcdeb3c6c43d5c3e
parente5541a7e0220a88d59d574d501626b0598050c52
ctdb-common: Support IB in pcap-based capture

Add simple support for IPoIB via DLT_LINUX_SLL and DLT_LINUX_SLL2.
This seems to work, even when an IB interface is specified.

If this is later found to be insufficient, support for DLT_IPOIB can
be implemented.  See https://www.tcpdump.org/linktypes.html for a
starting point.

Signed-off-by: Martin Schwenke <martin@meltin.net>
Reviewed-by: Amitay Isaacs <amitay@gmail.com>
ctdb/common/system_socket.c