From owner-freebsd-net@FreeBSD.ORG Sun Jun 28 00:08:51 2009 Return-Path: Delivered-To: net@FreeBSD.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id C2193106564A; Sun, 28 Jun 2009 00:08:51 +0000 (UTC) (envelope-from hrs@FreeBSD.org) Received: from mail.allbsd.org (unknown [IPv6:2001:2f0:104:e002::2]) by mx1.freebsd.org (Postfix) with ESMTP id 458C08FC0A; Sun, 28 Jun 2009 00:08:51 +0000 (UTC) (envelope-from hrs@FreeBSD.org) Received: from delta.allbsd.org (p3185-ipbf514funabasi.chiba.ocn.ne.jp [123.225.96.185]) (authenticated bits=128) by mail.allbsd.org (8.14.3/8.14.3) with ESMTP id n5S08c7i094520; Sun, 28 Jun 2009 09:08:49 +0900 (JST) (envelope-from hrs@FreeBSD.org) Received: from localhost (alph.allbsd.org [192.168.0.10]) (authenticated bits=0) by delta.allbsd.org (8.13.4/8.13.4) with ESMTP id n5S08UOL009181; Sun, 28 Jun 2009 09:08:32 +0900 (JST) (envelope-from hrs@FreeBSD.org) Date: Sun, 28 Jun 2009 08:35:34 +0900 (JST) Message-Id: <20090628.083534.177750036.hrs@allbsd.org> To: rpaulo@FreeBSD.org From: Hiroki Sato In-Reply-To: References: <20090626.170006.244306978.hrs@allbsd.org> X-PGPkey-fingerprint: BDB3 443F A5DD B3D0 A530 FFD7 4F2C D3D8 2793 CF2D X-Mailer: Mew version 6.2.51 on Emacs 22.3 / Mule 5.0 (SAKAKI) Mime-Version: 1.0 Content-Type: Multipart/Signed; protocol="application/pgp-signature"; micalg=pgp-sha1; boundary="--Security_Multipart(Sun_Jun_28_08_35_34_2009_561)--" Content-Transfer-Encoding: 7bit X-Virus-Scanned: ClamAV version 0.93.3, clamav-milter version 0.93.3 on gatekeeper.allbsd.org X-Virus-Status: Clean X-Greylist: Sender succeeded SMTP AUTH, not delayed by milter-greylist-4.0 (mail.allbsd.org [133.31.130.32]); Sun, 28 Jun 2009 09:08:49 +0900 (JST) Cc: ume@FreeBSD.org, hrs@FreeBSD.org, bz@FreeBSD.org, jinmei@isc.org, rwatson@FreeBSD.org, net@FreeBSD.org Subject: Re: RFC: convert net.inet6.ip6.{accept_rtadv,auto_linklocal} to per-interface flags X-BeenThere: freebsd-net@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Networking and TCP/IP with FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 28 Jun 2009 00:08:52 -0000 ----Security_Multipart(Sun_Jun_28_08_35_34_2009_561)-- Content-Type: Text/Plain; charset=us-ascii Content-Transfer-Encoding: 7bit Rui Paulo wrote in : rp> On 26 Jun 2009, at 09:00, Hiroki Sato wrote: rp> > So, I want to add the following changes: rp> > rp> > 1. Use per-interface ND6 flag "ifdisabled" as a flag for if it is rp> > IPv6-enabled or not. Set it by default. rp> rp> This looks okay, but "ifdisabled" seems to mean "disable the rp> interface" instead of the actual meaning: "disable ipv6 neighbor rp> discovery / disable ipv6 link local". Bikeshed apart, what about: rp> # ifconfig fxp0 -nd6 (to disable ND6) rp> # ifconfig fxp0 nd6 (to enable it) This is actually "ifconfig fxp0 *inet6* ifdisabled". The reason why I used this name is ndp(8) uses "disabled" and the flag constant is named as ND6_IFF_IFDISABLED. The "ifconfig fxp0 inet6 -nd6" is technically correct, but it sounds rather cryptic from viewpoint that we use it as a flag to disable IPv6. It means disabling NDP as well as marking all of the AF_INET6 addresses on that interface as IN6_IFF_TENTATIVE. Hm, actually I do not stick to the name "ifdisabled". Is "nd6" better? -- Hiroki ----Security_Multipart(Sun_Jun_28_08_35_34_2009_561)-- Content-Type: application/pgp-signature Content-Transfer-Encoding: 7bit -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.9 (FreeBSD) iEYEABECAAYFAkpGrMYACgkQTyzT2CeTzy1XAQCffG6CpCWqMnRXoN0qkvMzeAOL QvAAoJi5h94Zwj/58EdZs/27NxwR435R =riKr -----END PGP SIGNATURE----- ----Security_Multipart(Sun_Jun_28_08_35_34_2009_561)----