aboutsummaryrefslogtreecommitdiff
path: root/usr.sbin/rtadvd/dump.c
Commit message (Collapse)AuthorAgeFilesLines
* - Improve interface list handling. The rtadvd(8) now supports dynamically-Hiroki Sato2011-07-171-321/+0
| | | | | | | | | | | | | | | | | | | | | | added/removed interfaces in a more consistent manner and reloading the configuration file. - Implement burst unsolicited RA sending into the internal RA timer framework when AdvSendAdvertisements and/or configuration entries are changed as described in RFC 4861 6.2.4. This fixes issues that make termination of the rtadvd(8) daemon take very long time. An interface now has three internal states, UNCONFIGURED, TRANSITIVE, or CONFIGURED, and the burst unsolicited sending happens in TRANSITIVE. See rtadvd.h for the details. - rtadvd(8) now accepts non-existent interfaces as well in the command line. - Add control socket support and rtadvctl(8) utility to show the RA information in rtadvd(8). Dumping by SIGUSR1 has been removed in favor of it. Notes: svn path=/head/; revision=224144
* Fix build on 64-bit arch.Hiroki Sato2011-06-061-1/+1
| | | | | | | | Submitted by: dim Pointy hat to: hrs Notes: svn path=/head/; revision=222743
* - Implement RDNSS and DNSSL options (RFC 6106, IPv6 Router AdvertisementHiroki Sato2011-06-061-74/+143
| | | | | | | | | | | | | | | | | | | | | | | | Options for DNS Configuration) into rtadvd(8) and rtsold(8). DNS information received by rtsold(8) will go to resolv.conf(5) by resolvconf(8) script. This is based on work by J.R. Oldroyd (kern/156259) but revised extensively[1]. - rtadvd(8) now supports "noifprefix" to disable gathering on-link prefixes from interfaces when no "addr" is specified[2]. An entry in rtadvd.conf with "noifprefix" + no "addr" generates an RA message with no prefix information option. - rtadvd(8) now supports RTM_IFANNOUNCE message to fix crashes when an interface is added or removed. - Correct bogus ND_OPT_ROUTE_INFO value to one in RFC 4191. Reviewed by: bz[1] PR: kern/156259 [1] PR: bin/152458 [2] Notes: svn path=/head/; revision=222732
* Cleanup of userland __P useKevin Lo2007-11-071-2/+2
| | | | Notes: svn path=/head/; revision=173412
* - supported a string notation for xxflags.Hajimu UMEMOTO2003-08-151-1/+5
| | | | | | | | | | | | | | | | | | | | | | | | | - deprecate routes#N, as it is hard to keep consistency with rtprefixN. accept any number of "rtprefix", "rtrefix0", ..., "rtprefix99". - deprecate "addrs#N", as it is difficult for users to keep consistency with "addrN". accept 100 prefix info in maximum - like "addr", "addr0" ... "addr99". WARNS=2 clean on netbsd. old configuration file should work just fine. behavior change: previously, we rejected "addrN" if there's "addr", and we rejected "addr" if there is "addrN". now we accept both without problem. - when an advertised prefix configured from the kernel has been added or invalidated, notice the change in a short delay. - when invalidating a prefix, do not bark even if there is inconsistency about prefix lifetimes. - wrap more specific route info code into ROUTEINFO. Obtained from: KAME MFC after: 1 week Notes: svn path=/head/; revision=118968
* dump the content of route information optionsHajimu UMEMOTO2003-08-151-1/+19
| | | | | | | | Obtained from: KAME MFC after: 1 week Notes: svn path=/head/; revision=118958
* logged the fact to dump the status.Hajimu UMEMOTO2003-08-151-0/+3
| | | | | | | | Obtained from: KAME MFC after: 1 week Notes: svn path=/head/; revision=118957
* reduce #ifdef.Hajimu UMEMOTO2003-08-111-10/+2
| | | | | | | MFC after: 1 week Notes: svn path=/head/; revision=118787
* use strlcpy() and snprintf().Hajimu UMEMOTO2003-08-111-4/+4
| | | | | | | | Obtained from: KAME MFC after: 1 week Notes: svn path=/head/; revision=118786
* Drop MIP6 code. We don't support MIP6 yet.Hajimu UMEMOTO2003-08-081-12/+1
| | | | | | | MFC after: 1 week Notes: svn path=/head/; revision=118672
* KNF, correct typos and cleanup spaces.Hajimu UMEMOTO2003-08-081-26/+21
| | | | | | | | Obtained from: KAME MFC after: 1 week Notes: svn path=/head/; revision=118664
* __FUNCTION__ --> __func__Hajimu UMEMOTO2003-08-081-1/+1
| | | | | | | | Obtained from: KAME MFC after: 1 week Notes: svn path=/head/; revision=118660
* Changed the behavior when an interface-direct prefix being advertisedHajimu UMEMOTO2002-06-131-0/+9
| | | | | | | | | | | | | | was removed from the kernel; Advertise the prefix with zero lifetimes rather than to remove the prefix from the prefix list to be advertised. This will help renumber a receiving host by deprecating the address derived from the old prefix. Obtained from: KAME MFC after: 2 weeks Notes: svn path=/head/; revision=98172
* Sync with recent KAME.Hajimu UMEMOTO2001-06-111-7/+35
| | | | | | | | | | | | | | | | | | | | | This work was based on kame-20010528-freebsd43-snap.tgz and some critical problem after the snap was out were fixed. There are many many changes since last KAME merge. TODO: - The definitions of SADB_* in sys/net/pfkeyv2.h are still different from RFC2407/IANA assignment because of binary compatibility issue. It should be fixed under 5-CURRENT. - ip6po_m member of struct ip6_pktopts is no longer used. But, it is still there because of binary compatibility issue. It should be removed under 5-CURRENT. Reviewed by: itojun Obtained from: KAME MFC after: 3 weeks Notes: svn path=/head/; revision=78064
* make it easier to handle $FreeBSD$ tags (amount of diff matters).Jun-ichiro itojun Hagino2001-01-211-2/+1
| | | | Notes: svn path=/head/; revision=71333
* Add two files missing from the KAME syncKris Kennaway2000-07-061-0/+215
Submitted by: Eric Sabban <esabban@pacbell.net> Notes: svn path=/head/; revision=62669