summaryrefslogtreecommitdiffstats
path: root/iptables
diff options
context:
space:
mode:
authorFlorian Westphal <fw@strlen.de>2020-12-14 17:11:23 +0100
committerFlorian Westphal <fw@strlen.de>2020-12-14 17:11:23 +0100
commit98ed6f6fc6d97663a33de67afff60196052880b1 (patch)
tree5bc2584cd856350caa8f13d32b8212a1e179bee8 /iptables
parent180ba723d0b305fab9287d3bc5f845a43d9eb793 (diff)
xtables-monitor:
'LL=0x304' is not very convenient, print LOOPBACK instead. Signed-off-by: Florian Westphal <fw@strlen.de>
Diffstat (limited to 'iptables')
-rw-r--r--iptables/xtables-monitor.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/iptables/xtables-monitor.c b/iptables/xtables-monitor.c
index e6b6e76b..4b980980 100644
--- a/iptables/xtables-monitor.c
+++ b/iptables/xtables-monitor.c
@@ -306,6 +306,9 @@ static void trace_print_packet(const struct nftnl_trace *nlt, struct cb_arg *arg
printf("MACDST=%s ", ether_ntoa((const void *)eh->h_dest));
printf("MACPROTO=%04x ", ntohs(eh->h_proto));
break;
+ case ARPHRD_LOOPBACK:
+ printf("LOOPBACK ");
+ break;
default:
printf("LL=0x%x ", type);
for (i = 0 ; i < len; i++)