#
9b2c1562 |
| 21-Mar-2017 |
bluhm <bluhm@openbsd.org> |
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@
|
#
871fc12c |
| 09-Jan-2017 |
reyk <reyk@openbsd.org> |
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 ben
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)
show more ...
|
#
9f5ef5a9 |
| 08-Jan-2017 |
reyk <reyk@openbsd.org> |
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.
|
#
a6bfe157 |
| 12-Oct-2016 |
reyk <reyk@openbsd.org> |
copy updated log.c from vmd: for correctness, save errno when doing additional actions before printing it. OK rzalamena@
|
#
cd7658e8 |
| 07-Dec-2015 |
reyk <reyk@openbsd.org> |
sync with vmd
|
#
0f12961a |
| 22-Nov-2015 |
reyk <reyk@openbsd.org> |
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@
|
#
d4fdf7ed |
| 21-Nov-2015 |
reyk <reyk@openbsd.org> |
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 s
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.
show more ...
|
#
7fb21699 |
| 21-Nov-2015 |
reyk <reyk@openbsd.org> |
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
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.
show more ...
|
#
f04ff968 |
| 22-Jan-2015 |
reyk <reyk@openbsd.org> |
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@
|
#
395002a2 |
| 21-Dec-2014 |
guenther <guenther@openbsd.org> |
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@
|
#
7bb52228 |
| 12-Dec-2014 |
reyk <reyk@openbsd.org> |
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 ch
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@
show more ...
|
#
1543e3f7 |
| 25-Oct-2014 |
lteo <lteo@openbsd.org> |
Remove unnecessary netinet/in_systm.h include.
ok millert@
|
#
543ef491 |
| 12-Jul-2014 |
reyk <reyk@openbsd.org> |
Move HTTP error codes into http.h.
ok benno@
|
#
8b94eab4 |
| 18-Apr-2014 |
reyk <reyk@openbsd.org> |
fix previous
|
#
8b624d89 |
| 18-Apr-2014 |
reyk <reyk@openbsd.org> |
spacing
|
#
c0bc1623 |
| 27-Nov-2013 |
deraadt <deraadt@openbsd.org> |
unsigned char for ctype
|
#
fd1841a3 |
| 10-Mar-2013 |
reyk <reyk@openbsd.org> |
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 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@
show more ...
|
#
0ccd53b9 |
| 27-Nov-2012 |
guenther <guenther@openbsd.org> |
Add format attributes to the proper functions and then fix the warnings that gcc then reports when compiling with -DDEBUG=2
ok reyk@ benno@
|
#
471dd29d |
| 12-Apr-2011 |
reyk <reyk@openbsd.org> |
update flags and printing of flags in debug mode, handle splicing flag.
|
#
bb8fa3fe |
| 30-Nov-2010 |
reyk <reyk@openbsd.org> |
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 fairl
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@
show more ...
|
#
f579a0f7 |
| 11-Jan-2010 |
jsg <jsg@openbsd.org> |
add "log brief" and "log verbose" to change logging verbosity like several other things in the tree.
ok reyk@ looks fine claudio@
|
#
c0dc99f6 |
| 05-Dec-2008 |
reyk <reyk@openbsd.org> |
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
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@
show more ...
|
#
47a88e5d |
| 18-Jul-2008 |
reyk <reyk@openbsd.org> |
terminate the input buffer on failure in print_host()
|
#
676eb00e |
| 17-Jul-2008 |
reyk <reyk@openbsd.org> |
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()
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@
show more ...
|
#
748ceb64 |
| 07-Dec-2007 |
reyk <reyk@openbsd.org> |
hoststated gets renamed to relayd. easier to type, and actually says what the daemon does - it is a relayer that pays attention to the status of pools of hosts; not a status checkers that happens to
hoststated gets renamed to relayd. easier to type, and actually says what the daemon does - it is a relayer that pays attention to the status of pools of hosts; not a status checkers that happens to do some relaying
show more ...
|