HomeFreeBSD

tcp: Add a sysctl to modify listening socket FIB inheritance

Description

tcp: Add a sysctl to modify listening socket FIB inheritance

Introduce the net.inet.tcp.bind_all_fibs tunable, set to 1 by default
for compatibility with current behaviour. When set to 0, all TCP
listening sockets are private to their FIB. Inbound connection requests
will only succeed if a matching inpcb is bound to the same FIB as the
request.

No functional change intended, as the new behaviour is not enabled by
default.

Reviewed by: glebius
MFC after: 2 weeks
Sponsored by: Klara, Inc.
Sponsored by: Stormshield
Differential Revision: https://reviews.freebsd.org/D48663

Details

Provenance
markjAuthored on Thu, Feb 6, 2:14 PM
Reviewer
glebius
Differential Revision
D48663: tcp: Add a sysctl to affect listening socket behaviour
Parents
rGda806e8db685: inpcb: Add FIB-aware inpcb lookup
Branches
Unknown
Tags
Unknown