bind.2: ERRORS: Add EADDRINUSE for ephemeral port range exhaustion

Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
This commit is contained in:
Michael Kerrisk 2014-04-26 15:06:30 +02:00
parent ac7477eb7a
commit 9b533686d8
1 changed files with 11 additions and 0 deletions

View File

@ -163,6 +163,17 @@ The address is protected, and the user is not the superuser.
.B EADDRINUSE
The given address is already in use.
.TP
.B EADDRINUSE
(Internet domain sockets)
The port number was specified as zero in the socket address structure,
but, upon attempting to bind 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
.BR ip (7).
.TP
.TP
.B EBADF
.I sockfd
is not a valid descriptor.