Thread (7 messages) flat view 7 messages, 6 authors, 2002-10-09

Re: [PATCH] IPv6: Fix Prefix Length of Link-local Addresses

From: YOSHIFUJI Hideaki / 吉藤英明 <hidden>
Date: 2002-10-09 19:23:33

In article [ref] (at Wed, 9 Oct 2002 23:03:29 +0400 (MSD)), kuznet@ms2.inr.ac.ru says:
quoted
Personally I think the interfaces should be configured with a /64 but 
there should be a discard route for the whole /10.
I agressively agree. :-)
How about this (against 2.4.19 / 2.4.20-pre10)?

Index: net/ipv6/addrconf.c
===================================================================
RCS file: /cvsroot/usagi/usagi-backport/linux24/net/ipv6/addrconf.c,v
retrieving revision 1.1.1.1.20.1
diff -u -r1.1.1.1.20.1 addrconf.c
--- net/ipv6/addrconf.c	2002/09/27 17:17:06	1.1.1.1.20.1
+++ net/ipv6/addrconf.c	2002/10/09 18:18:34
@@ -783,6 +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|RTF_REJECT);
 	addrconf_prefix_route(&addr, 64, dev, 0, RTF_ADDRCONF);
 }
 
-- 
Hideaki YOSHIFUJI @ USAGI Project <yoshfuji@linux-ipv6.org>
GPG FP: 9022 65EB 1ECF 3AD1 0BDF  80D8 4807 F894 E062 0EEA
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help