aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/tools/testing/selftests/net/.gitignore
diff options
context:
space:
mode:
authorKuniyuki Iwashima <kuniyu@amazon.co.jp>2020-03-10 17:05:27 +0900
committerDavid S. Miller <davem@davemloft.net>2020-03-12 12:08:09 -0700
commit7f204a7de8b08542aca3c1daa96ed20e1177ba87 (patch)
tree46fadd2182ac940b8f992ca32d32eb017eca43b4 /tools/testing/selftests/net/.gitignore
parenttcp: Forbid to bind more than one sockets haveing SO_REUSEADDR and SO_REUSEPORT per EUID. (diff)
downloadwireguard-linux-7f204a7de8b08542aca3c1daa96ed20e1177ba87.tar.xz
wireguard-linux-7f204a7de8b08542aca3c1daa96ed20e1177ba87.zip
selftests: net: Add SO_REUSEADDR test to check if 4-tuples are fully utilized.
This commit adds a test to check if we can fully utilize 4-tuples for connect() when all ephemeral ports are exhausted. The test program changes the local port range to use only one port and binds two sockets with or without SO_REUSEADDR and SO_REUSEPORT, and with the same EUID or with different EUIDs, then do listen(). We should be able to bind only one socket having both SO_REUSEADDR and SO_REUSEPORT per EUID, which restriction is to prevent unintentional listen(). Signed-off-by: Kuniyuki Iwashima <kuniyu@amazon.co.jp> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'tools/testing/selftests/net/.gitignore')
-rw-r--r--tools/testing/selftests/net/.gitignore1
1 files changed, 1 insertions, 0 deletions
diff --git a/tools/testing/selftests/net/.gitignore b/tools/testing/selftests/net/.gitignore
index ecc52d4c034d..91f9aea853b1 100644
--- a/tools/testing/selftests/net/.gitignore
+++ b/tools/testing/selftests/net/.gitignore
@@ -23,3 +23,4 @@ so_txtime
tcp_fastopen_backup_key
nettest
fin_ack_lat
+reuseaddr_ports_exhausted \ No newline at end of file