HomeFreeBSD

udp: Add a sysctl to modify listening socket FIB inheritance

Description

udp: Add a sysctl to modify listening socket FIB inheritance

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.

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

(cherry picked from commit 08e638c089ab57531f08994d03c9dde54c4744f9)

Details

Provenance
markjAuthored on Thu, Feb 6, 2:15 PM
Reviewer
glebius
Differential Revision
D48664: udp: Add a sysctl to control binding
Parents
rGaa6163ff658b: tcp: Add a sysctl to modify listening socket FIB inheritance
Branches
Unknown
Tags
Unknown