From owner-freebsd-current Sun Jun 17 20:13:15 2001 Delivered-To: freebsd-current@freebsd.org Received: from shuttle.wide.toshiba.co.jp (shuttle.wide.toshiba.co.jp [202.249.10.124]) by hub.freebsd.org (Postfix) with ESMTP id 0DB6537B403; Sun, 17 Jun 2001 20:13:00 -0700 (PDT) (envelope-from jinmei@isl.rdc.toshiba.co.jp) Received: from localhost ([3ffe:501:100f:10c1:c9f:bcc:6a11:c6e5]) by shuttle.wide.toshiba.co.jp (8.9.1+3.1W/8.9.1) with ESMTP id MAA19062; Mon, 18 Jun 2001 12:13:38 +0900 (JST) Date: Mon, 18 Jun 2001 12:10:22 +0900 Message-ID: From: JINMEI Tatuya / =?ISO-2022-JP?B?GyRCP0BMQEMjOkgbKEI=?= To: Hajimu UMEMOTO Cc: current@FreeBSD.ORG, net@FreeBSD.ORG Subject: Re: [CFR] latest KAME merge into FreeBSD In-Reply-To: <20010604.192036.74727576.ume@mahoroba.org> References: <20010604.192036.74727576.ume@mahoroba.org> User-Agent: Wanderlust/2.5.8 (Smooth) Emacs/21.0 Mule/5.0 (SAKAKI) Organization: Research & Development Center, Toshiba Corp., Kawasaki, Japan. MIME-Version: 1.0 (generated by SEMI 1.13.7 - "Awazu") Content-Type: text/plain; charset=US-ASCII X-Dispatcher: imput version 980905(IM100) Lines: 67 Sender: owner-freebsd-current@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG >>>>> On Mon, 04 Jun 2001 19:20:36 +0900 (JST), >>>>> Hajimu UMEMOTO said: > I just put the patch for merging latest KAME into FreeBSD: > http://www.imasy.or.jp/~ume/ipv6/test/freebsd5-kame20010528-20010604.diff.gz > This is based on KAME snap 20010528 and against 5-CURRENT of Jun 2. > There are many many changes since last KAME merge (20000701). > Please review it. Thanks for the effort. Could you apply the following patch? The fix is not so serious for most users, but should be important for nomadic users who use IPv6 temporary addresses (for privacy extension). JINMEI, Tatuya Communication Platform Lab. Corporate R&D Center, Toshiba Corp. jinmei@isl.rdc.toshiba.co.jp Index: nd6_rtr.c =================================================================== RCS file: /cvsroot/kame/kame/kame/sys/netinet6/nd6_rtr.c,v retrieving revision 1.119 retrieving revision 1.121 diff -c -r1.119 -r1.121 *** nd6_rtr.c 2001/06/04 09:07:28 1.119 --- nd6_rtr.c 2001/06/18 03:10:25 1.121 *************** *** 1,4 **** ! /* $KAME: nd6_rtr.c,v 1.119 2001/06/04 09:07:28 keiichi Exp $ */ /* * Copyright (C) 1995, 1996, 1997, and 1998 WIDE Project. --- 1,4 ---- ! /* $KAME: nd6_rtr.c,v 1.121 2001/06/18 03:10:25 jinmei Exp $ */ /* * Copyright (C) 1995, 1996, 1997, and 1998 WIDE Project. *************** *** 1903,1908 **** --- 1903,1909 ---- int in6_tmpifadd(ia0, forcegen) const struct in6_ifaddr *ia0; /* corresponding public address */ + int forcegen; { struct ifnet *ifp = ia0->ia_ifa.ifa_ifp; struct in6_ifaddr *newia; *************** *** 2001,2006 **** --- 2002,2017 ---- } newia->ia6_ndpr = ia0->ia6_ndpr; newia->ia6_ndpr->ndpr_refcnt++; + + /* + * A newly added address might affect the status of other addresses. + * XXX: when the temporary address is generated with a new public + * address, the onlink check is redundant. However, it would be safe + * to do the check explicitly everywhere a new address is generated, + * and, in fact, we surely need the check when we create a new + * temporary address due to deprecation of an old temporary address. + */ + pfxlist_onlink_check(); return(0); } To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-current" in the body of the message