From: Yan Zheng Date: Fri, 28 Oct 2005 22:12:00 +0000 (-0700) Subject: [IPV6]: Fix behavior of ip6_route_input() for link local address X-Git-Tag: MMI-PSA29.97-13-9~53869^2~46^2~3 X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=9d17f218936a0fee43ad9493a841136589c942cd;p=GitHub%2FMotorolaMobilityLLC%2Fkernel-slsi.git [IPV6]: Fix behavior of ip6_route_input() for link local address I find that linux will reply echo request destined to an address which belongs to an interface other than the one from which the request received. This behavior doesn't make sense for link local address. YOSHIFUJI Hideaki said: Please note that sender does need to setup neighbor entry by hand to reproduce this bug. (Link-local address on eth1 is not visible on eth0, from the point of view of neighbor discovery in IPv6.) +--------+ +--------+ | sender | | router | +---+----+ +-+----+-+ |eth0 eth0| |eth1 -----+----------------------+- -+-------------- Signed-off-by: Yan Zheng Acked-by: YOSHIFUJI Hideaki Signed-off-by: Andrew Morton (forwarded) Signed-off-by: Arnaldo Carvalho de Melo --- diff --git a/net/ipv6/route.c b/net/ipv6/route.c index 5d5bbb49ec78..227e99ed510c 100644 --- a/net/ipv6/route.c +++ b/net/ipv6/route.c @@ -483,7 +483,7 @@ restart: goto out; } - rt = rt6_device_match(rt, skb->dev->ifindex, 0); + rt = rt6_device_match(rt, skb->dev->ifindex, strict); BACKTRACK(); if (!rt->rt6i_nexthop && !(rt->rt6i_flags & RTF_NONEXTHOP)) {