aboutsummaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorAlexander V. Chernikov <melifaro@FreeBSD.org>2021-02-08 22:30:39 +0000
committerAlexander V. Chernikov <melifaro@FreeBSD.org>2021-02-08 22:32:32 +0000
commit924d1c9a050d7e355d0562fca62bd2bb9b5f53d7 (patch)
tree64fc9716256a1d641aeba3256a4fc2c174b52174 /lib
parentdb2f512381ac3c0c227f5c0354690bb929dcac17 (diff)
downloadsrc-924d1c9a050d7e355d0562fca62bd2bb9b5f53d7.tar.gz
src-924d1c9a050d7e355d0562fca62bd2bb9b5f53d7.zip
Revert "SO_RERROR indicates that receive buffer overflows should be handled as errors."
Wrong version of the change was pushed inadvertenly. This reverts commit 4a01b854ca5c2e5124958363b3326708b913af71.
Diffstat (limited to 'lib')
-rw-r--r--lib/libc/sys/getsockopt.210
1 files changed, 1 insertions, 9 deletions
diff --git a/lib/libc/sys/getsockopt.2 b/lib/libc/sys/getsockopt.2
index 223eb3e8a28b..1e4ed6827170 100644
--- a/lib/libc/sys/getsockopt.2
+++ b/lib/libc/sys/getsockopt.2
@@ -28,7 +28,7 @@
.\" @(#)getsockopt.2 8.4 (Berkeley) 5/2/95
.\" $FreeBSD$
.\"
-.Dd Feb 07, 2020
+.Dd June 3, 2020
.Dt GETSOCKOPT 2
.Os
.Sh NAME
@@ -177,7 +177,6 @@ for the socket
.It Dv SO_PROTOCOL Ta "get the protocol number for the socket (get only)"
.It Dv SO_PROTOTYPE Ta "SunOS alias for the Linux SO_PROTOCOL (get only)"
.It Dv SO_ERROR Ta "get and clear error on the socket (get only)"
-.It Dv SO_RERROR Ta "enables receive error reporting"
.It Dv SO_SETFIB Ta "set the associated FIB (routing table) for the socket (set only)"
.El
.Pp
@@ -515,13 +514,6 @@ returns any pending error on the socket and clears
the error status.
It may be used to check for asynchronous errors on connected
datagram sockets or for other asynchronous errors.
-.Dv SO_RERROR
-indicates that receive buffer overflows should be handled as errors.
-Historically receive buffer overflows have been ignored and programs
-could not tell if they missed messages or messages had been truncated
-because of overflows.
-Since programs historically do not expect to get receive overflow errors,
-this behavior is not the default.
.Pp
.Dv SO_LABEL
returns the MAC label of the socket.