netdev.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH]small fix for __ipv6_addr_type(...)
@ 2005-11-13  8:01 Yan Zheng
  2005-11-15 22:20 ` Vlad Yasevich
  0 siblings, 1 reply; 3+ messages in thread
From: Yan Zheng @ 2005-11-13  8:01 UTC (permalink / raw)
  To: netdev; +Cc: linux-kernel, yoshfuji

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 */

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

end of thread, other threads:[~2005-11-16  1:10 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2005-11-13  8:01 [PATCH]small fix for __ipv6_addr_type(...) Yan Zheng
2005-11-15 22:20 ` Vlad Yasevich
2005-11-16  1:10   ` 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).