]> git.ipfire.org Git - thirdparty/iptables.git/commit
arptables: Fix conditional opcode/proto-type printing
authorPhil Sutter <phil@nwl.cc>
Sat, 27 Jul 2024 07:12:34 +0000 (09:12 +0200)
committerPhil Sutter <phil@nwl.cc>
Wed, 31 Jul 2024 21:13:55 +0000 (23:13 +0200)
commit25d4d341af5972b5560b31fa5dea72de057cb430
tree69bdb4b62f825c4f0bd0d6503ca67f461c7f4fd2
parent0b2e2f38d6c5c373373ab35157b406280b86b503
arptables: Fix conditional opcode/proto-type printing

The checks were wrong: nft_arp_init_cs() initializes masks to 65535, not
0. This went on unnoticed because nft_arp_add() does it right and
init_cs callback was not used in e.g. nft_arp_print_rule(). The last
patch adding init_cs() calls in potentially required spots exposed this
though.

Fixes: 84909d171585d ("xtables: bootstrap ARP compatibility layer for nftables")
Signed-off-by: Phil Sutter <phil@nwl.cc>
iptables/nft-arp.c