diff options
author | Florian Westphal <fw@strlen.de> | 2018-11-05 17:01:36 +0100 |
---|---|---|
committer | Florian Westphal <fw@strlen.de> | 2018-11-12 14:53:24 +0100 |
commit | e31564fbc016531bac8c96ccc45c7b8b38aeae00 (patch) | |
tree | 2e2739e5a1b1016fe64d2235e9fe7d7acfeb9120 /iptables/nft-arp.c | |
parent | 2345ff6c24a0d6baf2f9ae6bb1a8816d8f43eeb8 (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.c | 3 |
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) { |