dyoung
1ebd488e32
#include <stdbool.h> for bool.
2008-01-21 20:46:58 +00:00
msaitoh
8ce1f4fff2
fix typos
2007-04-29 20:23:34 +00:00
elad
1232ea27c4
PR/18906: roskens at elfin dot net: misc. select() to poll() updates.
...
Adapted to -current by myself, thanks for the patch!
2006-10-07 17:27:57 +00:00
rpaulo
024ed52e7d
Add missing #endif.
2006-05-25 02:40:58 +00:00
rpaulo
4264348cac
Beautify.
2006-05-25 02:35:50 +00:00
rpaulo
3a387eb457
Time to remove __P().
2006-05-25 02:32:56 +00:00
christos
f5e466e11a
Coverity CID 2537: Avoid double free, and random free. how did this work?
2006-05-25 02:05:40 +00:00
christos
e86e72d9a8
Coverity CID 3194: Avoid NULL deref.
2006-05-25 02:01:40 +00:00
christos
180ca89a2b
Coverity CID 3195: ifdef out dead code.
2006-05-25 01:58:39 +00:00
wiz
1ad8067cb3
Fix typos, reported by Alexey Dobriyan ("Gathered from Linux"),
...
forwarded by jmc@openbsd.
2006-02-25 00:58:34 +00:00
hannken
101f03a0d5
Let it compile again on sparc/sparc64.
2003-10-31 10:09:55 +00:00
itojun
91ba57dca7
need_trigger/idx should be u_int. millert@openbsd
2003-10-31 00:31:53 +00:00
itojun
4101558b6e
validate packet length. KAME-PR-517
2003-10-30 08:46:04 +00:00
itojun
0c4a8b5a7e
realloc pedant
2003-09-19 06:01:24 +00:00
itojun
c66d2bd6ee
Don't age non-gateway host routes. PR bin/22568 from Andrew White
2003-08-22 08:24:26 +00:00
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
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
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
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
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