From 16f7b04c23efda45e290947cb9a69461d6eda9d2 Mon Sep 17 00:00:00 2001 From: Michael Kerrisk Date: Sat, 26 Apr 2014 15:14:29 +0200 Subject: [PATCH] send.2: ERRORS: Add EAGAIN for ephemeral port range exhaustion Signed-off-by: Michael Kerrisk --- man2/send.2 | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/man2/send.2 b/man2/send.2 index 5437e32e6..0b8ed2752 100644 --- a/man2/send.2 +++ b/man2/send.2 @@ -321,6 +321,19 @@ POSIX.1-2001 allows either error to be returned for this case, and does not require these constants to have the same value, so a portable application should check for both possibilities. .TP +.B EAGAIN +(Internet domain datagram 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 EBADF An invalid descriptor was specified. .TP