History log of /freebsd-10.1-release/usr.sbin/rtsold/rtsold.c
Revision Date Author Comments
(<<< Hide modified files)
(Show modified files >>>)
# 272461 02-Oct-2014 gjb

Copy stable/10@r272459 to releng/10.1 as part of
the 10.1-RELEASE process.

Approved by: re (implicit)
Sponsored by: The FreeBSD Foundation

# 256281 10-Oct-2013 gjb

Copy head (r256279) to stable/10 as part of the 10.0-RELEASE cycle.

Approved by: re (implicit)
Sponsored by: The FreeBSD Foundation


# 254462 17-Aug-2013 hrs

- Remove struct ifinfo *iflist. It is no longer used.
- Suppress warnings about increase of alignment requirement.


# 253995 06-Aug-2013 hrs

Fix build on arm and mips.


# 253970 05-Aug-2013 hrs

- Use time_uptime instead of time_second in data structures for
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


# 230357 19-Jan-2012 eadler

Fix warning when compiling with gcc46:
error: variable 'target' set but not used

Approved by: dim, cperciva (mentor, blanket for pre-mentorship already-approved commits)
MFC after: 3 days


# 225520 12-Sep-2011 hrs

- Add ":origin" label to the interface id for resolvconf(8). (r223149)
- 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)


# 222861 08-Jun-2011 hrs

- Accumulate RA options instead of replacing old ones when a new RA arrived.
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


# 222848 08-Jun-2011 hrs

- Disable "resolvconf -d" temporarily to avoid extra invocations of the script
under a certain condition.
- Fix argv handling.

Spotted by: ume


# 222732 06-Jun-2011 hrs

- Implement RDNSS and DNSSL options (RFC 6106, IPv6 Router Advertisement
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]


# 204407 27-Feb-2010 uqs

rtsol(8)/rtsold(8): make WARNS=3 clean

It is actually WARNS=6 clean for non-strict alignment archs.

Approved by: ed (co-mentor)


# 203387 02-Feb-2010 ume

Exclude the interfaces which IPv6 and/or accepting RA is disabled
from the auto probed interface list.

MFC after: 1 week


# 203378 02-Feb-2010 ume

Make -a option actually work.

MFC after: 1 week


# 197141 12-Sep-2009 hrs

Add support for ND6_IFF_IFDISABLED and ND6_IFF_ACCEPT_RTADV to
the -F flag.

MFC after: 3 days


# 180824 26-Jul-2008 ache

Change arc4random to arc4random_uniform since modulo is not power of 2,
as OpenBSD does.

Obtained from: OpenBSD


# 173412 07-Nov-2007 kevlo

Cleanup of userland __P use


# 147161 09-Jun-2005 suz

an English grammar fix

Reported by: ru
MFC after: 1 day


# 147150 08-Jun-2005 suz

fixed typo

Obtained from: KAME
MFC after: 1 day


# 124526 14-Jan-2004 ume

-DSMALL will remove the need of dump.c (for rtsol)

Obtained from: KAME


# 124525 14-Jan-2004 ume

add -F flag, which configures sysctl(8) setting by rtsold
itself (rather than warn about the current setting).

Obtained from: KAME


# 124524 14-Jan-2004 ume

ansify.

Obtained from: KAME


# 124523 14-Jan-2004 ume

use timeradd/sub/cmp.

Obtained from: KAME


# 119026 17-Aug-2003 ume

- improved the -a option. it can probe a interface automatically when
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


# 118916 14-Aug-2003 ume

support poll(2).

Obtained from: KAME
MFC after: 1 week


# 118914 14-Aug-2003 ume

daemon() has to be called prior to file descriptor setups
(otherwise file descriptors could be closed mistakenly)

Obtained from: KAME
MFC after: 1 week


# 118910 14-Aug-2003 ume

signal handler must take "int" arg.

Obtained from: KAME
MFC after: 1 week


# 118909 14-Aug-2003 ume

avoid fd_set overrun.

Obtained from: KAME
MFC after: 1 week


# 118786 11-Aug-2003 ume

use strlcpy() and snprintf().

Obtained from: KAME
MFC after: 1 week


# 118664 08-Aug-2003 ume

KNF, correct typos and cleanup spaces.

Obtained from: KAME
MFC after: 1 week


# 118663 08-Aug-2003 ume

drop the code for the environment where getifaddrs(3) is not
supported.

Obtained from: KAME
MFC after: 1 week


# 118661 08-Aug-2003 ume

Process the "O bit."
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


# 118660 08-Aug-2003 ume

__FUNCTION__ --> __func__

Obtained from: KAME
MFC after: 1 week


# 93363 29-Mar-2002 ume

typo. netbsd PR 16055

Obtained from: KAME
MFC after: 1 week


# 78064 11-Jun-2001 ume

Sync with recent KAME.
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


# 66776 06-Oct-2000 kris

Sync with KAME. Format string auditing, and add -a flag to autoprobe
interfaces.

Obtained from: KAME


# 62632 05-Jul-2000 kris

Sync with latest KAME.

Obtained from: KAME


# 55163 28-Dec-1999 shin

Getaddrinfo(), getnameinfo(), and etc support in libc/net.
Several udp and raw apps IPv6 support.

Reviewed by: freebsd-arch, cvs-committers
Obtained from: KAME project