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 <wjmelements@gmail.com>
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
This commit is contained in:
Michael Kerrisk 2014-04-26 14:40:28 +02:00
parent e39a52dbba
commit ac7477eb7a
1 changed files with 13 additions and 0 deletions

View File

@ -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