HomeFreeBSD

net/if.c: Add fib-aware ifa_ifwithaddr()

Description

net/if.c: Add fib-aware ifa_ifwithaddr()

Add FIB selection logic by introducing ifa_ifwithaddr_fib() to
support FIB-specific lookups. Then have ifa_ifwithaddr() wrap it
with RT_ALL_FIBS.
Also, do the same for ifa_ifwithaddr_check().

Reviewed by: glebius, bnovkov
Differential Revision: https://reviews.freebsd.org/D58305

(cherry picked from commit b00d30950cde27eda8f51523a40f2c05a38daac1)

Details

Provenance
pouriaAuthored on Jul 17 2026, 4:11 PM
bnovkovCommitted on Aug 6 2026, 4:18 PM
Reviewer
glebius
Differential Revision
D58305: net/if.c: Add fib-aware ifa_ifwithaddr()
Parents
rG978b9026b018: bind(2): Lookup local address in current FIB if '*.bind_all_fibs' is active
Branches
Unknown
Tags
Unknown