itojun
47c9fbf29d
port numbers are unsigned. use %u. from kame
2003-04-22 09:56:30 +00:00
itojun
c2a20cc150
%d is not 10 chars, but 12 chars. uwse NI_MAXSERV. sync w/ kame. from openbsd
2003-04-15 07:23:19 +00:00
wiz
990562bfef
.Nm does not need a dummy argument ("") before punctuation or
...
for correct formatting of the SYNOPSIS any longer.
2003-02-25 10:34:36 +00:00
itojun
41b5d4f9af
use strtoul, not atoi.
...
don't print strerrno() if errno == 0 on fatal().
sync w/kame
2002-10-26 20:10:02 +00:00
itojun
88b96862d4
IPV6_V6ONLY setsockopt has to happen before bind(2). PR 18435
2002-09-27 14:43:00 +00:00
itojun
2eca5c16aa
set IPV6_V6ONLY to 1.
2002-09-24 13:48:14 +00:00
mycroft
aae6c28cf9
null commit
2002-09-23 12:44:34 +00:00
itojun
3ca6603d44
sys/poll.h -> poll.h
...
reduce diff w/ kame tree.
2002-09-20 22:04:31 +00:00
mycroft
a5f0bfc173
Set fd of unused pollfd entries to -1.
2002-09-20 19:51:33 +00:00
mycroft
562704fd8f
select() -> poll()
2002-09-20 13:30:18 +00:00
itojun
9e8e6611e8
suppress output on dump request if -q is specified. sync w/kame
2002-08-21 16:26:12 +00:00
wiz
a1b3869d7e
Unifdef __STDC__, ansify.
2002-08-01 00:17:31 +00:00
itojun
db47036241
use strchr
2002-06-09 02:47:03 +00:00
itojun
f78cc67c13
avoid fd_set overrun. sync w/kame
2002-06-07 16:45:30 +00:00
wiz
ce2e5815e6
Wording and grammar improvements.
2002-06-02 14:56:47 +00:00
itojun
ef188effbf
strlcpy. rtm_seq is an int. use pidfile(3). sync w/kame via openbsd
2002-05-29 23:11:13 +00:00
itojun
8e96646992
do not age global address on loopback interface. sync with kame
2002-02-25 02:22:59 +00:00
itojun
4a1ad619af
daemon(3) has to be called before opening file descriptors.
...
noticed by markus@openbsd, sync with kame
2002-01-11 04:20:55 +00:00
itojun
3e54083fa3
__ss_{len,family} hack is no longer necessary
2001-11-19 03:19:10 +00:00
wiz
4c99916337
va_{start,end} audit:
...
Make sure that each va_start has one and only one matching va_end,
especially in error cases.
If the va_list is used multiple times, do multiple va_starts/va_ends.
If a function gets va_list as argument, don't let it use va_end (since
it's the callers responsibility).
Improved by comments from enami and christos -- thanks!
Heimdal/krb4/KAME changes already fed back, rest to follow.
Inspired by, but not not based on, OpenBSD.
2001-09-24 13:22:25 +00:00
itojun
a12c72c978
sync with the latest KAME tree.
...
- don't use FD_SETSIZE on select
- "sin" conflicts with math library, so use sin6
- other minor updates
2001-09-05 01:17:31 +00:00
itojun
a167adffce
need va_start/end for every vfprintf(). from markus@openbsd. sync with kame
2001-06-13 04:31:52 +00:00
kleink
a0649bd297
getopt(3): EOF -> -1.
2001-05-07 14:00:22 +00:00
wiz
14dbdf5518
Negative exit code cleanup: Replace exit(-x) with exit(x).
...
As seen on tech-userlevel.
2001-04-06 11:13:45 +00:00
itojun
ac2d37627a
correct delroute() against host routes. clarify ROUTE6D p2p advert behavior
...
(no behavior change for normal use). sync with kame
2001-03-08 03:24:47 +00:00
itojun
0a7bed1113
bring in latest kame code.
...
- correct RTA_NETMASK processing
- correct -A filter behavior (do not advert aggregated route to other if)
- better signal handling
- mandate getifaddrs
- do not advert connected routes on !IFF_UP routes. experimental
sync with kame
2001-02-07 13:46:04 +00:00
pk
39ca30e495
setindex2ifc(): after a realloc(), zero the newly acquired entries.
2001-02-07 13:24:42 +00:00
itojun
606c47534d
make signo a volatile variable. sync with kame
2001-01-12 17:48:37 +00:00
itojun
5e43f4d020
make signal handler very short, to avoid possibility of race conditions.
...
commented by deraadt. sync with kame
2001-01-12 14:55:13 +00:00
itojun
980886f151
do not advertise dynamic/cloned routes
2000-11-10 18:15:57 +00:00
lukem
279552d3db
fix up various .Nm abuses:
...
- keep the case consistent between the actual name and what's referenced.
e.g, if it's `foo', don't use '.Nm Foo' at the start of a sentence.
- remove unnecessary `.Nm foo' after the first occurrence (except for
using `.Nm ""' if there's stuff following, or for the 2nd and so on
occurrences in a SYNOPSIS
- use Sx, Ic, Li, Em, Sq, and Xr as appropriate
2000-11-07 06:43:24 +00:00
itojun
ecb9f85737
cast size_t to u_long on printing. sync with kame
2000-10-10 13:03:27 +00:00
itojun
74b478c63c
printf-format audit. from sommrfeld@netbsd.org. sync with kame.
2000-10-06 00:13:01 +00:00
itojun
a1d74a730b
fix LP64 issue in routing message parsing. from thorpej
2000-08-13 00:41:30 +00:00
itojun
8e95963981
fix behavior or -A. routing table check does not seem to working right.
2000-07-30 17:26:14 +00:00
itojun
06ee23e6b3
sync with latest kame.
...
- remove obsolete non-advanced-api support.
- if a routing entry exists for aggregate prefix (-A), do not overwrite
the routing entry (exit with error).
2000-07-15 04:55:40 +00:00
itojun
f85b415274
sync with more recent kame.
...
- fix memory leak with realloc()
- warn if we see packets with junk outside of IPv6 prefix length
- cosmetic
2000-07-09 03:06:18 +00:00
itojun
c3b1168f43
more correct advert for global address on p2p.
...
avoid reusing upper bits of rtm_flags. (sync with kame)
2000-05-18 13:23:43 +00:00
itojun
019d9b540c
correct p2p interface address handling.
...
avoid memory leak.
bzero() after malloc().
(sync from kame)
2000-05-16 14:04:32 +00:00
itojun
2c97d607dd
ignore routing socket messages for unexpected (or not interesting) interfaces.
...
do not advertise reject/blackhole static routes.
2000-04-11 11:57:15 +00:00
itojun
a5ad88b8e0
use getifaddrs. avoid "extern int errno".
...
(sync with latest kame code)
2000-02-25 06:22:05 +00:00
itojun
a650ffbfaf
write out dump file into /var/run, not /var/tmp.
...
(sync with KAME, for possible security reasons)
1999-12-16 05:55:52 +00:00
itojun
192f4042b9
sync with recent KAME. tiny wording fix.
1999-12-10 05:48:51 +00:00
itojun
e31c5df7d2
sync with recent KAME code.
...
- bark if extra argument is specified.
1999-09-13 11:07:52 +00:00
itojun
672bcec232
sync with recent KAME.
...
- fix 64bit alignment issue in routing socket.
- avoid s6_addr8 (nonstandard), use s6_addr instead.
1999-09-03 04:04:22 +00:00
itohy
5558ca668c
Eliminate illegal cast from function pointer (sig_t) to object pointer (void *).
...
Remove #include of unused headers.
Fix varargs usage.
KNF.
Const poisoning.
1999-07-26 01:31:47 +00:00
itojun
e5244472c9
style fix (to sync with KAME/NetBSD14)
1999-07-08 16:11:40 +00:00
sommerfeld
eb61e82da9
Fix a bit-count vs. byte-count problem .. /16 routes were added as
...
host routes rather than network routes.
1999-07-08 16:04:56 +00:00
itojun
7e91967d7e
fix for 64bit arch (sizeof(void *) != sizeof(int))
1999-07-06 13:08:12 +00:00
itojun
72367d27c8
s/char/int/ for variable that eat return value of getopt().
1999-07-04 21:59:19 +00:00