Home | History | Annotate | Download | only in rtadvd
History log of /src/usr.sbin/rtadvd/if.c
RevisionDateAuthorComments
 1.29  23-Mar-2021  christos print function names as %s: not <%s> everywhere for consistency.
 1.28  23-Mar-2021  christos interface indexes are unsigned
 1.27  22-Mar-2021  christos - remove extra \n from stderr logging
- add string message types
- sprinkle const
 1.26  20-Apr-2018  roy White space police.
 1.25  06-Nov-2017  christos branches: 1.25.2;
Change the meaning of the 'D' flag to print errors to stderr instead of
syslog(3) and exit if poll(2) fails (intended to be used with unit-tests).
 1.24  11-Nov-2015  ozaki-r branches: 1.24.8;
Introduce rump.rtadvd

It is used to write ATF tests for RA.

From s-yamaguchi@IIJ.
 1.23  05-Jun-2015  roy Use %m in syslog(3) instead of %s strerror(3).
 1.22  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.21  12-Dec-2011  roy branches: 1.21.6;
Use RT_ADVANCE when available.
Fixes PR/44838
 1.20  11-Dec-2011  christos - sprinkle const
- malloc + memset -> calloc
- free + malloc -> realloc
- syslog("%s", strerror(errno)) -> syslog("%m")
 1.19  10-Dec-2011  roy 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.18  05-Mar-2006  rpaulo branches: 1.18.16; 1.18.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.17  23-Sep-2003  itojun no need for "sdl = NULL" initialization on decl. cedric@openbsd
 1.16  23-Sep-2003  itojun simplify by using getifaddrs
 1.15  20-Sep-2003  itojun plug memory leak. from kame
 1.14  10-Jul-2002  itojun byebye __FUNCTIION__. sync w/kame
 1.13  29-May-2002  itojun KNF, strlcpy, memory leak fix, random other cleanups. sync w/kame
 1.12  21-May-2002  itojun correct bitmask computation. more KNF. sync w/kame
 1.11  21-May-2002  itojun KNF. a memory leak fix. sync w/kame
 1.10  21-Jan-2001  itojun sync with latest kame.
- make icmp6.h spec conformant to 2292bis-02, regarding to router reumbering
flag bit.
- latest rtadvd.
 1.9  16-Jan-2001  cgd comment or delete text after CPP directives.
 1.8  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.7  31-Aug-2000  itojun repair interface MTU grabbing. real cause of PR 10923.
from koji@jp.above.net. sync with kame.
 1.6  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.5  23-May-2000  itojun branches: 1.5.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.4  28-Feb-2000  itojun don't assume CMSG_xx are constant. (sync with latest kame)
 1.3  08-Dec-1999  itojun sync with more recent KAME.
 1.2  06-Jul-1999  itojun branches: 1.2.4;
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.2.4.1  27-Dec-1999  wrstuden Pull up to last week's -current.
 1.5.4.2  01-Sep-2000  itojun pullup 1.6 -> 1.7 (approved by releng-1-5)

> repair interface MTU grabbing. real cause of PR 10923.
> from koji@jp.above.net. sync with kame.
 1.5.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.18.42.2  16-Jan-2013  yamt sync with (a bit old) head
 1.18.42.1  17-Apr-2012  yamt sync with head
 1.18.16.1  22-Feb-2008  keiichi imported Mobile IPv6 code developed by the SHISA project
(http://www.mobileip.jp/).
 1.21.6.1  25-Feb-2013  tls resync with head
 1.24.8.1  21-Nov-2017  martin Pull up following revision(s) (requested by ozaki-r in ticket #358):
usr.sbin/rtadvd/rtadvd.c: revision 1.54-1.58
usr.sbin/rtadvd/config.c: revision 1.37
usr.sbin/rtadvd/if.c: revision 1.25
usr.sbin/rtadvd/dump.c: revision 1.15
usr.sbin/rtadvd/rrenum.c: revision 1.20
usr.sbin/rtadvd/logit.h: revision 1.1
usr.sbin/rtadvd/rtadvd.8: revision 1.26
tests/net/ndp/t_ra.sh: revision 1.30
usr.sbin/rtadvd/timer.c: revision 1.14
tests/net/ndp/t_ra.sh: revision 1.31
usr.sbin/rtadvd/advcap.c: revision 1.17

KNF, fix time printing formats.

Don't start another copy of rtadvd if one is running.

PR/52618: Shinichi Doyashiki: Don't exit if adding interface to multicast
group fails. This happens with empty vlan interfaces
- make syscalls checks against -1
- fix errors to print %s: instead of <%s>
XXX: if_vlan is the only pseudo interface in net/ that returns such an
error..

Kill rtadvd surely even if the tests fail in the middle
It may help PR bin/52701.

Change the meaning of the D flag to print errors to stderr instead of
syslog(3) and exit if poll(2) fails (intended to be used with unit-tests).

Mark expandm as preserving format strings.

Let rtadvd not use syslog for logging
Thanks to christos@ now rtadvd can log via stderr instead of syslog
by -D option.
Address PR bin/52701
 1.25.2.1  22-Apr-2018  pgoyette Sync with HEAD

RSS XML Feed