Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 18 Oct 2006 13:39:04 -0700
From:      Jeremy Chadwick <freebsd@jdc.parodius.com>
To:        Dmitry Pryanishnikov <dmitry@atlantis.dp.ua>
Cc:        "\[LoN\]Kamikaze" <LoN_Kamikaze@gmx.de>, freebsd-stable@freebsd.org
Subject:   Re: 6.2-PRE /boot/loader
Message-ID:  <20061018203904.GA47563@icarus.home.lan>
In-Reply-To: <20061018231326.G8154@atlantis.atlantis.dp.ua>
References:  <20061003164750.GA844@seth.augenstein.ten> <20061018152906.GA929@seth.augenstein.ten> <45365B73.5050409@gmx.de> <20061018231326.G8154@atlantis.atlantis.dp.ua>

next in thread | previous in thread | raw e-mail | index | archive | help
On Wed, Oct 18, 2006 at 11:20:37PM +0300, Dmitry Pryanishnikov wrote:
>   No, it isn't. It's new and shiny (yet harmless) bug, which made it's way 
> into the RELENG_6 with the following commit:
> 
> ume         2006-10-16 15:09:24 UTC
> 
>   FreeBSD src repository
> 
>   Modified files:        (Branch: RELENG_6)
>     etc/rc.d             auto_linklocal
>     sys/netinet6         in6_ifattach.c
>   Log:
>   MFC: Revert the default value of net.inet6.ip6.auto_linklocal to 1.
>   If ipv6_enable is not set to "YES", net.inet6.ip6.auto_linklocal
>   is turned to 0 at boot.
> 
> and this is the result of the /etc/rc.d/auto_linklocal execution on
> IPv6-less kernel.

The rc.d/auto_linklocal script does this:

auto_linklocal_start()
{
	if ! checkyesno ipv6_enable; then
		${SYSCTL_W} net.inet6.ip6.auto_linklocal=0
	fi
}

The condition for this code getting called is weird.  It would
require ipv6_enable="no" (which is default)... yet it goes and
tinkers with ipv6 sysctls anyways.  I assume that the idea behind
ipv6_enable is that it's ONLY set to "yes" by administrators who
want to do IPv6-related things.  (My point: It's bad to try and
set IPv6 sysctl when an administrator doesn't have ipv6_enable="yes")

This feature probably needs its own rc.conf option.  Maybe this
is what the author had intended?

-- 
| Jeremy Chadwick                                 jdc at parodius.com |
| Parodius Networking                        http://www.parodius.com/ |
| UNIX Systems Administrator                   Mountain View, CA, USA |
| Making life hard for others since 1977.               PGP: 4BD6C0CB |




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20061018203904.GA47563>