diff options
| author | Alejandro Colomar <alx@kernel.org> | 2024-11-17 18:47:53 +0100 |
|---|---|---|
| committer | Alejandro Colomar <alx@kernel.org> | 2024-11-17 21:51:23 +0100 |
| commit | 18e7c4597c4e72fa5210c7887273e363c456c9ee (patch) | |
| tree | 97cfd22e731a4c859ae71783d70943ff72e6cb60 /man/man7/socket.7 | |
| parent | 8fc6fdd8291d906e58a175b5e1b20da680aaeb4a (diff) | |
| download | man-pages-18e7c4597c4e.tar.gz | |
man/: Terminology consistency reforms (n, size, length)
Use 'length' for the lenght of a string.
Use 'n' for the number of elements.
Use 'size' for the number of bytes. (And in wide-character string
functions, 'size' also refers to the number of wide characters.)
The change is quite large, and I might have made some mistakes.
But overall, this should improve consistency in use of these terms.
Signed-off-by: Alejandro Colomar <alx@kernel.org>
Diffstat (limited to 'man/man7/socket.7')
| -rw-r--r-- | man/man7/socket.7 | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/man/man7/socket.7 b/man/man7/socket.7 index 5b45e4cdf3..2527b4003b 100644 --- a/man/man7/socket.7 +++ b/man/man7/socket.7 @@ -313,10 +313,10 @@ or an extended BPF program to the socket for use as a filter of incoming packets. A packet will be dropped if the filter program returns zero. If the filter program returns a -nonzero value which is less than the packet's data length, -the packet will be truncated to the length returned. +nonzero value which is less than the packet's data size, +the packet will be truncated to the size returned. If the value returned by the filter is greater than or equal to the -packet's data length, the packet is allowed to proceed unmodified. +packet's data size, the packet is allowed to proceed unmodified. .IP The argument for .B SO_ATTACH_FILTER @@ -402,9 +402,9 @@ TCP support is available since Linux 4.6. Bind this socket to a particular device like \[lq]eth0\[rq], as specified in the passed interface name. If the -name is an empty string or the option length is zero, the socket device +name is an empty string or the option size is zero, the socket device binding is removed. -The passed option is a variable-length null-terminated +The passed option is a variable-size null-terminated interface name string with the maximum size of .BR IFNAMSIZ . If a socket is bound to an interface, @@ -1132,7 +1132,7 @@ caused by external network events. Maximum number of packets in the global input queue. .TP .I optmem_max -Maximum length of ancillary data and user control data like the iovecs +Maximum size of ancillary data and user control data like the iovecs per socket. .\" netdev_fastroute is not documented because it is experimental .SS Ioctls |
