]> asedeno.scripts.mit.edu Git - linux.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)
commit6254e5c6a8d7c19e51e671e2648de2db06f8d504
treea8a236c1acd98c05cdab07f9f6fd1f911975ea1f
parent0ee58dad5b065f5910c2c926d8c9f07cbe2db86c
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]