2023-05-10 12:59:54 +00:00
|
|
|
From bc9b418dc22fb7d81bfded431c74ea84f62340bd Mon Sep 17 00:00:00 2001
|
2022-05-26 13:50:39 +00:00
|
|
|
From: Florian Westphal <fw@strlen.de>
|
|
|
|
Date: Mon, 14 Dec 2020 17:11:23 +0100
|
|
|
|
Subject: [PATCH] xtables-monitor:
|
|
|
|
|
|
|
|
'LL=0x304' is not very convenient, print LOOPBACK instead.
|
|
|
|
|
|
|
|
Signed-off-by: Florian Westphal <fw@strlen.de>
|
|
|
|
(cherry picked from commit 98ed6f6fc6d97663a33de67afff60196052880b1)
|
|
|
|
---
|
|
|
|
iptables/xtables-monitor.c | 3 +++
|
|
|
|
1 file changed, 3 insertions(+)
|
|
|
|
|
|
|
|
diff --git a/iptables/xtables-monitor.c b/iptables/xtables-monitor.c
|
2023-05-10 12:59:54 +00:00
|
|
|
index e6b6e76b9fdc9..4b9809805fb5b 100644
|
2022-05-26 13:50:39 +00:00
|
|
|
--- 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++)
|
|
|
|
--
|
2023-05-10 12:59:54 +00:00
|
|
|
2.40.0
|
2022-05-26 13:50:39 +00:00
|
|
|
|