ipv6: Remove in6addr_any alternatives.
authorKuniyuki Iwashima <kuniyu@amazon.com>
Mon, 27 Mar 2023 23:54:54 +0000 (16:54 -0700)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 19 Sep 2023 10:28:10 +0000 (12:28 +0200)
commit82f9af464e01f314f228523ef4cb8f46406c587a
tree836924869c9fef9fc403023c4127e3464fb4dc32
parent8b6556c4c4e35707c0e102a861e94a3ecb223342
ipv6: Remove in6addr_any alternatives.

[ Upstream commit 8cdc3223e78c43e1b60ea1c536a103e32fdca3c5 ]

Some code defines the IPv6 wildcard address as a local variable and
use it with memcmp() or ipv6_addr_equal().

Let's use in6addr_any and ipv6_addr_any() instead.

Signed-off-by: Kuniyuki Iwashima <kuniyu@amazon.com>
Reviewed-by: Mark Bloch <mbloch@nvidia.com>
Reviewed-by: David Ahern <dsahern@kernel.org>
Signed-off-by: David S. Miller <davem@davemloft.net>
Stable-dep-of: aa99e5f87bd5 ("tcp: Fix bind() regression for v4-mapped-v6 wildcard address.")
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/net/ethernet/mellanox/mlx5/core/en/tc_tun_encap.c
include/net/ip6_fib.h
include/trace/events/fib.h
include/trace/events/fib6.h
net/ethtool/ioctl.c
net/ipv4/inet_hashtables.c