]> git.ipfire.org Git - thirdparty/iptables.git/commitdiff
arptables: Fix opcode printing in numeric output
authorPhil Sutter <phil@nwl.cc>
Thu, 2 Aug 2018 15:05:22 +0000 (17:05 +0200)
committerFlorian Westphal <fw@strlen.de>
Sat, 4 Aug 2018 21:18:40 +0000 (23:18 +0200)
This line of code was dropped by accident, add it back.

Fixes: 68e5e18210b8d ("nft-arp: adds nft_arp_save_firewall")
Signed-off-by: Phil Sutter <phil@nwl.cc>
Signed-off-by: Florian Westphal <fw@strlen.de>
iptables/nft-arp.c

index 5cabb93e4a9bcc60dc84a61a5d18be720ed1794f..570a2589747cac3cefde7bb209f42ea3e7f3fe86 100644 (file)
@@ -543,6 +543,7 @@ after_devdst:
                if (tmp <= NUMOPCODES && !(format & FMT_NUMERIC))
                        printf("--opcode %s", opcodes[tmp-1]);
                else
+                       printf("--opcode %d", tmp);
 
                if (fw->arp.arpop_mask != 65535)
                        printf("/%d", ntohs(fw->arp.arpop_mask));