Question about rtadvd

Hiroki Sato hrs at FreeBSD.org
Thu Apr 2 22:53:05 UTC 2020


John-Mark Gurney <jmg at funkthat.com> wrote
  in <20200402211304.GZ4213 at 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
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 342 bytes
Desc: not available
URL: <http://lists.freebsd.org/pipermail/freebsd-net/attachments/20200403/e67e196e/attachment.sig>


More information about the freebsd-net mailing list