Commits
- Commit:
6b5c4000434cc5dc67e202d8aede2f543b5b2bf3- From:
- rsadowski <rsadowski@openbsd.org>
- Date:
Standardize logging with bgpd
OK claudio@
- Commit:
5efe1a629c837729de712a957d05623830ec04b3- From:
- bluhm <bluhm@openbsd.org>
- Date:
From a syslog perspective it does not make sense to log fatal and
warn with the same severity. Switch log_warn() to LOG_ERR and keep
fatal() at LOG_CRIT.
OK reyk@ florian@
- Commit:
afbe8d84fc7bbb7c2893503880772d964533ea1a- From:
- reyk <reyk@openbsd.org>
- Date:
Stop accessing verbose and debug variables from log.c directly.
This replaces log_verbose() and "extern int verbose" with the two functions
log_setverbose() and log_getverbose().
Pointed out by benno@
OK krw@ eric@ gilles@ (OK gilles@ for the snmpd bits as well)
- Commit:
a907e013f1430ac749e09ed5e32d88720c61daef- From:
- reyk <reyk@openbsd.org>
- Date:
Sync log.c with the latest version from vmd/log.c that preserves errno
so it is safe calling log_* after an error without loosing the it.
- Commit:
e474997158632f8d9fdc48dc46cbbeccc1316d6c- From:
- reyk <reyk@openbsd.org>
- Date:
copy updated log.c from vmd: for correctness, save errno when doing
additional actions before printing it. OK rzalamena@
- Commit:
862b0b0084e2752458f603be81881bb040f0b805- From:
- reyk <reyk@openbsd.org>
- Date:
sync with vmd
- Commit:
9787a4f4bec8896e2474a4d1d1e9ff30e926ac93- From:
- reyk <reyk@openbsd.org>
- Date:
Update log.c: change fatal() and fatalx() into variadic functions,
include the process name, and replace all calls of fatal*(NULL) with
fatal(__func__) for better debugging.
OK benno@
- Commit:
8efb008e71e124a424e49032b6cf5cfbb53a08bf- From:
- reyk <reyk@openbsd.org>
- Date:
Once again, fix the license text. After many years, we just cannot
get rid of the "LOSS OF MIND" joke. Haha. We keep on removing it and
it shows up again because it accidentally gets synced from somewhere
else. bgpd and ospfd don't have it anymore, but their offsprings
still carry it. If you see it, remove it, and, in the OpenBSD ISC
case, use the original text from /usr/share/misc/license.template.
All authors agree.
- Commit:
0e5011aaf42a0ec4224718272a51884c3452fdd2- From:
- reyk <reyk@openbsd.org>
- Date:
Move local logging functions from log.c to new file util.c (that is
also shared with relayctl). This allows us to unify common log.c with
other daemons. It also clarifies the Copyright: log.c is by Henning,
relayd's additions were from me. No functional or code changes, but
it will make future updates easier.
- Commit:
d93c36af2b8111f07ff7645770d4714a2e5aef96- From:
- reyk <reyk@openbsd.org>
- Date:
Clean up the relayd headers with help of include-what-you-use and some
manual review. Based on common practice, relayd.h now includes the
necessary headers for itself.
OK benno@
- Commit:
270ed42a50acc8797df2df92305e394b39ded472- From:
- guenther <guenther@openbsd.org>
- Date:
Stop pulling in <arpa/inet.h> or <arpa/nameser.h> when unnecessary.
*Do* pull it in when in_{port,addr}_h is needed and <netinet/in.h> isn't.
ok reyk@
- Commit:
096ff28be0ad3eece8fa3b49f2ffed59e89f73fa- From:
- reyk <reyk@openbsd.org>
- Date:
Change the keyword "ssl" to "tls" to reflect reality since we
effectively disabled support for the SSL protocols. SSL remains a
common term describing SSL/TLS, there is some controvery about this
change, and the name really doesn't matter, but I feel confident about
it now.
(btw., sthen@ pointed out some historical context:
http://tim.dierks.org/2014/05/security-standards-and-name-changes-in.html)
OK benno@, with input from tedu@
- Commit:
5a30f51bc00ea660a335280def096dbd5ff3e0bf- From:
- lteo <lteo@openbsd.org>
- Date:
Remove unnecessary netinet/in_systm.h include.
ok millert@
- Commit:
fa8477176fd048c02ae0f6d4c8a1f4ce201d1ad6- From:
- reyk <reyk@openbsd.org>
- Date:
Move HTTP error codes into http.h.
ok benno@
- Commit:
c5f21b1466341398d16f75d771a591aa5cbddc4f- From:
- reyk <reyk@openbsd.org>
- Date:
fix previous
- Commit:
0bdb5f551adef54f7a1736079d940cfbdf470b39- From:
- reyk <reyk@openbsd.org>
- Date:
spacing
- Commit:
74452e599318ef50e719c418f2c9558741458e71- From:
- deraadt <deraadt@openbsd.org>
- Date:
unsigned char for ctype
- Commit:
b7f7a948d01b98e0853f7d0c2efb6591025f657f- From:
- reyk <reyk@openbsd.org>
- Date:
This diff changes relayd to use the monotonic clock instead of
gettimeofday(). It was also bugging me for some time to have all
these checks of gettimeofday()'s return value: it should not fail. So
this diff introduces a void getmonotime(struct timeval *tv) that calls
clock_gettime(CLOCK_MONOTONIC, &ts) and converts the output to a
struct timeval that can be used with the existing code and the
timeval-specific timer functions (timerclear, timersub, ...). It does
not return a status but calls fatal() on error-that-should-not-happen.
ok sthen@ chris@
- Commit:
68e92a51956c838676e7f631e31e4c6a55136c05- From:
- guenther <guenther@openbsd.org>
- Date:
Add format attributes to the proper functions and then fix the warnings
that gcc then reports when compiling with -DDEBUG=2
ok reyk@ benno@
- Commit:
ee6d33e4e36efb24d3a4a106895f53078fe30963- From:
- reyk <reyk@openbsd.org>
- Date:
update flags and printing of flags in debug mode, handle splicing flag.
- Commit:
ea47f1c48ce3352300e26bd65b5424319f61f303- From:
- reyk <reyk@openbsd.org>
- Date:
The relayd processes did already bump up the socket file descriptor
resource limits to the maximum of the daemon class but the host check
process (hce/health checks) didn't and was limited to a fairly low
default of 128 open sockets (openfiles-cur=128 in login.conf). This
was reached fairly quickly with "check tcp" of many hosts. This diff
increases the maximum number of monitored hosts and concurrent health
checks in relayd in a significant way and may fix issues for people
that have around 100 or more hosts (or fewer hosts with multiple checked
ports).
tested by phessler@
ok jsg@
- Commit:
67bc535b4b3a23c7659ecac8183d920a6470b3de- From:
- jsg <jsg@openbsd.org>
- Date:
add "log brief" and "log verbose" to change logging verbosity
like several other things in the tree.
ok reyk@ looks fine claudio@
- Commit:
b2665266d92bceb7dc70464de456400de7179d27- From:
- reyk <reyk@openbsd.org>
- Date:
change the way relayd reports check results: instead of logging an
arbitrary string in debugging mode, it will store an error code
(HCE_*) for each host. the error code can be translated to a string
(in log.c) for debugging but it will also be passed to relayctl via
the control socket.
from a user point of view, this will print a human-readable error
message in the "relayctl show hosts" output if a host is down because
the check failed. the relayctl(8) manpage includes detailed
explanations of the error messages including mitigations for the
most-common problems.
ok jmc@ (manpages)
ok phessler@
- Commit:
08348b86d5ce0ac714bc087317428d464f7d2128- From:
- reyk <reyk@openbsd.org>
- Date:
terminate the input buffer on failure in print_host()
- Commit:
dac865645820e1db875cb4c2ff93cd6415cdaf31- From:
- reyk <reyk@openbsd.org>
- Date:
use getaddrinfo/getnameinfo to parse ipv6 addresses instead of
inet_pton/inet_ntop to allow specifing and printing the IPv6 scope
identifier. synced host_v6() with ntpd's version to use getaddrinfo()
instead of inet_pton() - host_v4, host_v6, and host_dns could all use
getaddrinfo in a single function by specifing different flags but this
would diverge from the other daemons using this common interface so we
keep this little overhead.
discussed with henning@
ok pyr@
