HomeFreeBSD

routing: fix source address selection rules for IPv4 over IPv6.

Description

routing: fix source address selection rules for IPv4 over IPv6.

Current logic always selects an IFA of the same family from the
outgoing interfaces. In IPv4 over IPv6 setup there can be just
single non-127.0.0.1 ifa, attached to the loopback interface.

Create a separate rt_getifa_family() to handle entire ifa selection
for the IPv4 over IPv6.

Differential Revision: https://reviews.freebsd.org/D31868
MFC after: 1 week

Details

Provenance
melifaroAuthored on Sep 6 2021, 10:08 PM
Differential Revision
D31868: routing: fix source address selection rules for IPv4 over IPv6.
Parents
rGc751d067c166: Bump __FreeBSD_version for the recent socket KPI changes
Branches
Unknown
Tags
Unknown