aboutsummaryrefslogtreecommitdiff
path: root/usr.sbin/rtadvd
Commit message (Collapse)AuthorAgeFilesLines
* Properly convert bit value to a bit field. Before we were storingWarner Losh2009-02-191-2/+2
| | | | | | | | | | | | | values like 0x80 or 0x40 into a uint8_t foo:1 bitfield. This would result in the bit always being 0. One of these caused a warning for overflow (one that was 0x80), but the other didn't. They were both wrong. This is why I hate code that mixes c struct bitfields and #defines. The rest of the fields accessed by the program should be audited. Notes: svn path=/head/; revision=188820
* - rename the RETURN VALUES section to EXIT STATUS [1]Daniel Gerzo2009-01-071-4/+2
| | | | | | | | | | | - convert to .Ex macro - not bumping a date as this is not a real content change Approved by: ru [1] MFC after: 3 days Notes: svn path=/head/; revision=186848
* Change 2 arc4random modulo operations to arc4random_uniform() asAndrey A. Chernov2008-07-261-2/+2
| | | | | | | | | OpenBSD does, since modulo is not power of 2. Obtained from: OpenBSD Notes: svn path=/head/; revision=180823
* Cleanup of userland __P useKevin Lo2007-11-0713-89/+89
| | | | Notes: svn path=/head/; revision=173412
* o Remove duplicate includes.Maxim Konovalov2007-01-201-1/+0
| | | | | | | Obtained from: Slava Semushin via NetBSD Notes: svn path=/head/; revision=166134
* These IPv6-only tools have no explicit dependency on the INET6 macro.Yaroslav Tykhiy2006-07-271-1/+1
| | | | | | | Tested with: cmp(1) Notes: svn path=/head/; revision=160755
* avoid heap overrunSUZUKI Shinsuke2006-03-231-1/+1
| | | | | | | | Obtained from: KAME MFC after: 1 day Notes: svn path=/head/; revision=157047
* fixed a typo in commentSUZUKI Shinsuke2005-11-171-1/+1
| | | | Notes: svn path=/head/; revision=152538
* changed syslog level to more appropriate onesSUZUKI Shinsuke2005-10-191-3/+3
| | | | | | | | | Obtained from: KAME Reviewd by: ume, gnn MFC after: 2 weeks Notes: svn path=/head/; revision=151470
* source link-layer address option should be marked to be checked later,SUZUKI Shinsuke2005-10-191-1/+1
| | | | | | | | | | | because rs_input() need this option. Obtained from: KAME Reviewed by: ume, gnn MFC after: 2 weeks Notes: svn path=/head/; revision=151469
* added an ioctl option in kernel so that ndp/rtadvd can change some ↵SUZUKI Shinsuke2005-10-191-0/+30
| | | | | | | | | | | NDP-related kernel variables based on their configurations (RFC2461 p.43 6.2.1 mandates this for IPv6 routers) Obtained from: KAME Reviewd by: ume, gnn MFC after: 2 weeks Notes: svn path=/head/; revision=151468
* fix typo.Hajimu UMEMOTO2005-08-101-3/+3
| | | | | | | | Submitted by: suz Obtained from: KAME Notes: svn path=/head/; revision=148938
* Fixed the misplaced $FreeBSD$.Ruslan Ermilov2005-02-092-2/+4
| | | | Notes: svn path=/head/; revision=141580
* removed compilation warningSUZUKI Shinsuke2004-10-222-0/+2
| | | | | | | PR: bin/71624 Notes: svn path=/head/; revision=136764
* Per letter dated July 22, 1999 remove 3rd clause of Berkeley derived softwareWarner Losh2004-08-071-4/+0
| | | | | | | (with permission of addtional copyright holders where appropriate) Notes: svn path=/head/; revision=133249
* Fixed SEE ALSO references.Ruslan Ermilov2004-07-021-13/+13
| | | | Notes: svn path=/head/; revision=131498
* libcompat doesn't seem to be necessary any more.Poul-Henning Kamp2004-06-211-3/+0
| | | | Notes: svn path=/head/; revision=130852
* Fixed a misspelling of 0 as NULL.Bruce Evans2004-03-101-1/+1
| | | | Notes: svn path=/head/; revision=126797
* fixed memory leak.SUZUKI Shinsuke2003-09-201-1/+4
| | | | | | | Obtained From: KAME Notes: svn path=/head/; revision=120280
* Get rid of duplicates.Ruslan Ermilov2003-09-141-1/+1
| | | | Notes: svn path=/head/; revision=120054
* - supported a string notation for xxflags.Hajimu UMEMOTO2003-08-159-406/+528
| | | | | | | | | | | | | | | | | | | | | | | | | - 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
* use arc4random.Hajimu UMEMOTO2003-08-152-1/+7
| | | | | | | | Obtained from: KAME MFC after: 1 week Notes: svn path=/head/; revision=118962
* variable shared with signal handler needs to be "volatile sig_atomic_t".Hajimu UMEMOTO2003-08-151-2/+2
| | | | | | | | Obtained from: KAME MFC after: 1 week Notes: svn path=/head/; revision=118961
* set LOG_PERROR for openlog() when running foreground.Hajimu UMEMOTO2003-08-151-3/+7
| | | | | | | | Obtained from: KAME MFC after: 1 week Notes: svn path=/head/; revision=118959
* 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
* daemon() has to be called prior to file descriptor setupsHajimu UMEMOTO2003-08-141-2/+2
| | | | | | | | | | (otherwise file descriptors could be closed mistakenly) Obtained from: KAME MFC after: 1 week Notes: svn path=/head/; revision=118920
* support poll(2).Hajimu UMEMOTO2003-08-142-2/+37
| | | | | | | | Obtained from: KAME MFC after: 1 week Notes: svn path=/head/; revision=118916
* - rename some variables.Hajimu UMEMOTO2003-08-141-27/+14
| | | | | | | | | | - remove unused block. Obtained from: KAME MFC after: 1 week Notes: svn path=/head/; revision=118913
* signal handler must take "int" arg.Hajimu UMEMOTO2003-08-141-4/+5
| | | | | | | | Obtained from: KAME MFC after: 1 week Notes: svn path=/head/; revision=118912
* avoid fd_set overrun.Hajimu UMEMOTO2003-08-141-9/+21
| | | | | | | | Obtained from: KAME MFC after: 1 week Notes: svn path=/head/; revision=118911
* malloc() may return NULL.Hajimu UMEMOTO2003-08-121-0/+5
| | | | | | | | Obtained from: KAME MFC after: 1 week Notes: svn path=/head/; revision=118831
* reduce #ifdef.Hajimu UMEMOTO2003-08-116-33/+4
| | | | | | | MFC after: 1 week Notes: svn path=/head/; revision=118787
* use strlcpy() and snprintf().Hajimu UMEMOTO2003-08-113-7/+7
| | | | | | | | Obtained from: KAME MFC after: 1 week Notes: svn path=/head/; revision=118786
* use int64_t instead of long long.Hajimu UMEMOTO2003-08-113-7/+7
| | | | | | | | Obtained from: KAME MFC after: 1 week Notes: svn path=/head/; revision=118784
* Drop MIP6 code. We don't support MIP6 yet.Hajimu UMEMOTO2003-08-084-142/+4
| | | | | | | MFC after: 1 week Notes: svn path=/head/; revision=118672
* KNF, correct typos and cleanup spaces.Hajimu UMEMOTO2003-08-089-78/+66
| | | | | | | | Obtained from: KAME MFC after: 1 week Notes: svn path=/head/; revision=118664
* stop use of register.Hajimu UMEMOTO2003-08-081-14/+14
| | | | | | | | Obtained from: KAME MFC after: 1 week Notes: svn path=/head/; revision=118662
* __FUNCTION__ --> __func__Hajimu UMEMOTO2003-08-087-164/+164
| | | | | | | | Obtained from: KAME MFC after: 1 week Notes: svn path=/head/; revision=118660
* fixed wrong parameter descriptionsSUZUKI Shinsuke2003-07-301-3/+9
| | | | | | | | Obtained from: KAME MFC after: 1 day Notes: svn path=/head/; revision=118199
* - fixed byte order of route lifetimes in route info opptions.SUZUKI Shinsuke2003-04-101-2/+2
| | | | | | | | | | - corrected wording in a log message. Obtained from: KAME MFC after: 1 week Notes: svn path=/head/; revision=113325
* Use assignment, not equivalence test.Nate Lawson2003-04-051-1/+1
| | | | | | | No response from: suz Notes: svn path=/head/; revision=113137
* style.Makefile(5)David E. O'Brien2003-04-041-1/+1
| | | | Notes: svn path=/head/; revision=113091
* fixed invalid pointer referenceSUZUKI Shinsuke2003-04-021-0/+1
| | | | | | | Obtained from: KAME Notes: svn path=/head/; revision=112976
* tightened check for the length of ND options.Hajimu UMEMOTO2003-03-261-2/+25
| | | | | | | | Submitted by: jinmei@kame.net (JINMEI Tatuya) Obtained from: KAME Notes: svn path=/head/; revision=112676
* Use srandomdev() for FreeBSDAndrey A. Chernov2003-02-111-0/+4
| | | | Notes: svn path=/head/; revision=110668
* Fix typos, mostly s/ an / a / where appropriate and a few s/an/and/Jens Schweikhardt2002-12-301-2/+2
| | | | | | | Add FreeBSD Id tag where missing. Notes: svn path=/head/; revision=108470
* english(4) police.Jens Schweikhardt2002-12-271-3/+3
| | | | Notes: svn path=/head/; revision=108317
* The .Nm utilityPhilippe Charnier2002-07-141-3/+5
| | | | Notes: svn path=/head/; revision=99968
* Do not issue deprecated ioctl.Hajimu UMEMOTO2002-06-151-0/+8
| | | | | | | | Obtained from: KAME MFC after: 2 weeks Notes: svn path=/head/; revision=98262