git: f9b1c96e30cd - stable/13 - getsockopt.2: Clarify the SO_REUSEPORT_LB text a bit
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Thu, 10 Nov 2022 17:30:33 UTC
The branch stable/13 has been updated by markj: URL: https://cgit.FreeBSD.org/src/commit/?id=f9b1c96e30cdc2d921af2a6cd67c9b569fe9f3e6 commit f9b1c96e30cdc2d921af2a6cd67c9b569fe9f3e6 Author: Mark Johnston <markj@FreeBSD.org> AuthorDate: 2022-11-02 17:01:59 +0000 Commit: Mark Johnston <markj@FreeBSD.org> CommitDate: 2022-11-10 17:02:47 +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. (cherry picked from commit d0f8e31761b7de6010e8b3ed49a1a5f9fc5726f7) --- 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