summaryrefslogtreecommitdiffstats
path: root/iptables/nft-ipv4.c
diff options
context:
space:
mode:
Diffstat (limited to 'iptables/nft-ipv4.c')
-rw-r--r--iptables/nft-ipv4.c7
1 files changed, 5 insertions, 2 deletions
diff --git a/iptables/nft-ipv4.c b/iptables/nft-ipv4.c
index 40340984..71fbc830 100644
--- a/iptables/nft-ipv4.c
+++ b/iptables/nft-ipv4.c
@@ -66,9 +66,12 @@ static int nft_ipv4_add(struct nft_rule *r, void *data)
return cs->fw.ip.flags;
}
-static bool nft_ipv4_is_same(const struct iptables_command_state *a,
- const struct iptables_command_state *b)
+static bool nft_ipv4_is_same(const void *data_a,
+ const void *data_b)
{
+ const struct iptables_command_state *a = data_a;
+ const struct iptables_command_state *b = data_b;
+
if (a->fw.ip.src.s_addr != b->fw.ip.src.s_addr
|| a->fw.ip.dst.s_addr != b->fw.ip.dst.s_addr
|| a->fw.ip.smsk.s_addr != b->fw.ip.smsk.s_addr