Joachim Nilsson
|
dd5b470342
|
Fix assert when buffer->hostname == NULL at startup
Default to use 'from' in RFC3164 parser, just like the RFC5424 parser
already does.
Signed-off-by: Joachim Nilsson <troglobit@gmail.com>
|
2019-11-08 15:50:09 +01:00 |
|
Joachim Nilsson
|
0435139ec9
|
man: Formatting fixes for readability
Signed-off-by: Joachim Nilsson <troglobit@gmail.com>
|
2019-11-08 13:56:16 +01:00 |
|
Joachim Nilsson
|
625a0d4abc
|
Relicense example code/readme/makefile as public domain
Signed-off-by: Joachim Nilsson <troglobit@gmail.com>
|
2019-11-08 13:43:37 +01:00 |
|
Joachim Nilsson
|
1546d3ce94
|
Bump version for v2.0-rc1 release candidate
Signed-off-by: Joachim Nilsson <troglobit@gmail.com>
|
2019-11-08 13:23:33 +01:00 |
|
Joachim Nilsson
|
9a3d5b6a4d
|
Mention syslogp() code example and Dr. Wettstein's formative work
Signed-off-by: Joachim Nilsson <troglobit@gmail.com>
|
2019-11-08 13:21:41 +01:00 |
|
Joachim Nilsson
|
307dcd073e
|
Revert "Disable clang in Coverity Scan run"
This reverts commit bafdb29743 .
|
2019-11-08 12:39:45 +01:00 |
|
Joachim Nilsson
|
fbb7c5ce86
|
Minor, same look for contact information as previous maintainers
Signed-off-by: Joachim Nilsson <troglobit@gmail.com>
|
2019-11-08 12:37:47 +01:00 |
|
Joachim Nilsson
|
0a3c5e1544
|
syslogd: Update usage text, drop -a add -b and simplify
Signed-off-by: Joachim Nilsson <troglobit@gmail.com>
|
2019-11-08 08:50:17 +01:00 |
|
Joachim Nilsson
|
3377f07a5a
|
klogd: Update usage text, no more -i or -I
Signed-off-by: Joachim Nilsson <troglobit@gmail.com>
|
2019-11-08 08:50:17 +01:00 |
|
Joachim Nilsson
|
172ae92887
|
test: Extend API test with logger verifing structured data
Signed-off-by: Joachim Nilsson <troglobit@gmail.com>
|
2019-11-07 23:21:33 +01:00 |
|
Joachim Nilsson
|
cc96379252
|
syslogd: Fix RFC5424 structured-data parser
Signed-off-by: Joachim Nilsson <troglobit@gmail.com>
|
2019-11-07 23:21:33 +01:00 |
|
Joachim Nilsson
|
22c3fa9fa3
|
syslogd: Increase debug logging of raw incoming and parsed messages
Signed-off-by: Joachim Nilsson <troglobit@gmail.com>
|
2019-11-07 23:21:33 +01:00 |
|
Joachim Nilsson
|
3f68d765db
|
logger: Change usage text slightly for readability
Signed-off-by: Joachim Nilsson <troglobit@gmail.com>
|
2019-11-07 23:21:33 +01:00 |
|
Joachim Nilsson
|
31815d6143
|
logger: Add NetBSD -d SD for RFC5424 structured data
Signed-off-by: Joachim Nilsson <troglobit@gmail.com>
|
2019-11-07 23:21:31 +01:00 |
|
Joachim Nilsson
|
12d5536dfc
|
Update man page with missing -u SOCK documentation
Also, update FILES section with correct information on the UNIX domain
socket path used on Linux.
Signed-off-by: Joachim Nilsson <troglobit@gmail.com>
|
2019-11-07 23:20:14 +01:00 |
|
Joachim Nilsson
|
60239756af
|
Reference syslogp(3) instead of native/old syslog(3) API
Signed-off-by: Joachim Nilsson <troglobit@gmail.com>
|
2019-11-07 23:20:14 +01:00 |
|
Joachim Nilsson
|
e25f835a5a
|
logger: Add NetBSD -m MSGID support for logging RFC5424 style
Signed-off-by: Joachim Nilsson <troglobit@gmail.com>
|
2019-11-07 23:20:11 +01:00 |
|
Joachim Nilsson
|
f2e1793cda
|
logger: Add NetBSD -n option for LOG_NDELAY
Signed-off-by: Joachim Nilsson <troglobit@gmail.com>
|
2019-11-07 22:03:11 +01:00 |
|
Joachim Nilsson
|
0aa57978ee
|
logger: Add NetBSD -i option for LOG_PID
Signed-off-by: Joachim Nilsson <troglobit@gmail.com>
|
2019-11-07 21:54:47 +01:00 |
|
Joachim Nilsson
|
d3461fd6a3
|
logger: Add NetBSD -c option for LOG_CONS
Signed-off-by: Joachim Nilsson <troglobit@gmail.com>
|
2019-11-07 21:08:01 +01:00 |
|
Joachim Nilsson
|
fff4368e80
|
RFC5424 sec 6.1 states that we *should* support 2048 byte long msgs
Signed-off-by: Joachim Nilsson <troglobit@gmail.com>
|
2019-11-07 20:56:02 +01:00 |
|
Joachim Nilsson
|
07033382ee
|
Minor, type cast logit() argument for Coverity Scan
Signed-off-by: Joachim Nilsson <troglobit@gmail.com>
|
2019-11-07 20:35:54 +01:00 |
|
Joachim Nilsson
|
11819e5b7f
|
Type cast arguments to logit(), fixes warnings from Coverity
Signed-off-by: Joachim Nilsson <troglobit@gmail.com>
|
2019-11-07 19:37:12 +01:00 |
|
Joachim Nilsson
|
884a0a180b
|
Use correct format specifier for ssize_t, found by Coverity Scan
Signed-off-by: Joachim Nilsson <troglobit@gmail.com>
|
2019-11-07 19:37:04 +01:00 |
|
Joachim Nilsson
|
774523f6e2
|
Fix missing argument to logit() and clean up unreadable code
Found by Coverity Scan
Signed-off-by: Joachim Nilsson <troglobit@gmail.com>
|
2019-11-07 19:36:49 +01:00 |
|
Joachim Nilsson
|
7533f96ca9
|
Fix invalid/missing/extra argument to logit(), found by Coverity
Signed-off-by: Joachim Nilsson <troglobit@gmail.com>
|
2019-11-07 19:24:38 +01:00 |
|
Joachim Nilsson
|
bafdb29743
|
Disable clang in Coverity Scan run
Signed-off-by: Joachim Nilsson <troglobit@gmail.com>
|
2019-11-07 19:17:18 +01:00 |
|
Joachim Nilsson
|
6059d873a5
|
Fix stray 'g' that sneaked in last test update
Signed-off-by: Joachim Nilsson <troglobit@gmail.com>
|
2019-11-07 19:13:28 +01:00 |
|
Joachim Nilsson
|
cee833a7f5
|
Draft update of v2.0 change log
Signed-off-by: Joachim Nilsson <troglobit@gmail.com>
|
2019-11-07 19:08:29 +01:00 |
|
Joachim Nilsson
|
939a28f6f8
|
Test with a secondary UNIX socket
Signed-off-by: Joachim Nilsson <troglobit@gmail.com>
|
2019-11-07 19:08:29 +01:00 |
|
Joachim Nilsson
|
4376def121
|
Allow running tests stand-alone
Signed-off-by: Joachim Nilsson <troglobit@gmail.com>
|
2019-11-07 19:08:29 +01:00 |
|
Joachim Nilsson
|
64c6866667
|
Minor, drop debug log message for normal case
Signed-off-by: Joachim Nilsson <troglobit@gmail.com>
|
2019-11-07 19:08:29 +01:00 |
|
Joachim Nilsson
|
67723e53b9
|
syslogd.8: Clarify -r documentation and how it works with -b :PORT
Signed-off-by: Joachim Nilsson <troglobit@gmail.com>
|
2019-11-07 19:08:29 +01:00 |
|
Joachim Nilsson
|
f8e87f143d
|
syslogd: Drop -a SOCK support, replaced with multiple -p SOCK args
The -p SOCK syntax is what NetBSD syslogd use, so this is more of an
alignment with upstream.
Signed-off-by: Joachim Nilsson <troglobit@gmail.com>
|
2019-11-07 19:08:29 +01:00 |
|
Joachim Nilsson
|
d723574eee
|
logger: Update usage text with missing -u SOCK info
Signed-off-by: Joachim Nilsson <troglobit@gmail.com>
|
2019-11-07 06:47:53 +01:00 |
|
Joachim Nilsson
|
9a0bfeef8a
|
Travis-CI: Fix configure rule, follow-up to previous commit
Signed-off-by: Joachim Nilsson <troglobit@gmail.com>
|
2019-11-06 17:13:55 +01:00 |
|
Joachim Nilsson
|
55d92d73c3
|
Drop address sanitizer for now, fails on Clang builds
Signed-off-by: Joachim Nilsson <troglobit@gmail.com>
|
2019-11-06 16:59:04 +01:00 |
|
Joachim Nilsson
|
74c523a158
|
Build with -O2 but keep address sanitizer
Signed-off-by: Joachim Nilsson <troglobit@gmail.com>
|
2019-11-06 16:54:15 +01:00 |
|
Joachim Nilsson
|
1544cddd5a
|
Drop unnecessary (and buggy) debug logs
Signed-off-by: Joachim Nilsson <troglobit@gmail.com>
|
2019-11-06 16:53:48 +01:00 |
|
Joachim Nilsson
|
849aeb18c4
|
Enable Address Sanitizer for debugging
Signed-off-by: Joachim Nilsson <troglobit@gmail.com>
|
2019-11-06 16:48:16 +01:00 |
|
Joachim Nilsson
|
8142c780e0
|
Wait a bit before checking the log file, also check if it's alive
Signed-off-by: Joachim Nilsson <troglobit@gmail.com>
|
2019-11-06 16:38:30 +01:00 |
|
Joachim Nilsson
|
999f713115
|
Dump actual v1.conf file on error
Signed-off-by: Joachim Nilsson <troglobit@gmail.com>
|
2019-11-06 16:26:44 +01:00 |
|
Joachim Nilsson
|
66e9975234
|
Actually return error when API test fails, dump more logs
Signed-off-by: Joachim Nilsson <troglobit@gmail.com>
|
2019-11-06 16:22:29 +01:00 |
|
Joachim Nilsson
|
b32d8279ad
|
Travis-CI: Dump test logs since it now suddenly works again
Signed-off-by: Joachim Nilsson <troglobit@gmail.com>
|
2019-11-06 16:12:19 +01:00 |
|
Joachim Nilsson
|
09085b2ba9
|
Debug API test, syslogp() fails on Travis-CI for some reason
Signed-off-by: Joachim Nilsson <troglobit@gmail.com>
|
2019-11-06 16:07:13 +01:00 |
|
Joachim Nilsson
|
4b994b6ae5
|
Revert "Disable clang temporarily for Coverity Scan run"
This reverts commit 1f4877e21f .
|
2019-11-06 14:23:42 +01:00 |
|
Joachim Nilsson
|
533ca61faa
|
Support for sending messages to a custom port on remote server
Signed-off-by: Joachim Nilsson <troglobit@gmail.com>
|
2019-11-06 14:23:03 +01:00 |
|
Joachim Nilsson
|
ff4b9e0499
|
Minor, code formatting
Signed-off-by: Joachim Nilsson <troglobit@gmail.com>
|
2019-11-06 13:55:05 +01:00 |
|
Joachim Nilsson
|
b2ba0048cd
|
Finished valgrind/Coverity -fsanitize=address phase
Signed-off-by: Joachim Nilsson <troglobit@gmail.com>
|
2019-11-06 13:45:53 +01:00 |
|
Joachim Nilsson
|
449a2ea162
|
Minor, whitespace formatting
Signed-off-by: Joachim Nilsson <troglobit@gmail.com>
|
2019-11-06 13:45:49 +01:00 |
|