Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 28 Jun 2009 01:11:24 +0100
From:      Rui Paulo <rpaulo@FreeBSD.org>
To:        Hiroki Sato <hrs@FreeBSD.org>
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
Message-ID:  <A7B865AB-1829-4B03-8956-FEA39E0C0A45@FreeBSD.org>
In-Reply-To: <20090628.083534.177750036.hrs@allbsd.org>
References:  <20090626.170006.244306978.hrs@allbsd.org> <A80E65C6-F7BE-47A9-91F7-42F2E4D33ABD@freebsd.org> <20090628.083534.177750036.hrs@allbsd.org>

next in thread | previous in thread | raw e-mail | index | archive | help

On 28 Jun 2009, at 00:35, Hiroki Sato wrote:

> Rui Paulo <rpaulo@FreeBSD.org> wrote
>  in <A80E65C6-F7BE-47A9-91F7-42F2E4D33ABD@freebsd.org>:
>
> 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




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?A7B865AB-1829-4B03-8956-FEA39E0C0A45>