Page MenuHomeFreeBSD

tcp: Add a sysctl to affect listening socket behaviour
ClosedPublic

Authored by markj on Jan 24 2025, 5:04 PM.
Tags
None
Referenced Files
F171370297: D48663.id150630.diff
Thu, Sep 10, 6:03 PM
Unknown Object (File)
Wed, Sep 2, 9:22 AM
Unknown Object (File)
Mon, Aug 31, 8:40 AM
Unknown Object (File)
Aug 8 2026, 6:05 PM
Unknown Object (File)
Aug 6 2026, 1:03 PM
Unknown Object (File)
Aug 6 2026, 11:31 AM
Unknown Object (File)
Aug 6 2026, 1:30 AM
Unknown Object (File)
Aug 6 2026, 12:32 AM
Subscribers

Details

Summary

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.

Sponsored by: Klara, Inc.
Sponsored by: Stormshield

Diff Detail

Repository
rG FreeBSD src repository
Lint
Lint Not Applicable
Unit
Tests Not Applicable