summaryrefslogtreecommitdiffstats
path: root/usr.sbin/rtsold
Commit message (Collapse)AuthorAgeFilesLines
* 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
* Spelling fixes for usr.sbin/uqs2011-12-301-1/+1
|
* - Add ":origin" label to the interface id for resolvconf(8). (r223149)hrs2011-09-124-52/+164
| | | | | | | | | | | | - 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-084-142/+285
| | | | | | | | | | | | | | | | 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-082-2/+7
| | | | | | | under a certain condition. - Fix argv handling. Spotted by: ume
* Lower WARNS level to 3 to eliminate alignment warnings related tomarcel2011-06-071-0/+1
| | | | casting inherent in CMSG_DATA().
* Remove redundant assignments to WARNS.ed2011-06-061-1/+0
| | | | For these directories, WARNS is already implied to be 6.
* - Implement RDNSS and DNSSL options (RFC 6106, IPv6 Router Advertisementhrs2011-06-069-319/+777
| | | | | | | | | | | | | | | | | | | | | 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]
* mdoc: move remaining sections into consistent orderuqs2010-05-131-3/+3
| | | | | | | This pertains mostly to FILES, HISTORY, EXIT STATUS and AUTHORS sections. Found by: mdocml lint run Reviewed by: ru
* rtsol(8)/rtsold(8): make WARNS=3 cleanuqs2010-02-277-24/+25
| | | | | | 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
* Test index value is within the range before using it to referencedelphij2010-01-041-1/+1
| | | | | | | | array member. PR: bin/141838 Submitted by: Henning Petersen <henning.petersen@t-online.de> MFC after: 2 weeks
* The last big commit: let usr.sbin/ use WARNS=6 by default.ed2010-01-021-0/+2
|
* Add support for ND6_IFF_IFDISABLED and ND6_IFF_ACCEPT_RTADV tohrs2009-09-124-7/+60
| | | | | | the -F flag. MFC after: 3 days
* - rename the RETURN VALUES section to EXIT STATUS [1]danger2009-01-071-4/+2
| | | | | | | | - convert to .Ex macro - not bumping a date as this is not a real content change Approved by: ru 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-077-37/+37
|
* Improve wording for -f and -F.dd2006-08-141-12/+11
|
* These IPv6-only tools have no explicit dependency on the INET6 macro.yar2006-07-271-1/+1
| | | | Tested with: cmp(1)
* fixed a potential memory leaksuz2006-03-241-1/+3
| | | | | Obtained from: KAME MFC after: 1 day
* 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
* Fixed the misplaced $FreeBSD$.ru2005-02-091-1/+1
|
* Mechanically kill hard sentence breaks.ru2004-07-021-1/+2
|
* Fixed a warning.ru2004-03-171-1/+1
|
* -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-144-15/+53
| | | | | | itself (rather than warn about the current setting). Obtained from: KAME
* ansify.ume2004-01-146-31/+20
| | | | Obtained from: KAME
* use timeradd/sub/cmp.ume2004-01-141-58/+7
| | | | Obtained from: KAME
* backout 1.11. ifname in struct ifreq should be copyed by strncpy.ume2003-08-171-4/+4
| | | | Pointed out by: itojun
* - improved the -a option. it can probe a interface automatically whenume2003-08-175-94/+134
| | | | | | | | | | | 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
* use strlcpy().ume2003-08-161-4/+4
| | | | | Pointed out by: Pawel Jakub Dawidek <nick@garage.freebsd.pl> MFC after: 1 week
* - added the case of 802.11 to check link status.ume2003-08-161-5/+5
| | | | | | | | - use strncpy just in case. - __P() cleanup. Obtained from: KAME MFC after: 1 week
* support poll(2).ume2003-08-142-1/+41
| | | | | 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
* decreased too-strong log levels.ume2003-08-141-5/+9
| | | | | Obtained from: KAME MFC after: 1 week
* reduce #ifdef.ume2003-08-112-14/+1
| | | | MFC after: 1 week
* use strlcpy() and snprintf().ume2003-08-113-9/+20
| | | | | Obtained from: KAME MFC after: 1 week
* KNF, correct typos and cleanup spaces.ume2003-08-086-249/+222
| | | | | Obtained from: KAME MFC after: 1 week
* drop the code for the environment where getifaddrs(3) is notume2003-08-083-91/+1
| | | | | | | supported. Obtained from: KAME MFC after: 1 week
* Process the "O bit."ume2003-08-085-2/+183
| | | | | | | | | | 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-086-67/+67
| | | | | Obtained from: KAME MFC after: 1 week
* style.Makefile(5)obrien2003-04-041-1/+1
|
* Add -DHAVE_ARC4RANDOM to CFLAGSache2003-02-111-1/+1
|
* mdoc(7) police: Deal with self-xrefs.ru2002-12-241-1/+1
|
* The .Nm utilitycharnier2002-07-141-8/+13
|
* Explicitly specifies sin6_family & sin6_len of sockaddr_in6 for raw socketsuz2002-04-191-1/+3
| | | | | | | | | | | | | | destination. (Currently lack of their specification does not lead to any problem, because kernel does not check the consistency between actual address and its address family / length on raw socket. However kernel should always check their consistency and stop sending packets if there is a contradiction. Considering backward compatibility of programs, I just fixed rtsol now; I'd like to fix the kernel behavior later.) Reviewed by: ume MFC after: 3 days
OpenPOWER on IntegriCloud