netdev.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH]behavior of ip6_route_input() for link local address.
@ 2005-10-20  4:51 Yan Zheng
  2005-10-21  8:27 ` YOSHIFUJI Hideaki / 吉藤英明
  0 siblings, 1 reply; 2+ messages in thread
From: Yan Zheng @ 2005-10-20  4:51 UTC (permalink / raw)
  To: netdev; +Cc: linux-kernel

Hi

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.


Index: net/ipv6/route.c
===================================================================
--- linux-2.6.14-rc4-git6/net/ipv6/route.c	2005-10-20 12:02:49.000000000 +0800
+++ linux/net/ipv6/route.c	2005-10-20 12:21:03.000000000 +0800
@@ -483,7 +483,7 @@
 		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)) {

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: [PATCH]behavior of ip6_route_input() for link local address.
  2005-10-20  4:51 [PATCH]behavior of ip6_route_input() for link local address Yan Zheng
@ 2005-10-21  8:27 ` YOSHIFUJI Hideaki / 吉藤英明
  0 siblings, 0 replies; 2+ messages in thread
From: YOSHIFUJI Hideaki / 吉藤英明 @ 2005-10-21  8:27 UTC (permalink / raw)
  To: yanzheng, davem; +Cc: netdev, linux-kernel

Hello.

In article <43572256.40101@21cn.com> (at Thu, 20 Oct 2005 12:51:34 +0800), Yan Zheng <yanzheng@21cn.com> says:

> 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.

Acked-by: YOSHIFUJI Hideaki <yoshfuji@linux-ipv6.org>

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
-----+----------------------+-  -+--------------

-- 
YOSHIFUJI Hideaki @ USAGI Project  <yoshfuji@linux-ipv6.org>
GPG-FP  : 9022 65EB 1ECF 3AD1 0BDF  80D8 4807 F894 E062 0EEA

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2005-10-21  8:27 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2005-10-20  4:51 [PATCH]behavior of ip6_route_input() for link local address Yan Zheng
2005-10-21  8:27 ` YOSHIFUJI Hideaki / 吉藤英明

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).