Home | History | Annotate | Download | only in rtadvd
History log of /src/usr.sbin/rtadvd/rtadvd.h
RevisionDateAuthorComments
 1.21  22-Mar-2021  christos - remove extra \n from stderr logging
- add string message types
- sprinkle const
 1.20  11-Nov-2019  roy rtadvd: Add C flag to control the zeroing of the leaving configuration

This is only intended to assist the testing of clients which consume
Router Advertisement messages, such as dhcpcd(8).
 1.19  20-Apr-2018  roy branches: 1.19.2; 1.19.4;
Update values from RFC 8319
 1.18  20-Apr-2018  roy Make the #defines more readable
 1.17  20-Apr-2018  roy Unicast solicited RA's as per RFC 7772.

This is done by having a secondary timer against rainfo so we
can delay unicasting by the required randomised amount of time
without affecting the unsolicited RA timer.
 1.16  20-Apr-2018  roy White space police.
 1.15  27-Feb-2017  ozaki-r branches: 1.15.10;
Fix the default value of rltime

According to rtadvd.conf(5), the default value of rltime is 1800 seconds.

PR bin/51994
 1.14  05-Jun-2015  roy branches: 1.14.2; 1.14.4;
Use clock_gettime(2) instead of gettimeofday(2) so we can use a monotonic
clock rather than the wall clock.
Use timespec rather than timeval structs to make this transition easier.
Kill custom timeval comparison functions in favor of timespeccmp(3).
 1.13  09-Jul-2013  roy branches: 1.13.6; 1.13.8; 1.13.12;
Add _rtadvd user and group.
Add a chroot dir for the _rtadvd user.
Drop privs to the user _rtadvd after acquiring our socket.
When rc.d/rtadvd starts or reloads, the rtadvd config file is copied
into the chroot before starting or reloading rtadvd itself.
Create a symlink from /var/run/rtadvd.dump to the chroot

Inital idea from OpenBSD patch rtadvd.c r1.36
 1.12  13-Dec-2012  roy Remove the iflist array and store ifflags in rainfo.

Add support for SIGHUP to re-read the configuration for each interface.
If an invalid configuration is found, we continue to use the old one;
otherwise we expire the current one and then start advertising the new one.

Specififed interfaces don't have to exist at startup.
If specified interfaces arrive, load their config and start advertising.
If they depart, remove their rainfo structure and continue.

Fixes PR/43881 and PR/47311
 1.11  10-Dec-2011  roy branches: 1.11.2; 1.11.6; 1.11.8; 1.11.10;
Add RDNSS and DNSSL support, RFC6106.
Replace custom lists with TAILQ lists.
Clean up plently of signed vs unsigned warnings and set WARNS=4.

Adapted from FreeBSD.
 1.10  05-Mar-2006  rpaulo branches: 1.10.16; 1.10.42;
NDP-related improvements:
RFC4191
- supports host-side router-preference

RFC3542
- if DAD fails on a interface, disables IPv6 operation on the
interface
- don't advertise MLD report before DAD finishes

Others
- fixes integer overflow for valid and preferred lifetimes
- improves timer granularity for MLD, using callout-timer.
- reflects rtadvd's IPv6 host variable information into kernel
(router only)
- adds a sysctl option to enable/disable pMTUd for multicast
packets
- performs NUD on PPP/GRE interface by default
- Redirect works regardless of ip6_accept_rtadv
- removes RFC1885-related code

From the KAME project via SUZUKI Shinsuke.
Reviewed by core.
 1.9  29-May-2002  itojun KNF, strlcpy, memory leak fix, random other cleanups. sync w/kame
 1.8  21-May-2002  itojun minor sync w/kame (prototype location)
 1.7  21-May-2002  itojun KNF. a memory leak fix. sync w/kame
 1.6  15-Jan-2001  itojun sync with latest kame tree.
- reduce chances for signal handler rae condition
- decrease chances for misconfiguration
- feedbacks from router renumbering protocol bakeoff
 1.5  06-Jul-2000  itojun sync with sys/netinet/icmp6.h change (no bitfield for router renumber).
more logging. improve error handling/garbage collection. sync with kame.
 1.4  23-May-2000  itojun branches: 1.4.4;
sync with latest kame.
- decrease warning level on missing rtadvd.conf (actually, the file
can be omitted)
- strict prototype
- gather stats better, emit stats on SIGUSR1 to /var/run
 1.3  13-Mar-2000  itojun bring in latest kame tree. this fixes unclosed file descdriptor
in router renumbering case.
 1.2  06-Jul-1999  itojun fix for 64bit arch, where sizeof(size_t) != sizeof(int).
add NetBSD RCS ID.
 1.1  02-Jul-1999  itojun rtadvd: advertise IPv6 prefix info via router advertisement.
(to be run on routers)
 1.4.4.1  20-Jul-2000  itojun pullup from main trunc (approved by releng-1-5)
sync with sys/netinet/icmp6.h change (no bitfield for router renumber).
more logging. improve error handling/garbage collection. sync with kame.

