diff options
| -rw-r--r-- | man7/socket.7 | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/man7/socket.7 b/man7/socket.7 index c517bfd145..1935e1c10a 100644 --- a/man7/socket.7 +++ b/man7/socket.7 @@ -371,19 +371,33 @@ This option has no effect on stream-oriented sockets. .TP .B SO_SNDBUF Sets or gets the maximum socket send buffer in bytes. +The kernel doubles this value (to allow space for bookkeeping overhead) +when it is set using +.\" Most (all?) other implementations do not do this -- MTK, Dec 05 +.BR setsockopt (), +and this doubled value is returned by +.BR getsockopt (). The default value is set by the .B wmem_default sysctl and the maximum allowed value is set by the .B wmem_max sysctl. +The minimum (doubled) value for this option is 2048. .TP .B SO_RCVBUF Sets or gets the maximum socket receive buffer in bytes. +The kernel doubles this value (to allow space for bookkeeping overhead) +when it is set using +.\" Most (all?) other implementations do not do this -- MTK, Dec 05 +.BR setsockopt (), +and this doubled value is returned by +.BR getsockopt (). The default value is set by the .B rmem_default sysctl and the maximum allowed value is set by the .B rmem_max sysctl. +The minimum (doubled) value for this option is 256. .TP .B SO_LINGER Sets or gets the |
