summaryrefslogtreecommitdiff
path: root/ctdb
diff options
context:
space:
mode:
authorMartin Schwenke <martin@meltin.net>2022-08-15 10:52:27 +1000
committerAmitay Isaacs <amitay@samba.org>2022-09-20 10:43:37 +0000
commit9f7d69a05b6114efe18bf4c86ca8de7789e9a96d (patch)
treee8f8883f6f14099a4465c1b0bcdeb3c6c43d5c3e /ctdb
parente5541a7e0220a88d59d574d501626b0598050c52 (diff)
downloadsamba-9f7d69a05b6114efe18bf4c86ca8de7789e9a96d.tar.gz
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>
Diffstat (limited to 'ctdb')
-rw-r--r--ctdb/common/system_socket.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/ctdb/common/system_socket.c b/ctdb/common/system_socket.c
index 9f7ca07e098..06dc558eb22 100644
--- a/ctdb/common/system_socket.c
+++ b/ctdb/common/system_socket.c
@@ -1064,6 +1064,7 @@ int ctdb_sys_read_tcp_packet(int s,
uint16_t arphrd_type = ntohs(sll->sll_hatype);
switch (arphrd_type) {
case ARPHRD_ETHER:
+ case ARPHRD_INFINIBAND:
break;
default:
DBG_DEBUG("SLL: Unknown arphrd_type %"PRIu16"\n",
@@ -1081,6 +1082,7 @@ int ctdb_sys_read_tcp_packet(int s,
uint16_t arphrd_type = ntohs(sll2->sll2_hatype);
switch (arphrd_type) {
case ARPHRD_ETHER:
+ case ARPHRD_INFINIBAND:
break;
default:
DBG_DEBUG("SLL2: Unknown arphrd_type %"PRIu16"\n",