1.1 -> 1.2 basesrc/usr.sbin/rtadvd/dump.c
1.5 -> 1.6 basesrc/usr.sbin/rtadvd/if.c
1.3 -> 1.4 basesrc/usr.sbin/rtadvd/if.h \
basesrc/usr.sbin/rtadvd/rtadvd.conf.5 basesrc/usr.sbin/rtadvd/timer.c \
basesrc/usr.sbin/rtadvd/timer.h
1.4 -> 1.5 basesrc/usr.sbin/rtadvd/rrenum.c \
basesrc/usr.sbin/rtadvd/rtadvd.h
1.8 -> 1.9 basesrc/usr.sbin/rtadvd/rtadvd.8
1.9 -> 1.10 basesrc/usr.sbin/rtadvd/rtadvd.c
 1.10.42.3  22-May-2014  yamt sync with head.

for a reference, the tree before this commit was tagged
as yamt-pagecache-tag8.

this commit was splitted into small chunks to avoid
a limitation of cvs. ("Protocol error: too many arguments")
 1.10.42.2  16-Jan-2013  yamt sync with (a bit old) head
 1.10.42.1  17-Apr-2012  yamt sync with head
 1.10.16.1  22-Feb-2008  keiichi imported Mobile IPv6 code developed by the SHISA project
(http://www.mobileip.jp/).
 1.11.10.1  14-Jul-2017  snj Pull up following revision(s) (requested by ozaki-r in ticket #1440):
usr.sbin/rtadvd/rtadvd.h: revision 1.15
usr.sbin/rtadvd/config.c: revision 1.36
Fix the default value of rltime
According to rtadvd.conf(5), the default value of rltime is 1800 seconds.
PR bin/51994
 1.11.8.1  14-Jul-2017  snj Pull up following revision(s) (requested by ozaki-r in ticket #1440):
usr.sbin/rtadvd/rtadvd.h: revision 1.15
usr.sbin/rtadvd/config.c: revision 1.36
Fix the default value of rltime
According to rtadvd.conf(5), the default value of rltime is 1800 seconds.
PR bin/51994
 1.11.6.2  20-Aug-2014  tls Rebase to HEAD as of a few days ago.
 1.11.6.1  25-Feb-2013  tls resync with head
 1.11.2.1  14-Jul-2017  snj Pull up following revision(s) (requested by ozaki-r in ticket #1440):
usr.sbin/rtadvd/rtadvd.h: revision 1.15
usr.sbin/rtadvd/config.c: revision 1.36
Fix the default value of rltime
According to rtadvd.conf(5), the default value of rltime is 1800 seconds.
PR bin/51994
 1.13.12.1  12-May-2017  snj Pull up following revision(s) (requested by ozaki-r in ticket #1373):
usr.sbin/rtadvd/config.c: revision 1.36
usr.sbin/rtadvd/rtadvd.h: revision 1.15
Fix the default value of rltime
According to rtadvd.conf(5), the default value of rltime is 1800 seconds.
PR bin/51994
 1.13.8.1  12-May-2017  snj Pull up following revision(s) (requested by ozaki-r in ticket #1373):
usr.sbin/rtadvd/config.c: revision 1.36
usr.sbin/rtadvd/rtadvd.h: revision 1.15
Fix the default value of rltime
According to rtadvd.conf(5), the default value of rltime is 1800 seconds.
PR bin/51994
 1.13.6.1  12-May-2017  snj Pull up following revision(s) (requested by ozaki-r in ticket #1373):
usr.sbin/rtadvd/config.c: revision 1.36
usr.sbin/rtadvd/rtadvd.h: revision 1.15
Fix the default value of rltime
According to rtadvd.conf(5), the default value of rltime is 1800 seconds.
PR bin/51994
 1.14.4.1  21-Apr-2017  bouyer Sync with HEAD
 1.14.2.1  20-Mar-2017  pgoyette Sync with HEAD
 1.15.10.1  22-Apr-2018  pgoyette Sync with HEAD
 1.19.4.1  11-Nov-2019  martin Pull up following revision(s) (requested by roy in ticket #417):

usr.sbin/rtadvd/rtadvd.c: revision 1.70
usr.sbin/rtadvd/rtadvd.c: revision 1.71
usr.sbin/rtadvd/rtadvd.h: revision 1.20
usr.sbin/rtadvd/config.c: revision 1.42
usr.sbin/rtadvd/config.c: revision 1.43
usr.sbin/rtadvd/rtadvd.8: revision 1.27

rtadvd: Fix reloading configuration killing interface timers

rtadvd: remove support for SIOCSIFINFO_IN6
It's been broken since we enabled dropping privs.
It's also probably the wrong place to do this, and support for
SIOCSIFINFO_IN6 will be in the next dhcpcd import.

rtadvd: Add C flag to control the zeroing of the leaving configuration
This is only intended to assist the testing of clients which consume
Router Advertisement messages, such as dhcpcd(8).
 1.19.2.1  13-Apr-2020  martin Mostly merge changes from HEAD upto 20200411

RSS XML Feed