Florian Westphal 330567b71d ipv6: don't reject link-local nexthop on other interface
48ed7b26faa7 ("ipv6: reject locally assigned nexthop addresses") is too
strict; it rejects following corner-case:

ip -6 route add default via fe80::1:2:3 dev eth1

[ where fe80::1:2:3 is assigned to a local interface, but not eth1 ]

Fix this by restricting search to given device if nh is linklocal.

Joint work with Hannes Frederic Sowa.

Fixes: 48ed7b26faa7 ("ipv6: reject locally assigned nexthop addresses")
Signed-off-by: Hannes Frederic Sowa <hannes@stressinduktion.org>
Signed-off-by: Florian Westphal <fw@strlen.de>
Signed-off-by: David S. Miller <davem@davemloft.net>
2015-08-10 13:29:22 -07:00
..
2015-05-28 11:23:20 +08:00
2015-05-25 13:25:35 -04:00
2015-05-03 21:58:01 -04:00
2015-05-30 23:48:36 -07:00
2015-06-12 21:59:25 -07:00
2015-02-28 16:56:51 -05:00
2015-05-31 21:42:18 -07:00
2014-05-23 16:28:53 -04:00