msaitoh
2b50e65cd3
s/numberic/numeric/ in comment.
2021-12-05 05:03:05 +00:00
andvar
72e44f84cb
fix typos in word "successfully", mainly s/succesfully/successfully/.
2021-09-16 21:29:41 +00:00
mrg
cb93b81028
add support for new GCC 9 warnings that may be too much to fix
...
right now. new address-of-packed-member and format-overflow
warnings have new GCC_NO_ADDR_OF_PACKED_MEMBER amd
GCC_NO_FORMAT_OVERFLOW variables to remove these warnings.
apply to a bunch of the tree. mostly, these are real bugs that
should be fixed, but in many cases, only by removing the 'packed'
attribute from some structure that doesn't really need it. (i
looked at many different ones, and while perhaps 60-80% were
already properly aligned, it wasn't clear to me that the uses
were always coming from sane data vs network alignment, so it
doesn't seem safe to remove packed without careful research for
each affect struct.) clang already warned (and was not erroring)
for many of these cases, but gcc picked up dozens more.
2020-09-06 07:20:26 +00:00
rmind
0dd7abe473
libnpf fix: link the library itself to libnv; libnpf users should not be
...
expected to assume this dependency.
2019-08-24 13:20:52 +00:00
sborrill
35d580002c
IPFilter 5 requires you to specify IPv4 or IPv6
2018-12-13 13:11:28 +00:00
rmind
39013e66c1
NPF: Major rework -- migrate NPF to the libnv library.
...
- This conversion significantly simplifies the code and moves NPF to
a binary serialisation format (replacing the XML-like format).
- Fix some memory/reference leaks and possibly use-after-free bugs.
- Bump NPF_VERSION as this change makes libnpf incompatible with the
previous versions. Also, different serialisation format means NPF
connection/config saving and loading is not compatible with the
previous versions either.
Thanks to christos@ for extra testing.
2018-09-29 14:41:35 +00:00
mrg
845c916a36
updates for GCC 6.4:
...
identd has aliasing violations, use -fno-strict-aliasing.
newfs_msdos's getbpbinfo() has missing {} issues.
sysctl's kern_cp_id() has missing {} issues.
2018-02-04 09:03:23 +00:00
wiz
d8a6eb3c16
Whitespace.
2016-12-12 10:07:48 +00:00
christos
a106fb55e5
Add libprop for static linking
2016-12-11 15:43:48 +00:00
christos
a363700a4c
Fix the direction; ipf/pf seem to be wrong...
2016-12-10 22:09:18 +00:00
christos
4ce8846de5
Fix varargs.
2016-12-10 22:08:13 +00:00
christos
b525cd90e0
add npf support.
2016-12-10 05:43:11 +00:00
christos
029efed26d
this is syslog-like
2015-10-14 15:53:50 +00:00
plunky
faaf3691d2
does not need -I${NETBSDSRCDIR}/sys/dist/ipf here, the files are
...
installed in /usr/include/netinet
2012-09-15 17:45:35 +00:00
joerg
66dd2755f5
Add __printflike attribution to use vprintf and friends with an argument
...
as format string.
2012-03-15 02:02:20 +00:00
joerg
9eba1e423c
Use __dead
2011-08-29 20:41:06 +00:00
lukem
500db00274
Default to WARNS=4
...
Exceptions that need a lower level are:
getty ld.elf_so lfs_cleanerd makewhatis telnetd tftpd
hpropd ipropd-master ipropd-slave kadmind kpasswdd
2009-03-16 02:24:55 +00:00
lukem
fb103c5334
fix -Wsign-compare issues
2009-01-18 00:37:53 +00:00
christos
a0feefba6a
Avoid buffer overflow.
2006-09-29 17:02:04 +00:00
christos
36ac62d963
PR/34658: der Mouse: identd truncates queries to first segment
2006-09-29 15:49:29 +00:00
peter
f1cc466245
Add RCSID.
2005-06-14 12:18:24 +00:00
peter
23b24500dc
Minor cleanup:
...
- remove the silly limit of 490 chars in change_format
- improve the timeout message
- delint (where it makes sense)
2005-06-14 12:17:13 +00:00
lukem
818f7c82fa
appease gcc -Wuninitialized
2005-06-01 15:51:23 +00:00
peter
9641151edb
Remove the zombie reaper and set SIG_IGN on SIGCHLD. We won't get a zombie
...
when the child exists this way and it should also fix the race condition
as mentioned in PR bin/30253 from Patrick McPhee.
Approved by christos.
2005-05-18 00:31:32 +00:00
peter
914d68e290
Fix a typo; some minor nits and tweaks; add a CAVEATS section which
...
describes where identd needs access to when using certain flags.
2005-04-04 18:43:55 +00:00
peter
f90aa792d5
Add forward/proxy support to identd(8).
...
Approved by christos.
2005-04-03 22:15:32 +00:00
peter
6e30b59e96
Some minor cleanup:
...
* Improve some comments and (error) messages.
* Use EXIT_FAILURE and EXIT_SUCCESS.
* Add function `maybe_syslog' (only log when -l is enabled).
Reviewed by christos.
2005-03-11 15:49:52 +00:00
dsl
1869f0e146
Add (unsigned char) cast to ctype functions
2004-11-05 21:56:01 +00:00
kim
7e384e20a9
The "FORMAL SYNTAX" on RFC-1314 (page 5) does not show any spaces
...
around the delimiters (commas and colons). Also, at the end of
the "RESPONSE TYPES" section for "USERID" it is explicitly noted
that any spaces after the colon following the OSTYPE field *are*
part of the identifier.
2004-08-05 18:05:22 +00:00
christos
16816b44a8
PR/24320: Alan Barrett: new identd does not report random data when getpwuid()
...
fails. Also improve some log messages.
2004-02-05 13:18:48 +00:00
wiz
29dcd7f961
Standardize flag listing; sort options; remove ending dot in Nd argument;
...
sort sections and SEE ALSO; new sentence, new line; replace some man
macros with mdoc macros.
2004-01-31 22:39:24 +00:00
christos
2a56437104
add RCSID.
2004-01-31 22:03:31 +00:00
christos
f9ce139688
remove unused pidentd files.
2004-01-31 21:48:22 +00:00
christos
6310d36554
new identd from Peter Postma.
2004-01-31 21:47:17 +00:00
christos
81e1fcb367
downgrade the accept error to a warning so that we don't exit if we are being
...
port scanned.
2003-09-14 22:38:23 +00:00
itojun
013cd625a4
use arc4random
2003-09-06 12:52:10 +00:00
tsutsui
e40b9a1c1d
Include <stdlib.h> for exit(3) prototype, warned by gcc-3.3.
2003-07-05 12:34:12 +00:00
christos
1e3cf33d74
fix botch in sysctl arg.
2003-06-27 18:37:48 +00:00
christos
cf96f20a95
Rewrite from scratch; modify sysctl so that it does not abuse the new pointer.
2003-06-26 17:31:12 +00:00
christos
be4bd83a25
No need to define _KERNEL
2003-06-26 16:23:53 +00:00
itojun
bb3fc85900
use snprintf
2003-05-17 21:24:38 +00:00
itojun
0f00216d14
string manipulation cleanup
2003-05-17 21:17:43 +00:00
tron
8e10566c2f
Output a usefull error message if sysctl(3) fails.
2003-04-22 16:42:00 +00:00
christos
99437fe16f
PR/2352: Tor Egge: Use sysctl to get uid.
2003-04-19 20:57:35 +00:00
jdolecek
bcc4e12368
s/USER-ID/USERID/ in response when -L is used
...
fixes PR bin/20911 by der Mouse
2003-03-27 22:32:59 +00:00
wiz
83de4abed2
Use "its" instead of "it's" where appropriate.
...
From Soren Jacobsen in PR 20730.
2003-03-15 23:48:27 +00:00
wiz
a6bd266319
Correct spelling of "preferred". From PR 20716 by Igor Sobrado.
2003-03-15 19:15:58 +00:00
christos
580d21c8c2
undo mallocvar.h change!
2003-02-02 02:31:14 +00:00
tron
edb9087c05
Include "sys/mallocvar.h" with "_KERNEL" defined in time to avoid
...
build failure because MALLOC_DECLARE() is not defined.
2003-02-01 21:12:25 +00:00
tron
3125c302ff
Fix build problem by rearranging the order of "#include" statements so
...
that "sys/mallocvar.h" gets include while "_KERNEL" is defined.
2003-02-01 17:59:47 +00:00