Page MenuHomeFreeBSD

udp: Add a sysctl to control binding
ClosedPublic

Authored by markj on Jan 24 2025, 5:04 PM.
Tags
None
Referenced Files
Unknown Object (File)
Sun, Feb 23, 1:02 AM
Unknown Object (File)
Mon, Feb 17, 5:55 AM
Unknown Object (File)
Wed, Feb 12, 10:36 PM
Unknown Object (File)
Thu, Feb 6, 4:29 PM
Unknown Object (File)
Wed, Feb 5, 5:00 PM
Unknown Object (File)
Wed, Feb 5, 4:56 PM
Unknown Object (File)
Wed, Feb 5, 7:35 AM
Unknown Object (File)
Sun, Feb 2, 6:41 PM

Details

Summary

Introduce the net.inet.udp.bind_all_fibs tunable, set to 1 by default
for compatibility with current behaviour. When set to 0, all received
datagrams will be dropped unless an inpcb bound to the same FIB exists.

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

Event Timeline

markj requested review of this revision.Jan 24 2025, 5:04 PM

Handle multicast sockets as well.

This revision was not accepted when it landed; it landed in state Needs Review.Thu, Feb 6, 4:28 PM
This revision was automatically updated to reflect the committed changes.