From: Vlad Yasevich <vladislav.yasevich@hp.com>
To: Yan Zheng <yanzheng@21cn.com>
Cc: netdev@vger.kernel.org, linux-kernel@vger.kernel.org,
yoshfuji@linux-ipv6.org
Subject: Re: [PATCH]small fix for __ipv6_addr_type(...)
Date: Tue, 15 Nov 2005 17:20:50 -0500 [thread overview]
Message-ID: <437A5F42.3080100@hp.com> (raw)
In-Reply-To: <4376F2CE.4050003@21cn.com>
No, according to RFC 4007, loopback is considered a link-local
address.
-vlad
Yan Zheng wrote:
> Hi.
>
> I think the scope for loopback address should be node local.
>
> Regards
>
> Signed-off-by: Yan Zheng <yanzheng@21cn.com>
>
> ========================================================================
> --- linux-2.6.15-rc1/net/ipv6/addrconf.c 2005-11-13
> 12:23:06.000000000 +0800
> +++ linux/net/ipv6/addrconf.c 2005-11-13 15:50:03.000000000 +0800
> @@ -249,7 +249,7 @@ int __ipv6_addr_type(const struct in6_ad
>
> if (addr->s6_addr32[3] == htonl(0x00000001))
> return (IPV6_ADDR_LOOPBACK | IPV6_ADDR_UNICAST |
> -
> IPV6_ADDR_SCOPE_TYPE(IPV6_ADDR_SCOPE_LINKLOCAL)); /* addr-select 3.4 */
> +
> IPV6_ADDR_SCOPE_TYPE(IPV6_ADDR_SCOPE_NODELOCAL)); /* addr-select 3.4 */
>
> return (IPV6_ADDR_COMPATv4 | IPV6_ADDR_UNICAST |
> IPV6_ADDR_SCOPE_TYPE(IPV6_ADDR_SCOPE_GLOBAL)); /*
> addr-select 3.3 */
> -
> To unsubscribe from this list: send the line "unsubscribe netdev" in
> the body of a message to majordomo@vger.kernel.org
> More majordomo info at http://vger.kernel.org/majordomo-info.html
>
next prev parent reply other threads:[~2005-11-15 22:20 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2005-11-13 8:01 [PATCH]small fix for __ipv6_addr_type(...) Yan Zheng
2005-11-15 22:20 ` Vlad Yasevich [this message]
2005-11-16 1:10 ` 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=437A5F42.3080100@hp.com \
--to=vladislav.yasevich@hp.com \
--cc=linux-kernel@vger.kernel.org \
--cc=netdev@vger.kernel.org \
--cc=yanzheng@21cn.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 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).