]> git.ipfire.org Git - thirdparty/iptables.git/commitdiff
xtables-monitor:
authorFlorian Westphal <fw@strlen.de>
Mon, 14 Dec 2020 16:11:23 +0000 (17:11 +0100)
committerFlorian Westphal <fw@strlen.de>
Mon, 14 Dec 2020 16:11:23 +0000 (17:11 +0100)
'LL=0x304' is not very convenient, print LOOPBACK instead.

Signed-off-by: Florian Westphal <fw@strlen.de>
iptables/xtables-monitor.c

index e6b6e76b9fdc912cd72bdc51eaac30ad079466bf..4b9809805fb5b8385381d211d0b2498c56cf3a0b 100644 (file)
@@ -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++)