Page MenuHomeFreeBSD

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

Authored by markj on Fri, Jan 24, 5:03 PM.

Details

Reviewers
glebius
Group Reviewers
network
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 Skipped
Unit
Tests Skipped
Build Status
Buildable 62002
Build 58886: arc lint + arc unit