Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 25 Oct 2012 10:18:27 -0700
From:      Brian Somers <brian@FreeBSD.org>
To:        Hiroki Sato <hrs@FreeBSD.org>
Cc:        svn-src-head@FreeBSD.org, dim@FreeBSD.org, svn-src-all@FreeBSD.org, src-committers@FreeBSD.org, brian@FreeBSD.org
Subject:   Re: svn commit: r242074 - head/etc/rc.d
Message-ID:  <20121025171827.GA59432@thong.lan.Awfulhak.org>
In-Reply-To: <20121025.210007.176692667026768547.hrs@allbsd.org>
References:  <201210250837.q9P8b9ur012402@svn.freebsd.org> <50892486.9030201@FreeBSD.org> <20121025.210007.176692667026768547.hrs@allbsd.org>

next in thread | previous in thread | raw e-mail | index | archive | help
On Thu, Oct 25, 2012 at 09:00:07PM +0900, Hiroki Sato wrote:
> Dimitry Andric <dim@FreeBSD.org> wrote
>   in <50892486.9030201@FreeBSD.org>:
> 
> di> On 2012-10-25 10:37, Brian Somers wrote:
> di> ...
> di> > URL: http://svn.freebsd.org/changeset/base/242074
> di> >
> di> > Log:
> di> >    Enable "accept_rtadvd" on interfaces running rtadvd.
> di> ...
> di> > +	for iface in ${command_args}; do
> di> > +		ifconfig ${iface} inet6 -accept_rtadv
> di> > +	done
> di>
> di> The commit message says it enables accept_rtadv, the code actually
> di> disables it.  Which is correct?  I assume the latter?

Yes, the message should have read "Enable sending router advertisments".
Sorry, the exact opposite came out - the naming does my head in :-/

> 
>  Enabling accept_rtadv should prevent rtadvd from sending RAs on the
>  interface, so disabling it is a necessary step if one wants to send
>  RAs.
> 
>  However, accept_rtadv is off by default in the current rc.d
>  framework.  Why forcibly disabling it is needed?

After upgrading from 8-STABLE to 9-STABLE on Monday, IPv6 routing
advertisments were broken.  Disabling accept (enabling send) appeared
to be necessary to get things up and running.

As you say, net.inet6.ip6.accept_rtadv is set to zero (off, meaning
that we *can* send advertisments), so I don't now what the issue
is.  Irrespective of this, I think it's useful to explicitly set
the interface to be able to send advertisments when running rtadvd
- just in case the sysctl is set to 1 elsewhere.

Doing an "ifconfig <interface> inet6 accept_rtadv" after boot doesn't
seem to disable sending advertisments, so I'm finding it difficult
to test this remotely...  testing is awkward when I'm not at home
as this machine is also suffering from the "can't reboot" issue!!

I'll look into why the sysctl doesn't seem to behave as expected
when I get home this evening.

-- 
Brian Somers                                          <brian@Awfulhak.org>
Don't _EVER_ lose your sense of humour !               <brian@FreeBSD.org>



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