]> git.baikalelectronics.ru Git - kernel.git/commit
ipv6: honor ifindex in case we receive ll addresses in router advertisements
authorHannes Frederic Sowa <hannes@stressinduktion.org>
Wed, 23 Dec 2015 21:44:37 +0000 (22:44 +0100)
committerDavid S. Miller <davem@davemloft.net>
Thu, 24 Dec 2015 03:03:54 +0000 (22:03 -0500)
commitfa9835167af2d6ba3979770769b5de9b5b750dab
tree19edc956da56ffdef71137e831f52934f927581b
parent784f3a5b8967cd6a735e9c0c2f16ff5e5e2289e0
ipv6: honor ifindex in case we receive ll addresses in router advertisements

Marc Haber reported we don't honor interface indexes when we receive link
local router addresses in router advertisements. Luckily the non-strict
version of ipv6_chk_addr already does the correct job here, so we can
simply use it to lighten the checks and use those addresses by default
without any configuration change.

Link: <http://permalink.gmane.org/gmane.linux.network/391348>
Reported-by: Marc Haber <mh+netdev@zugschlus.de>
Cc: Marc Haber <mh+netdev@zugschlus.de>
Signed-off-by: Hannes Frederic Sowa <hannes@stressinduktion.org>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/ipv6/ndisc.c