Page MenuHomeFreeBSD

inpcb: Imbue in(6)_pcblookup_local() with a FIB parameter
ClosedPublic

Authored by markj on Jan 24 2025, 5:03 PM.
Tags
None
Referenced Files
Unknown Object (File)
Thu, Feb 20, 8:17 AM
Unknown Object (File)
Tue, Feb 18, 10:36 PM
Unknown Object (File)
Tue, Feb 18, 9:23 PM
Unknown Object (File)
Tue, Feb 18, 6:52 PM
Unknown Object (File)
Tue, Feb 18, 5:42 PM
Unknown Object (File)
Fri, Feb 14, 11:16 PM
Unknown Object (File)
Wed, Feb 12, 1:01 AM
Unknown Object (File)
Fri, Feb 7, 1:06 PM
Subscribers

Details

Summary

This is to enable a mode where duplicate inpcb bindings are permitted,
and we want to look up an inpcb with a particular FIB. Thus, add a
"fib" parameter to in_pcblookup() and related functions, and plumb it
through.

A fib value of -1 indicates that the lookup should ignore FIB numbers
when searching. Otherwise, it should refer to a valid FIB number, and
the returned inpcb should belong to the specific FIB. For now, just add
the fib parameter where needed, as there are several layers to plumb
through.

No functional change intended.

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:03 PM
This revision is now accepted and ready to land.Jan 24 2025, 5:31 PM

Use RT_ALL_FIBS instead of -1 as a sentinel value.

This revision now requires review to proceed.Mon, Jan 27, 2:59 PM
This revision is now accepted and ready to land.Mon, Jan 27, 6:39 PM