diff options
author | David Ahern <dsa@cumulusnetworks.com> | 2015-11-03 15:59:28 -0800 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2015-11-04 21:34:37 -0500 |
commit | e1b8d903c6c3862160d2d5036806a94786c8fc4e (patch) | |
tree | f75c2a7a1712422891023ed0d62b77dcb7d08dfc /net/ipv4/ipmr.c | |
parent | 87e9f0315952b0dd8b5e51ba04beda03efc009d9 (diff) |
net: Fix prefsrc lookups
A bug report (https://bugzilla.kernel.org/show_bug.cgi?id=107071) noted
that the follwoing ip command is failing with v4.3:
$ ip route add 10.248.5.0/24 dev bond0.250 table vlan_250 src 10.248.5.154
RTNETLINK answers: Invalid argument
021dd3b8a142d changed the lookup of the given preferred source address to
use the table id passed in, but this assumes the local entries are in the
given table which is not necessarily true for non-VRF use cases. When
validating the preferred source fallback to the local table on failure.
Fixes: 021dd3b8a142d ("net: Add routes to the table associated with the device")
Signed-off-by: David Ahern <dsa@cumulusnetworks.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/ipv4/ipmr.c')
0 files changed, 0 insertions, 0 deletions