From ac7477eb7a8cfa991cb7c3433fa079967efef968 Mon Sep 17 00:00:00 2001 From: Michael Kerrisk Date: Sat, 26 Apr 2014 14:40:28 +0200 Subject: [PATCH] connect.2: ERRORS: Add EADDRNOTAVAIL for ephemeral port range exhaustion Verified from testing and the kernel source. See https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=745775 Reported-by: William Morriss Signed-off-by: Michael Kerrisk --- man2/connect.2 | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/man2/connect.2 b/man2/connect.2 index 09b52178f..85d899edc 100644 --- a/man2/connect.2 +++ b/man2/connect.2 @@ -149,6 +149,19 @@ firewall rule. .B EADDRINUSE Local address is already in use. .TP +.B EADDRNOTAVAIL +(Internet domain sockets) +The socket referred to by +.I sockfd +had not previously been bound to an address and, +upon attempting to bind it to an ephemeral port, +it was determined that all port numbers in the ephemeral port range +are currently in use. +See the discussion of +.I /proc/sys/net/ipv4/ip_local_port_range +in +.BR ip (7). +.TP .B EAFNOSUPPORT The passed address didn't have the correct address family in its .I sa_family