[iptables PATCH 15/27] arptables: Fix opcode printing in numeric output

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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@xxxxxx>
---
 iptables/nft-arp.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/iptables/nft-arp.c b/iptables/nft-arp.c
index 328c791db42a8..51096034570d5 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));
-- 
2.18.0

--
To unsubscribe from this list: send the line "unsubscribe netfilter-devel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html



[Index of Archives]     [Netfitler Users]     [LARTC]     [Bugtraq]     [Yosemite Forum]

  Powered by Linux