Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 03 Apr 2020 07:52:32 +0900 (JST)
From:      Hiroki Sato <hrs@FreeBSD.org>
To:        fernando@gont.com.ar, jmg@funkthat.com
Cc:        freebsd-net@freebsd.org
Subject:   Re: Question about rtadvd
Message-ID:  <20200403.075232.465281007725196641.hrs@FreeBSD.org>
In-Reply-To: <20200402211304.GZ4213@funkthat.com>
References:  <6d0ad330-7bb6-2664-f40a-92eb1856b5fe@gont.com.ar> <20200402211304.GZ4213@funkthat.com>

next in thread | previous in thread | raw e-mail | index | archive | help
----Security_Multipart(Fri_Apr__3_07_52_32_2020_475)--
Content-Type: Text/Plain; charset=us-ascii
Content-Transfer-Encoding: 7bit

John-Mark Gurney <jmg@funkthat.com> wrote
  in <20200402211304.GZ4213@funkthat.com>:

jm> Fernando Gont wrote this message on Tue, Mar 31, 2020 at 22:18 -0300:
jm> > Folks,
jm> >
jm> > I'm playing with rtadvd, and I'm curious about a debug message I'm
jm> > getting when specifying Route Information options.
jm> >
jm> > My config file is this:
jm> > ----- cut here ----
jm> > em0:\
jm> >      :addr="fc00:1::":prefixlen=64\
jm> >      :rtprefix="fc00:1::":rtplen=64:rtltime=1000
jm> >
jm> > em1:\
jm> >      :addr="fc00:2::":prefixlen=64\
jm> >      :rtprefix="fc00:2::":rtplen=64
jm> > ---- cut here ----
jm> >
jm> > And when running radvd as:
jm> > /usr/sbin/rtadvd -D -f em0 em1
jm> >
jm> >
jm> > I get the following debug messages:
jm> > ---- cut here ----
jm> > [....]
jm> > rtltime should be specified for interface em0.
jm> > rtadvd[1137]: <sock_mc_join> enter
jm> > rtadvd[1137]: <sock_mc_join> em0: join link-local all-routers MC group
jm> > rtadvd[1137]: <ra_timer_update> RA timer on em0 is set to 16:0
jm> > rtadvd[1137]: <getconfig> ifname=em0 marked as TRANSITIVE (initial burst).
jm> > rtltime should be specified for interface em1.
jm> > [....]
jm> > ---- cut here ----
jm> >
jm> > I'm curious why I get "rtltime should be specified for interface em0."
jm> > since the config for em0 does specify rtltime -- unless I'm missing
jm> > something.
jm>
jm> I only see rtltime on em0, and I don't see a closing colon after
jm> rtltime on em0.  Try adding a terminating colon on em0 and see if
jm> the problem goes away.

 An integer must use "#" like "foo#0" (not "foo=0") in the
 configuration file.  So

      :addr="fc00:1::":prefixlen=64\
      :rtprefix="fc00:1::":rtplen=64:rtltime=1000

 should be

      :addr="fc00:1::":prefixlen#64:\
      :rtprefix="fc00:1::":rtplen#64:rtltime#1000:

-- Hiroki

----Security_Multipart(Fri_Apr__3_07_52_32_2020_475)--
Content-Type: application/pgp-signature
Content-Transfer-Encoding: 7bit

-----BEGIN PGP SIGNATURE-----

iMkEABMKAC4WIQRsDSNTJ8+Ax5Ae/dLbsH3Gbx9zfwUCXoZssBAcaHJzQGZyZWVi
c2Qub3JnAAoJENuwfcZvH3N/LbcCCQHlO+K6UiDxDpaFaiLbPVHwpbMtMxuSPUQN
nHxYp9RsF7EniPgg838pAMN8NgABUKXLLbs93of9Rx+VHLeJeMMhXAIIsyzLrwFv
zIIphO9AlKXsMikXWm7HA3fpk+R3P6X3nCb6Cd8zMrKXuCR1MLOyhqNIBlL03Pmw
TV19YxH2wglIRzQ=
=dpPh
-----END PGP SIGNATURE-----

----Security_Multipart(Fri_Apr__3_07_52_32_2020_475)----



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