From de18b0da0312b81698c1dee76b1a36c47aed52d7 Mon Sep 17 00:00:00 2001 From: Phil Sutter Date: Fri, 12 Jul 2024 15:48:49 +0200 Subject: [PATCH] xtables-monitor: Support arptables chain events Print arptables NEWCHAIN/DELCHAIN events just like for iptables, using the '-0' prefix rule callback already uses. Signed-off-by: Phil Sutter --- iptables/xtables-monitor.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/iptables/xtables-monitor.c b/iptables/xtables-monitor.c index e136e9b7..714a2dfd 100644 --- a/iptables/xtables-monitor.c +++ b/iptables/xtables-monitor.c @@ -151,6 +151,9 @@ static int chain_cb(const struct nlmsghdr *nlh, void *data) case NFPROTO_IPV6: family = 6; break; + case NFPROTO_ARP: + family = 0; + break; default: nftnl_chain_snprintf(buf, sizeof(buf), c, NFTNL_OUTPUT_DEFAULT, 0); printf("nft: %s chain: %s\n", -- 2.47.2