diff options
author | YOSHIFUJI Hideaki / 吉藤英明 <yoshfuji@linux-ipv6.org> | 2013-01-29 16:49:03 +0400 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2013-01-30 07:58:40 +0400 |
commit | 29e3b1608c8dca3ae4224a26862d18ea003ccee6 (patch) | |
tree | f830a52bbf2eae7f6bbe9976ff8220d63df04a48 /net/netfilter/ipset/ip_set_hash_net.c | |
parent | d9e85655b5c9fcebf81aedc69182efbfdf4fe740 (diff) | |
download | linux-29e3b1608c8dca3ae4224a26862d18ea003ccee6.tar.xz |
netfilter ipset: Use ipv6_addr_equal() where appropriate.
Signed-off-by: YOSHIFUJI Hideaki <yoshfuji@linux-ipv6.org>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/netfilter/ipset/ip_set_hash_net.c')
-rw-r--r-- | net/netfilter/ipset/ip_set_hash_net.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/net/netfilter/ipset/ip_set_hash_net.c b/net/netfilter/ipset/ip_set_hash_net.c index 29e94b981f3f..4b677cf6bf7d 100644 --- a/net/netfilter/ipset/ip_set_hash_net.c +++ b/net/netfilter/ipset/ip_set_hash_net.c @@ -286,7 +286,7 @@ hash_net6_data_equal(const struct hash_net6_elem *ip1, const struct hash_net6_elem *ip2, u32 *multi) { - return ipv6_addr_cmp(&ip1->ip.in6, &ip2->ip.in6) == 0 && + return ipv6_addr_equal(&ip1->ip.in6, &ip2->ip.in6) && ip1->cidr == ip2->cidr; } |