From owner-freebsd-net@FreeBSD.ORG Sun Jun 28 00:11:29 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 31CE910656E1; Sun, 28 Jun 2009 00:11:29 +0000 (UTC) (envelope-from rpaulo@gmail.com) Received: from mail-ew0-f213.google.com (mail-ew0-f213.google.com [209.85.219.213]) by mx1.freebsd.org (Postfix) with ESMTP id 08D2B8FC19; Sun, 28 Jun 2009 00:11:27 +0000 (UTC) (envelope-from rpaulo@gmail.com) Received: by ewy9 with SMTP id 9so2711629ewy.43 for ; Sat, 27 Jun 2009 17:11:27 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:sender:cc:message-id:from:to :in-reply-to:content-type:content-transfer-encoding:mime-version :subject:date:references:x-mailer; bh=fiLnpg5ZfwuRbuFZJE+P7QGH1x6LEVq0MW0PmALiha4=; b=Sqh6odoZ+I/53PuiTIU2a80IarxFTlBApu2bKgs65Dm4tAS/vra+y2aCnIg2vYfDhA TASuT7Ny4Uavm3aLeqSO+5vFyjqzmsOMK6r/t8f0saHvwFOB02fD1W5Cb3rDubLP3JUy wuyW2Jg7MK4deoRUPO127531JAiD7XlHCNzvo= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=sender:cc:message-id:from:to:in-reply-to:content-type :content-transfer-encoding:mime-version:subject:date:references :x-mailer; b=dRkCOqsZl0hp4N5NDfU0fzDBAv4y3Ty3OXvBFbnlCprcG7gdEw/IUsxudKu3WAxJWF 4duxPfZKpAK2JyuYNyWUkSQVrADoeIxomqDqaZFRvNaG6jeM0goPUDxRO1OXZmoIYuPZ BcKeA6viB/VE+UU+D/StpQlGBws9gHc5jIsKU= Received: by 10.210.34.2 with SMTP id h2mr18324ebh.23.1246147887145; Sat, 27 Jun 2009 17:11:27 -0700 (PDT) Received: from omega.lan (bl5-224-235.dsl.telepac.pt [82.154.224.235]) by mx.google.com with ESMTPS id 5sm3358883eyh.0.2009.06.27.17.11.25 (version=TLSv1/SSLv3 cipher=RC4-MD5); Sat, 27 Jun 2009 17:11:26 -0700 (PDT) Sender: Rui Paulo Message-Id: From: Rui Paulo To: Hiroki Sato In-Reply-To: <20090628.083534.177750036.hrs@allbsd.org> Content-Type: text/plain; charset=US-ASCII; format=flowed; delsp=yes Content-Transfer-Encoding: 7bit Mime-Version: 1.0 (Apple Message framework v935.3) Date: Sun, 28 Jun 2009 01:11:24 +0100 References: <20090626.170006.244306978.hrs@allbsd.org> <20090628.083534.177750036.hrs@allbsd.org> X-Mailer: Apple Mail (2.935.3) Cc: jinmei@isc.org, bz@FreeBSD.org, rwatson@FreeBSD.org, ume@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:11:29 -0000 On 28 Jun 2009, at 00:35, Hiroki Sato wrote: > 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. Oh, I didn't catch that. Makes more sense. > 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? Well, since I now understand it includes inet6 as part of the command, I don't care whichever name gets selected. Pick the one you prefer :-) -- Rui Paulo