summaryrefslogtreecommitdiffstats
path: root/iptables/nft-arp.c
diff options
context:
space:
mode:
authorFlorian Westphal <fw@strlen.de>2018-11-05 17:01:36 +0100
committerFlorian Westphal <fw@strlen.de>2018-11-12 14:53:24 +0100
commite31564fbc016531bac8c96ccc45c7b8b38aeae00 (patch)
tree2e2739e5a1b1016fe64d2235e9fe7d7acfeb9120 /iptables/nft-arp.c
parent2345ff6c24a0d6baf2f9ae6bb1a8816d8f43eeb8 (diff)
arptables: fix rule deletion/compare
arptables -D fails most of the time, as we compared source mask with target mask. Signed-off-by: Florian Westphal <fw@strlen.de>
Diffstat (limited to 'iptables/nft-arp.c')
-rw-r--r--iptables/nft-arp.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/iptables/nft-arp.c b/iptables/nft-arp.c
index f9352297..675f0eb9 100644
--- a/iptables/nft-arp.c
+++ b/iptables/nft-arp.c
@@ -637,7 +637,8 @@ static bool nft_arp_is_same(const void *data_a,
if (a->arp.src.s_addr != b->arp.src.s_addr
|| a->arp.tgt.s_addr != b->arp.tgt.s_addr
- || a->arp.smsk.s_addr != b->arp.tmsk.s_addr
+ || a->arp.smsk.s_addr != b->arp.smsk.s_addr
+ || a->arp.tmsk.s_addr != b->arp.tmsk.s_addr
|| a->arp.arpro != b->arp.arpro
|| a->arp.flags != b->arp.flags
|| a->arp.invflags != b->arp.invflags) {