]> git.baikalelectronics.ru Git - kernel.git/commit
selftests: Fix IPv6 address bind tests
authorDavid Ahern <dsahern@kernel.org>
Sat, 11 Dec 2021 18:26:16 +0000 (11:26 -0700)
committerDavid S. Miller <davem@davemloft.net>
Sun, 12 Dec 2021 16:24:27 +0000 (16:24 +0000)
commitf920853ed94fa1892ae38801f55b9c34c662acc9
treedde507061425df6c09fa30a70068ae27e1659ebf
parent1cd35ccedb340302295c28faf716cad0c5513f56
selftests: Fix IPv6 address bind tests

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: b249bfc2296e ("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>
tools/testing/selftests/net/fcnal-test.sh