From 1f95348010c27c70c5c6ef6bde756f6ff52d24ca Mon Sep 17 00:00:00 2001 From: "Christian S.J. Peron" Date: Tue, 11 May 2004 16:28:07 +0000 Subject: [PATCH] Document the fact that in a jailed environment, sendto(2) could fail returning EPERM if the source address specified in the IP header did not match the address bound to the prison. Approved by: bmilekic (mentor) --- lib/libc/sys/send.2 | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/lib/libc/sys/send.2 b/lib/libc/sys/send.2 index e2e0527d06d..2d5d76fceb8 100644 --- a/lib/libc/sys/send.2 +++ b/lib/libc/sys/send.2 @@ -189,6 +189,10 @@ receiver is not listening on the remote port. The remote host was down. .It Bq Er ENETDOWN The remote network was down. +.It Bq Er EPERM +The process using a SOCK_RAW socket was jailed and the source +address specified in the IP header did not match the IP +address bound to the prison. .It Bq Er EPIPE The socket is unable to send anymore data (SS_CANTSENDMORE has been set on the socket). This typically means that the socket