summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPhil Sutter <phil@nwl.cc>2018-08-02 17:05:22 +0200
committerFlorian Westphal <fw@strlen.de>2018-08-04 23:18:40 +0200
commit3f279553a2908bfa3ad76211ee657c97e4103563 (patch)
treee2df24a358de9cfdd331dfa258e9ce6093c30c07
parentf988fe49839015c6e798a1d4e805aaf52691dbf7 (diff)
arptables: Fix opcode printing in numeric output
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>
-rw-r--r--iptables/nft-arp.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/iptables/nft-arp.c b/iptables/nft-arp.c
index 5cabb93e..570a2589 100644
--- a/iptables/nft-arp.c
+++ b/iptables/nft-arp.c
@@ -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));