netdev.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] IPv6: Fix Prefix Length of Link-local Addresses
@ 2002-10-07 15:05 YOSHIFUJI Hideaki / 吉藤英明
  2002-10-07 18:55 ` David S. Miller
  2002-10-09 16:00 ` Derek Fawcus
  0 siblings, 2 replies; 30+ messages in thread
From: YOSHIFUJI Hideaki / 吉藤英明 @ 2002-10-07 15:05 UTC (permalink / raw)
  To: linux-kernel, netdev; +Cc: usagi

Hi,

Prefix length for link-local address should be 64, not 10.
This patch fixes prefix length of link-local address.

Following patch is against 2.4.19.

Thanks in advance.

-------------------------------------------------------------------
Patch-Name: Fix Prefix Length of Link-local Addresses
Patch-Id: FIX_2_4_19_LINKLOCAL_PREFIXLEN-20020928
Patch-Author: YOSHIFUJI Hideaki / USAGI Project <yoshfuji@linux-ipv6.org>
Credit: YOSHIFUJI Hideaki / USAGI Project <yoshfuji@linux-ipv6.org>
-------------------------------------------------------------------
Index: net/ipv6/addrconf.c
===================================================================
RCS file: /cvsroot/usagi/usagi-backport/linux24/net/ipv6/addrconf.c,v
retrieving revision 1.1.1.1
retrieving revision 1.1.1.1.20.1
diff -u -r1.1.1.1 -r1.1.1.1.20.1
--- net/ipv6/addrconf.c	2002/08/20 09:47:02	1.1.1.1
+++ net/ipv6/addrconf.c	2002/09/27 17:17:06	1.1.1.1.20.1
@@ -783,7 +783,7 @@
 	struct in6_addr addr;
 
 	ipv6_addr_set(&addr,  __constant_htonl(0xFE800000), 0, 0, 0);
-	addrconf_prefix_route(&addr, 10, dev, 0, RTF_ADDRCONF);
+	addrconf_prefix_route(&addr, 64, dev, 0, RTF_ADDRCONF);
 }
 
 static struct inet6_dev *addrconf_add_dev(struct net_device *dev)
@@ -1158,7 +1158,7 @@
 					flag |= IFA_HOST;
 				}
 				if (idev->dev->flags&IFF_POINTOPOINT)
-					plen = 10;
+					plen = 64;
 				else
 					plen = 96;
 
@@ -1208,7 +1208,7 @@
 {
 	struct inet6_ifaddr * ifp;
 
-	ifp = ipv6_add_addr(idev, addr, 10, IFA_LINK, IFA_F_PERMANENT);
+	ifp = ipv6_add_addr(idev, addr, 64, IFA_LINK, IFA_F_PERMANENT);
 	if (ifp) {
 		addrconf_dad_start(ifp);
 		in6_ifa_put(ifp);

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

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

Thread overview: 30+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2002-10-07 15:05 [PATCH] IPv6: Fix Prefix Length of Link-local Addresses YOSHIFUJI Hideaki / 吉藤英明
2002-10-07 18:55 ` David S. Miller
2002-10-08  0:37   ` YOSHIFUJI Hideaki / 吉藤英明
2002-10-08 19:40     ` David S. Miller
2002-10-09 16:00 ` Derek Fawcus
2002-10-09 16:54   ` YOSHIFUJI Hideaki / 吉藤英明
2002-10-09 17:11     ` Derek Fawcus
2002-10-09 17:16     ` Pekka Savola
2002-10-09 19:03       ` kuznet
2002-10-09 19:23         ` YOSHIFUJI Hideaki / 吉藤英明
2002-10-09 20:47           ` kuznet
2002-10-09 21:46   ` Yuji Sekiya
2002-10-09 22:44     ` Derek Fawcus
2002-10-09 23:14       ` David S. Miller
2002-10-09 23:29         ` Derek Fawcus
2002-10-09 23:24           ` David S. Miller
2002-10-09 23:36             ` Derek Fawcus
2002-10-09 23:41             ` Yuji Sekiya
2002-10-09 23:45               ` David S. Miller
2002-10-10  0:00                 ` Yuji Sekiya
2002-10-10  0:04                   ` Derek Fawcus
2002-10-10  0:14                     ` Yuji Sekiya
2002-10-10  0:21                       ` Derek Fawcus
2002-10-10  0:35                         ` Yuji Sekiya
2002-10-10  0:42                           ` Derek Fawcus
2002-10-10  0:56                             ` Yuji Sekiya
2002-10-10  1:11                               ` Derek Fawcus
2002-10-10  0:10                   ` Derek Fawcus
2002-10-10  0:02                 ` Derek Fawcus
2002-10-09 23:51               ` Derek Fawcus

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