Skip to content

Commit

Permalink
[IPV6]: Fix behavior of ip6_route_input() for link local address
Browse files Browse the repository at this point in the history
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 <yoshfuji@linux-ipv6.org> 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 <yanzheng@21cn.com>
Acked-by: YOSHIFUJI Hideaki <yoshfuji@linux-ipv6.org>
Signed-off-by: Andrew Morton <akpm@osdl.org> (forwarded)
Signed-off-by: Arnaldo Carvalho de Melo <acme@mandriva.com>
  • Loading branch information
Yan Zheng authored and Arnaldo Carvalho de Melo committed Oct 31, 2005
1 parent a3d7a9d commit 9d17f21
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion net/ipv6/route.c
Original file line number Diff line number Diff line change
Expand Up @@ -483,7 +483,7 @@ void ip6_route_input(struct sk_buff *skb)
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)) {
Expand Down

0 comments on commit 9d17f21

Please sign in to comment.