linux-stable/tools/testing/selftests/net/reuseport_addr_any.sh
Peter Oskolkov 6254e5c6a8 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>
2018-12-14 15:55:20 -08:00

4 lines
81 B
Bash
Executable file

#!/bin/sh
# SPDX-License-Identifier: GPL-2.0
./in_netns.sh ./reuseport_addr_any