selftests: Fix IPv6 address bind tests
authorDavid Ahern <dsahern@kernel.org>
Sat, 11 Dec 2021 18:26:16 +0000 (11:26 -0700)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 22 Dec 2021 08:32:41 +0000 (09:32 +0100)
commit088e4d7dba27e89584962aa2394988f115ef45e5
treed981df5ab89c40b27d1bd3514cb966f4ab350e94
parent28c73d856b71d79b919391e2f58a253a8e9a4a67
selftests: Fix IPv6 address bind tests

[ Upstream commit 28a2686c185e84b6aa6a4d9c9a972360eb7ca266 ]

IPv6 allows binding a socket to a device then binding to an address
not on the device (__inet6_bind -> ipv6_chk_addr with strict flag
not set). Update the bind tests to reflect legacy behavior.

Fixes: 34d0302ab861 ("selftests: Add ipv6 address bind tests to fcnal-test")
Reported-by: Li Zhijian <lizhijian@fujitsu.com>
Signed-off-by: David Ahern <dsahern@kernel.org>
Signed-off-by: David S. Miller <davem@davemloft.net>
Signed-off-by: Sasha Levin <sashal@kernel.org>
tools/testing/selftests/net/fcnal-test.sh