HomeFreeBSD

Fix source address selection on unbound sockets in the presence of multiple

Description

Fix source address selection on unbound sockets in the presence of multiple
fibs. Use the mbuf's or the socket's fib instead of RT_ALL_FIBS. Fixes PR

  1. Also fixes netperf's UDP_STREAM test on a nondefault fib.

sys/netinet/ip_output.c
In ip_output, lookup the source address using the mbuf's fib instead
of RT_ALL_FIBS.

sys/netinet/in_pcb.c
in in_pcbladdr, lookup the source address using the socket's fib,
because we don't seem to have the mbuf fib. They should be the same,
though.

tests/sys/net/fibs_test.sh
Clear the expected failure on udp_dontroute.

PR: 187553
CR: https://reviews.freebsd.org/D772
MFC after: 3 weeks
Sponsored by: Spectra Logic

Details

Provenance
asomersAuthored on Sep 16 2014, 3:28 PM
Parents
rGb60b0fe6fdfd: Add a explict cast to silence a warning when building
Branches
Unknown
Tags
Unknown

Event Timeline