diff options
author | Peter Oskolkov <posk@google.com> | 2018-12-13 00:15:37 +0300 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2018-12-15 02:55:20 +0300 |
commit | 6254e5c6a8d7c19e51e671e2648de2db06f8d504 (patch) | |
tree | a8a236c1acd98c05cdab07f9f6fd1f911975ea1f /tools/testing/selftests/net/reuseport_addr_any.sh | |
parent | 0ee58dad5b065f5910c2c926d8c9f07cbe2db86c (diff) | |
download | linux-6254e5c6a8d7c19e51e671e2648de2db06f8d504.tar.xz |
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>
Diffstat (limited to 'tools/testing/selftests/net/reuseport_addr_any.sh')
-rwxr-xr-x | tools/testing/selftests/net/reuseport_addr_any.sh | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/tools/testing/selftests/net/reuseport_addr_any.sh b/tools/testing/selftests/net/reuseport_addr_any.sh new file mode 100755 index 000000000000..104592f62ad4 --- /dev/null +++ b/tools/testing/selftests/net/reuseport_addr_any.sh @@ -0,0 +1,4 @@ +#!/bin/sh +# SPDX-License-Identifier: GPL-2.0 + +./in_netns.sh ./reuseport_addr_any |