summaryrefslogtreecommitdiffstats
path: root/usr.sbin/rtsold/rtsold.c
Commit message (Collapse)AuthorAgeFilesLines
* - Remove struct ifinfo *iflist. It is no longer used.hrs2013-08-171-1/+0
| | | | - Suppress warnings about increase of alignment requirement.
* Fix build on arm and mips.hrs2013-08-061-4/+2
|
* - Use time_uptime instead of time_second in data structures forhrs2013-08-051-23/+29
| | | | | | | | | PF_INET6 in kernel. This fixes various malfunction when the wall time clock is changed. Bump __FreeBSD_version to 1000041. - Use clock_gettime(CLOCK_MONOTONIC_FAST) in userland utilities. MFC after: 1 month
* Fix warning when compiling with gcc46:eadler2012-01-201-2/+1
| | | | | | | error: variable 'target' set but not used Approved by: dim, cperciva (mentor, blanket for pre-mentorship already-approved commits) MFC after: 3 days
* - Add ":origin" label to the interface id for resolvconf(8). (r223149)hrs2011-09-121-6/+43
| | | | | | | | | | | | - Add -u option to enable adding :[RA-source-address] to the interface id. (r223149) - s/INET6_ADDRSTRLEN/sizeof(ntopbuf)/ (r223149) - Fix a bug that can prevent -D from being overridden by -d. (r223149) - /-P pidfile/-p pidfile/ for consistency with rtadvd(8). (r223149) - Fix -F flag handling to support receiving RAs even when ip6.forwarding=1. (r225150) Approved by: re (kib)
* - Accumulate RA options instead of replacing old ones when a new RA arrived.hrs2011-06-081-33/+59
| | | | | | | | | | | | | | | | RFC 4861 6.3.4 clearly defines handling multiple RAs in this way. - RDNSS/DNSSL options from multiple RAs on a single link will be gathered and sent to resolvconf(8). - Call "resolvconf -d" only after at least one RDNSS or DNSSL option is received and then all of them are expired. - The rtsold.dump output now supports displaying a list of the RA options. - Use more human-readable expression for logging values of struct timeval. Discussed with: ume
* - Disable "resolvconf -d" temporarily to avoid extra invocations of the scripthrs2011-06-081-2/+5
| | | | | | | under a certain condition. - Fix argv handling. Spotted by: ume
* - Implement RDNSS and DNSSL options (RFC 6106, IPv6 Router Advertisementhrs2011-06-061-182/+214
| | | | | | | | | | | | | | | | | | | | | 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]
* rtsol(8)/rtsold(8): make WARNS=3 cleanuqs2010-02-271-5/+6
| | | | | | It is actually WARNS=6 clean for non-strict alignment archs. Approved by: ed (co-mentor)
* Exclude the interfaces which IPv6 and/or accepting RA is disabledume2010-02-021-1/+31
| | | | | | from the auto probed interface list. MFC after: 1 week
* Make -a option actually work.ume2010-02-021-1/+0
| | | | MFC after: 1 week
* Add support for ND6_IFF_IFDISABLED and ND6_IFF_ACCEPT_RTADV tohrs2009-09-121-5/+1
| | | | | | the -F flag. MFC after: 3 days
* Change arc4random to arc4random_uniform since modulo is not power of 2,ache2008-07-261-1/+1
| | | | | | as OpenBSD does. Obtained from: OpenBSD
* Cleanup of userland __P usekevlo2007-11-071-6/+6
|
* an English grammar fixsuz2005-06-091-1/+1
| | | | | Reported by: ru MFC after: 1 day
* fixed typosuz2005-06-081-3/+3
| | | | | Obtained from: KAME MFC after: 1 day
* -DSMALL will remove the need of dump.c (for rtsol)ume2004-01-141-0/+14
| | | | Obtained from: KAME
* add -F flag, which configures sysctl(8) setting by rtsoldume2004-01-141-12/+21
| | | | | | itself (rather than warn about the current setting). Obtained from: KAME
* ansify.ume2004-01-141-8/+5
| | | | Obtained from: KAME
* use timeradd/sub/cmp.ume2004-01-141-58/+7
| | | | Obtained from: KAME
* - improved the -a option. it can probe a interface automatically whenume2003-08-171-49/+81
| | | | | | | | | | | the interface wake up. it can be started anytime even when there is no network interface on the list of intarfaces in the kernel. - get a correct link ID for each interface at initialization (using scope libraries if HAVE_SCOPELIB is defined). - fill in sin6_scope_id correctly before sendmsg(). Obtained from: KAME MFC after: 1 week
* support poll(2).ume2003-08-141-0/+40
| | | | | Obtained from: KAME MFC after: 1 week
* daemon() has to be called prior to file descriptor setupsume2003-08-141-8/+16
| | | | | | | (otherwise file descriptors could be closed mistakenly) Obtained from: KAME MFC after: 1 week
* signal handler must take "int" arg.ume2003-08-141-7/+5
| | | | | Obtained from: KAME MFC after: 1 week
* avoid fd_set overrun.ume2003-08-141-10/+24
| | | | | Obtained from: KAME MFC after: 1 week
* use strlcpy() and snprintf().ume2003-08-111-1/+1
| | | | | Obtained from: KAME MFC after: 1 week
* KNF, correct typos and cleanup spaces.ume2003-08-081-67/+63
| | | | | Obtained from: KAME MFC after: 1 week
* drop the code for the environment where getifaddrs(3) is notume2003-08-081-4/+0
| | | | | | | supported. Obtained from: KAME MFC after: 1 week
* Process the "O bit."ume2003-08-081-2/+18
| | | | | | | | | | If the value of OtherConfigFlag changes from FALSE to TRUE, the host should invoke the stateful autoconfiguration protocol, requesting information. [RFC 2462 Section 5.5.3] Obtained from: KAME MFC after: 1 week
* __FUNCTION__ --> __func__ume2003-08-081-15/+15
| | | | | Obtained from: KAME MFC after: 1 week
* typo. netbsd PR 16055ume2002-03-291-1/+1
| | | | | Obtained from: KAME MFC after: 1 week
* Sync with recent KAME.ume2001-06-111-6/+27
| | | | | | | | | | | | | | | | | | 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
* Sync with KAME. Format string auditing, and add -a flag to autoprobekris2000-10-061-36/+142
| | | | | | interfaces. Obtained from: KAME
* Sync with latest KAME.kris2000-07-051-23/+66
| | | | Obtained from: KAME
* Getaddrinfo(), getnameinfo(), and etc support in libc/net.shin1999-12-281-0/+622
Several udp and raw apps IPv6 support. Reviewed by: freebsd-arch, cvs-committers Obtained from: KAME project
OpenPOWER on IntegriCloud