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
Unknown Object (File)
Wed, Sep 30, 5:47 PM
Unknown Object (File)
Wed, Sep 30, 4:57 PM
Unknown Object (File)
Sun, Sep 27, 5:22 AM
Unknown Object (File)
Sun, Sep 20, 1:30 AM
Unknown Object (File)
Wed, Sep 16, 3:28 PM
Unknown Object (File)
Thu, Sep 10, 6:03 PM
Unknown Object (File)
Wed, Sep 2, 9:22 AM
Unknown Object (File)
Aug 31 2026, 8:40 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