Commit Graph

32 Commits

Author SHA1 Message Date
christos 0d33c75c01 use memcpy to avoid type punning. 2011-08-16 12:49:13 +00:00
mrg c111245a78 apply some -Wno-error and/or -fno-strict-aliasing.
all of this should be looked at closer, but some of them are not
very trivial.
2011-06-22 02:49:41 +00:00
wiz baacf5e062 Fix fd leak in error case. Found by cppcheck. 2011-01-04 09:14:42 +00:00
joerg bfbe4c3572 Use HUGE_VAL instead of INFINITY as positive infinity (or maximum value)
is good enough and the side effects of ISO C99 7.12 (4) are not desired.
2010-03-01 00:13:47 +00:00
mbalmer 40406154b1 Fix typo in comment. 2010-01-06 06:30:37 +00:00
lukem 7affd6558f Fix -Wsign-compare issues 2009-04-15 00:13:50 +00:00
joerg cba79e0ec4 Add support for source address hashhing in ALTQs WFQ. This allows to
easily distribute bandwidth for huge number of clients for incoming
traffic.
2008-09-11 17:58:59 +00:00
lukem 66176dfdff Rename MKPRIVATELIB to LIBISPRIVATE, to make it clearer that this is
a variable that is used by in-tree Makefiles to control behaviour.
(MKsomevar variables are generally intended to be controlled by the end-user)
2008-05-03 14:48:30 +00:00
xtraeme 7097d2c139 Constify and other misc fixes to make this build with WARNS=4. 2008-05-02 19:07:44 +00:00
peter 91c703ae73 Since the -D option doesn't do anything useful at all, remove it. 2006-11-26 11:38:07 +00:00
peter dd191f37f3 Merge the peter-altq branch.
(sync with KAME & add support for using ALTQ with pf(4)).
2006-10-12 19:59:07 +00:00
christos e02941da8f Coverity CID 2714: Fix reversed test (from Arnaud Lacombe) 2006-09-29 18:40:57 +00:00
he 7cc15c3097 Initialize various local variables (clinfo, fltrinfo) to appease
-Wuninitialized.  Found while compiling for sun2.

Reviewed by lukem.
2005-06-07 13:39:37 +00:00
lukem 7157011597 Only compile in IPv6 support if ${USE_INET6} != "no"
MKINET6 is for providing IPv6 infrastructure.
USE_INET6 is for compiling IPv6 support into the programs (needs MKINET6).
2005-01-10 02:58:58 +00:00
dsl 238960af7e Add (unsigned char) cast to ctype function 2004-10-29 19:51:36 +00:00
lukem b817247988 Use MKPRIVATELIB=yes instead of providing an empty libinstall:: target and
setting NOLINT, NOPIC, NOPROFILE (etc)
2004-05-23 02:24:50 +00:00
lukem 931c212f78 Now that <math.h> #defines INFINITY as HUGE_VALF (the float version)
(per C99 7.12 #4), we can't define it as HUGE_VAL (the double version).
Instead, just use HUGE_VAL directly.
2003-10-26 08:08:06 +00:00
wiz b7e50f132b Make '?' work in interactive mode. Fixes PR bin/19949 by Christian Biere. 2003-02-01 17:13:14 +00:00
wiz 7bd6fd354d unknown, not unkown. Noted by mjl. 2003-01-28 22:19:22 +00:00
lukem c52b93f508 minor makefile delint 2002-09-18 13:31:52 +00:00
itojun 2237adde2a use HUGE_VAL defined in <math.h> instead of 1e500 for positive infinity.
gcc -pedantic audit by deraadt@openbsd.org
2002-09-08 09:28:23 +00:00
itojun 53ae45711d fail if the default class is larger than the ctl class.
report by Paul Civati <paul@xciv.org>
2002-05-31 06:53:48 +00:00
itojun 69881cf6b8 bring in latest ALTQ from kjc. 2002-03-05 04:11:51 +00:00
thorpej d5b972580e Need <string.h> for strcmp() prototype (noticed by gcc 3.1). 2001-12-31 19:31:23 +00:00
tv 8e6f7afb5b MKfoo=no -> NOfoo 2001-12-12 01:48:43 +00:00
itojun d5e1f166e0 sync with latest kame tree. snprintf() return value audit, log() cleanup,
and such.
2001-08-22 08:52:35 +00:00
itojun 62856425b4 $NetBSD$ 2001-08-16 07:48:08 +00:00
itojun 8b8734d26b string length audit (use strlcpy). sync with latest kame ALTQ. 2001-08-16 07:45:35 +00:00
itojun 92b62a25f8 avoid inet_addr. use snprintf. recent changes from openbsd-current via kame 2001-08-06 07:00:59 +00:00
cgd e209ced86f include string.h for prototypes. 2001-01-16 02:38:36 +00:00
thorpej 28f0042b51 Build glue for ALTQ programs. 2000-12-16 18:57:34 +00:00
thorpej 95a6556014 Import the altq library. 2000-12-16 17:38:07 +00:00