selftest: Add test for bind() conflicts.
authorKuniyuki Iwashima <kuniyu@amazon.com>
Sun, 12 Mar 2023 03:19:04 +0000 (19:19 -0800)
committerJakub Kicinski <kuba@kernel.org>
Wed, 15 Mar 2023 07:24:10 +0000 (00:24 -0700)
commit13715acf8ab5b32a6d7e42686fceeb66df114185
tree23b3754de0ef2cf10419edd90b3b8ffc34709d30
parentd9ba9934285514f1f95d96326a82398a22dc77f2
selftest: Add test for bind() conflicts.

The test checks if (IPv4, IPv6) address pair properly conflict or not.

  * IPv4
    * 0.0.0.0
    * 127.0.0.1

  * IPv6
    * ::
    * ::1

If the IPv6 address is [::], the second bind() always fails.

Signed-off-by: Kuniyuki Iwashima <kuniyu@amazon.com>
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
tools/testing/selftests/net/.gitignore
tools/testing/selftests/net/Makefile
tools/testing/selftests/net/bind_wildcard.c [new file with mode: 0644]