From: Brian Haley <brian.haley@hp.com>
To: Shan Wei <shanwei@cn.fujitsu.com>
Cc: "YOSHIFUJI Hideaki / 吉藤英明" <yoshfuji@linux-ipv6.org>,
davem@davemloft.net, netdev@vger.kernel.org
Subject: Re: [GIT PULL net-2.6] IPv6 fixes.
Date: Wed, 04 Jun 2008 14:33:54 -0400 [thread overview]
Message-ID: <4846E012.9020300@hp.com> (raw)
In-Reply-To: <48460DDC.4040703@cn.fujitsu.com>
Shan Wei wrote:
>> + if (addr_type != IPV6_ADDR_ANY) {
>> + if (!ipv6_chk_addr(&init_net, &src_info->ipi6_addr,
>> + addr_type & IPV6_ADDR_LINKLOCAL ? dev : NULL, 0))
>>
> if ipi6_ifindex==2(eth0) and the ipi6_addr is loopback addr or multicast addr,
> ipv6_chk_addr() will return ture.
Won't ipv6_chk_addr() fail if given a multicast address since it's
looking in inet6_addr_lst[]?
Anyways, I've created a little chart showing the before/after
differences based on Yoshifuji's latest patch:
Behavior today:
src/ifindex result
----------- ------
::/0 SUCCESS (packet sent on lo)
::/1 (lo) SUCCESS (packet sent on lo)
::/3 (eth0) SUCCESS (packet sent on lo)
::/27 SUCCESS (packet sent on lo)
::1/0 SUCCESS (packet sent on lo)
::1/1 (lo) SUCCESS (packet sent on lo)
::1/3 (eth0) SUCCESS (packet sent on lo)
::1/27 SUCCESS (packet sent on lo)
ff02::1/0 EINVAL
ff02::1/1 EINVAL
ff02::1/3 EINVAL
ff02::1/27 ENODEV
With patch, differences shown with **:
src/ifindex result
----------- ------
::/0 SUCCESS (packet sent on lo)
::/1 (lo) SUCCESS (packet sent on lo)
::/3 (eth0) SUCCESS (packet sent on lo)
::/27 ENODEV **
::1/0 SUCCESS (packet sent on lo)
::1/1 (lo) SUCCESS (packet sent on lo)
::1/3 (eth0) EINVAL **
::1/27 ENODEV **
ff02::1/0 EINVAL
ff02::1/1 EINVAL
ff02::1/3 EINVAL
ff02::1/27 ENODEV
Is that change good with you?
-Brian
next prev parent reply other threads:[~2008-06-04 18:33 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-06-04 0:49 [GIT PULL net-2.6] IPv6 fixes YOSHIFUJI Hideaki / 吉藤英明
2008-06-04 1:19 ` Brian Haley
2008-06-04 2:24 ` YOSHIFUJI Hideaki / 吉藤英明
2008-06-04 2:27 ` Shan Wei
2008-06-04 2:37 ` YOSHIFUJI Hideaki / 吉藤英明
2008-06-04 3:02 ` YOSHIFUJI Hideaki / 吉藤英明
2008-06-04 3:37 ` Shan Wei
2008-06-04 18:33 ` Brian Haley [this message]
2008-06-04 19:17 ` YOSHIFUJI Hideaki / 吉藤英明
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=4846E012.9020300@hp.com \
--to=brian.haley@hp.com \
--cc=davem@davemloft.net \
--cc=netdev@vger.kernel.org \
--cc=shanwei@cn.fujitsu.com \
--cc=yoshfuji@linux-ipv6.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.