Re: [PATCH net] ipv6: don't reject link-local nexthop on other interface

2015-08-10 Thread David Miller
From: Florian Westphal Date: Fri, 7 Aug 2015 10:54:28 +0200 > 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 n

[PATCH net] ipv6: don't reject link-local nexthop on other interface

2015-08-07 Thread Florian Westphal
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 linkloca