diff options
author | Florian Westphal <fw@strlen.de> | 2015-05-21 00:25:41 +0200 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2015-05-22 05:23:38 +0200 |
commit | 48ed7b26faa758e6612cd1fb11c07f25cd54f771 (patch) | |
tree | 0e814f2067f2c93abdcab8eb60412ed1fe03fb2a /net/ipv4/tcp.c | |
parent | Merge branch 'stmmac-probe-refactoring' (diff) | |
download | linux-48ed7b26faa758e6612cd1fb11c07f25cd54f771.tar.xz linux-48ed7b26faa758e6612cd1fb11c07f25cd54f771.zip |
ipv6: reject locally assigned nexthop addresses
ip -6 addr add dead::1/128 dev eth0
sleep 5
ip -6 route add default via dead::1/128
-> fails
ip -6 addr add dead::1/128 dev eth0
ip -6 route add default via dead::1/128
-> succeeds
reason is that if (nonsensensical) route above is added,
dead::1 is still subject to DAD, so the route lookup will
pick eth0 as outdev due to the prefix route that is added before
DAD work is started.
Add explicit test that checks if nexthop gateway is a local address.
Link: https://bugzilla.redhat.com/show_bug.cgi?id=1167969
Signed-off-by: Florian Westphal <fw@strlen.de>
Acked-by: Hannes Frederic Sowa <hannes@stressinduktion.org>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/ipv4/tcp.c')
0 files changed, 0 insertions, 0 deletions