Hiroki Sato
729d2abb51
Support SIGHUP for reloading /etc/rtadvd.conf.
2011-06-11 03:25:10 +00:00
Hiroki Sato
5a10f1ccec
Fix a bug that prevents tc=xxx from working.
2011-06-07 15:40:17 +00:00
Hiroki Sato
07a42575b4
- Use ELM_MALLOC() for struct rainfo.
...
- Fix a missing back pointer assignment in struct prefix to struct rainfo
when addr="" is specified. This caused SIGSEGV.
- Insert a prefix element to a tail queue after setting parameters.
2011-06-07 12:00:29 +00:00
Hiroki Sato
37a0ad8079
Set WARNS=1 temporarily to unbreak universe.
2011-06-06 20:14:50 +00:00
Hiroki Sato
587d184d3d
Fix build on 64-bit arch.
...
Submitted by: dim
Pointy hat to: hrs
2011-06-06 10:51:00 +00:00
Hiroki Sato
db82af41db
- 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]
2011-06-06 03:06:43 +00:00
Bjoern A. Zeeb
5033bae6d0
Prevent crashes from a race when (cloned) interfaces go away.
...
PR: bin/152143
Submitted by: Przemyslaw Frasunek (przemyslaw frasunek.com)
Tested by: Przemyslaw Frasunek (przemyslaw frasunek.com)
MFC after: 1 week
2011-03-02 17:13:07 +00:00
Xin LI
24f2cbe959
style.Makefile says tab between var= and value.
2010-12-23 01:45:48 +00:00
Xin LI
f49f3df86a
Allow overriding pidfile and dumpfile.
...
PR: bin/153362
Submitted by: Joe Holden <joe rewt org uk>
MFC after: 1 month
2010-12-22 23:58:21 +00:00
Ulrich Spörlein
02ac77f222
Fix another "string" typo.
...
MFC after: 3 days
2010-10-28 22:28:45 +00:00
Bjoern A. Zeeb
9398643636
Correct a typo.
...
MFC after: 3 days
2010-10-28 11:09:12 +00:00
Ulrich Spörlein
0b31f1f731
mdoc: move remaining sections into consistent order
...
This pertains mostly to FILES, HISTORY, EXIT STATUS and AUTHORS sections.
Found by: mdocml lint run
Reviewed by: ru
2010-05-13 12:08:11 +00:00
Ed Schouten
71ccf09269
The last big commit: let usr.sbin/ use WARNS=6 by default.
2010-01-02 11:07:44 +00:00
Warner Losh
6f74a8c7a0
Properly convert bit value to a bit field. Before we were storing
...
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.
2009-02-19 16:30:11 +00:00
Daniel Gerzo
8411572050
- rename the RETURN VALUES section to EXIT STATUS [1]
...
- convert to .Ex macro
- not bumping a date as this is not a real content change
Approved by: ru [1]
MFC after: 3 days
2009-01-07 01:01:26 +00:00
Andrey A. Chernov
f90b161b21
Change 2 arc4random modulo operations to arc4random_uniform() as
...
OpenBSD does, since modulo is not power of 2.
Obtained from: OpenBSD
2008-07-26 15:39:32 +00:00
Kevin Lo
784bddbc5b
Cleanup of userland __P use
2007-11-07 10:53:41 +00:00
Maxim Konovalov
ba5b74d001
o Remove duplicate includes.
...
Obtained from: Slava Semushin via NetBSD
2007-01-20 08:24:02 +00:00
Yaroslav Tykhiy
064aa4479f
These IPv6-only tools have no explicit dependency on the INET6 macro.
...
Tested with: cmp(1)
2006-07-27 15:31:13 +00:00
SUZUKI Shinsuke
94182c08be
avoid heap overrun
...
Obtained from: KAME
MFC after: 1 day
2006-03-23 14:39:38 +00:00
SUZUKI Shinsuke
990634f5e8
fixed a typo in comment
2005-11-17 02:34:50 +00:00
SUZUKI Shinsuke
09f3617564
changed syslog level to more appropriate ones
...
Obtained from: KAME
Reviewd by: ume, gnn
MFC after: 2 weeks
2005-10-19 15:19:06 +00:00
SUZUKI Shinsuke
375ef204cd
source link-layer address option should be marked to be checked later,
...
because rs_input() need this option.
Obtained from: KAME
Reviewed by: ume, gnn
MFC after: 2 weeks
2005-10-19 15:14:28 +00:00
SUZUKI Shinsuke
b9204379a1
added an ioctl option in kernel so that ndp/rtadvd can change some 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
2005-10-19 15:05:42 +00:00
Hajimu UMEMOTO
9cc94db2fe
fix typo.
...
Submitted by: suz
Obtained from: KAME
2005-08-10 17:09:08 +00:00
Ruslan Ermilov
6b806d21d1
Fixed the misplaced $FreeBSD$.
2005-02-09 18:07:17 +00:00
SUZUKI Shinsuke
72286081d0
removed compilation warning
...
PR: bin/71624
2004-10-22 07:31:12 +00:00
Warner Losh
486c8cc4c6
Per letter dated July 22, 1999 remove 3rd clause of Berkeley derived software
...
(with permission of addtional copyright holders where appropriate)
2004-08-07 04:28:56 +00:00
Ruslan Ermilov
160ad8f136
Fixed SEE ALSO references.
2004-07-02 22:50:25 +00:00
Poul-Henning Kamp
18598252b8
libcompat doesn't seem to be necessary any more.
2004-06-21 16:09:29 +00:00
Bruce Evans
c88f8102e3
Fixed a misspelling of 0 as NULL.
2004-03-10 08:46:39 +00:00
SUZUKI Shinsuke
f9547841bc
fixed memory leak.
...
Obtained From: KAME
2003-09-20 09:41:13 +00:00
Ruslan Ermilov
959d6c24f6
Get rid of duplicates.
2003-09-14 13:41:59 +00:00
Hajimu UMEMOTO
fc35a81b09
- supported a string notation for xxflags.
...
- 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
2003-08-15 19:13:53 +00:00
Hajimu UMEMOTO
dba14c305c
use arc4random.
...
Obtained from: KAME
MFC after: 1 week
2003-08-15 17:51:51 +00:00
Hajimu UMEMOTO
51964a1b2b
variable shared with signal handler needs to be "volatile sig_atomic_t".
...
Obtained from: KAME
MFC after: 1 week
2003-08-15 17:20:49 +00:00
Hajimu UMEMOTO
fbcc332a1d
set LOG_PERROR for openlog() when running foreground.
...
Obtained from: KAME
MFC after: 1 week
2003-08-15 17:15:10 +00:00
Hajimu UMEMOTO
767b3bfd66
dump the content of route information options
...
Obtained from: KAME
MFC after: 1 week
2003-08-15 17:04:28 +00:00
Hajimu UMEMOTO
776fdb8006
logged the fact to dump the status.
...
Obtained from: KAME
MFC after: 1 week
2003-08-15 16:50:34 +00:00
Hajimu UMEMOTO
145b960169
daemon() has to be called prior to file descriptor setups
...
(otherwise file descriptors could be closed mistakenly)
Obtained from: KAME
MFC after: 1 week
2003-08-14 19:05:24 +00:00
Hajimu UMEMOTO
5c706347d5
support poll(2).
...
Obtained from: KAME
MFC after: 1 week
2003-08-14 18:43:57 +00:00
Hajimu UMEMOTO
4eb4a0e6ec
- rename some variables.
...
- remove unused block.
Obtained from: KAME
MFC after: 1 week
2003-08-14 16:51:13 +00:00
Hajimu UMEMOTO
71aa258ee8
signal handler must take "int" arg.
...
Obtained from: KAME
MFC after: 1 week
2003-08-14 16:23:39 +00:00
Hajimu UMEMOTO
eaa5529180
avoid fd_set overrun.
...
Obtained from: KAME
MFC after: 1 week
2003-08-14 16:19:59 +00:00
Hajimu UMEMOTO
d7f0819bf0
malloc() may return NULL.
...
Obtained from: KAME
MFC after: 1 week
2003-08-12 16:58:32 +00:00
Hajimu UMEMOTO
b6ed844ff2
reduce #ifdef.
...
MFC after: 1 week
2003-08-11 15:51:54 +00:00
Hajimu UMEMOTO
bb58b617fb
use strlcpy() and snprintf().
...
Obtained from: KAME
MFC after: 1 week
2003-08-11 15:49:47 +00:00
Hajimu UMEMOTO
47742de0ef
use int64_t instead of long long.
...
Obtained from: KAME
MFC after: 1 week
2003-08-11 15:46:37 +00:00
Hajimu UMEMOTO
be9879af48
Drop MIP6 code. We don't support MIP6 yet.
...
MFC after: 1 week
2003-08-08 20:14:28 +00:00
Hajimu UMEMOTO
fa19f9be04
KNF, correct typos and cleanup spaces.
...
Obtained from: KAME
MFC after: 1 week
2003-08-08 16:56:01 +00:00