]> git.ipfire.org Git - thirdparty/iptables.git/commit
arptables: Check the mandatory ar_pln match
authorPhil Sutter <phil@nwl.cc>
Thu, 15 Dec 2022 15:06:11 +0000 (16:06 +0100)
committerPhil Sutter <phil@nwl.cc>
Tue, 20 Dec 2022 20:49:38 +0000 (21:49 +0100)
commitf2c5e52863ea48838e9b9246ed94419053673b88
treed549099764c08b08c27cf8fb92f0cf7bf4c34553
parentd96d0791901c10d4edf599b3da069ca3d9acfcc5
arptables: Check the mandatory ar_pln match

This match is added by nft_arp_add() to every rule with same value, so
when parsing just check it is as expected and otherwise ignore it. This
allows to treat matches on all other offsets/lengths as error.

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