]> git.baikalelectronics.ru Git - kernel.git/commit
selftests: net: test that listening sockets match on address properly
authorPeter Oskolkov <posk@google.com>
Wed, 12 Dec 2018 21:15:37 +0000 (13:15 -0800)
committerDavid S. Miller <davem@davemloft.net>
Fri, 14 Dec 2018 23:55:20 +0000 (15:55 -0800)
commit72e236395269c0759a89a7a1a3bf5472adfb0134
treea8a236c1acd98c05cdab07f9f6fd1f911975ea1f
parent3c32c26ce3f29833335eabdbf0cdb16f2df73c2b
selftests: net: test that listening sockets match on address properly

This patch adds a selftest that verifies that a socket listening
on a specific address is chosen in preference over sockets
that listen on any address. The test covers UDP/UDP6/TCP/TCP6.

It is based on, and similar to, reuseport_dualstack.c selftest.

Signed-off-by: Peter Oskolkov <posk@google.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
tools/testing/selftests/net/.gitignore
tools/testing/selftests/net/Makefile
tools/testing/selftests/net/reuseport_addr_any.c [new file with mode: 0644]
tools/testing/selftests/net/reuseport_addr_any.sh [new file with mode: 0755]