ctdb-common: Support IB in pcap-based capture
commitc5bd0b20ad365a313581b7752b6d368a6a2ece5d
authorMartin Schwenke <martin@meltin.net>
Mon, 15 Aug 2022 00:52:27 +0000 (15 10:52 +1000)
committerJule Anger <janger@samba.org>
Tue, 29 Aug 2023 09:35:11 +0000 (29 09:35 +0000)
tree9240443079b94148747a8665dd9e8c61f50f14ee
parent6417651bf4ba217e6590f12e25f5fd48d76dc65a
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>
(cherry picked from commit 9f7d69a05b6114efe18bf4c86ca8de7789e9a96d)
ctdb/common/system_socket.c