git: d0f8e31761b7 - main - getsockopt.2: Clarify the SO_REUSEPORT_LB text a bit
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Wed, 02 Nov 2022 17:47:10 UTC
The branch main has been updated by markj: URL: https://cgit.FreeBSD.org/src/commit/?id=d0f8e31761b7de6010e8b3ed49a1a5f9fc5726f7 commit d0f8e31761b7de6010e8b3ed49a1a5f9fc5726f7 Author: Mark Johnston <markj@FreeBSD.org> AuthorDate: 2022-11-02 17:01:59 +0000 Commit: Mark Johnston <markj@FreeBSD.org> CommitDate: 2022-11-02 17:46:24 +0000 getsockopt.2: Clarify the SO_REUSEPORT_LB text a bit Refer to sockets rather than processes, since one can have multiple sockets in a load-balancing group within the same process. MFC after: 1 week Sponsored by: Modirum MDPay Sponsored by: Klara, Inc. --- lib/libc/sys/getsockopt.2 | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/lib/libc/sys/getsockopt.2 b/lib/libc/sys/getsockopt.2 index 3ff971a0e5db..c44c32ed2579 100644 --- a/lib/libc/sys/getsockopt.2 +++ b/lib/libc/sys/getsockopt.2 @@ -214,14 +214,14 @@ This option permits multiple instances of a program to each receive UDP/IP multicast or broadcast datagrams destined for the bound port. .Pp .Dv SO_REUSEPORT_LB -allows completely duplicate bindings by multiple processes +allows completely duplicate bindings by multiple sockets if they all set .Dv SO_REUSEPORT_LB before binding the port. -Incoming TCP and UDP connections are distributed among the sharing -processes based on a hash function of local port number, foreign IP +Incoming TCP and UDP connections are distributed among the participating +listening sockets based on a hash function of local port number, and foreign IP address and port number. -A maximum of 256 processes can share one socket. +A maximum of 256 sockets can be bound to the same load-balancing group. .Pp .Dv SO_KEEPALIVE enables the