Commits
- Commit:
6b5c4000434cc5dc67e202d8aede2f543b5b2bf3- From:
- rsadowski <rsadowski@openbsd.org>
- Date:
Standardize logging with bgpd
OK claudio@
- Commit:
a47191178b2b2a80d88cf51690e186167bbc5326- From:
- claudio <claudio@openbsd.org>
- Date:
Use ibuf_data() instead of accessing ibuf->buf directly.
OK tb@
- Commit:
64b0dc5e6f9a9388e5007b02a24758a92f9d645b- From:
- claudio <claudio@openbsd.org>
- Date:
Simplify and clean up the code. Try to use more ibuf idioms but the
mix of types used in these functions make this rather hard.
The expected data checks are still not great but a step in the right
direction.
OK tb@
- Commit:
4010a5ee4d9716cd6db81a54e3af8b321f765d90- From:
- claudio <claudio@openbsd.org>
- Date:
Replace a ibuf_reserve() dance to add a NUL byte with ibuf_add_zero(buf, 1).
Same thing but far less nasty.
OK tb@
- Commit:
e8b51d49e332c5484256d1f2f8944b75de706ac8- From:
- claudio <claudio@openbsd.org>
- Date:
check_send_expect() does some nasty ibuf magic to allow fn_match()
to work with a buffer that is not a real string.
The wpos is decremented in the wrong spot and would affect both
binary and non binary checks.
Simplify this code by using strndup.
OK rob@ benno@
- Commit:
738b3cc9ee5e087ffe860159c9e5c5c0bd4d1d7e- From:
- rob <rob@openbsd.org>
- Date:
Add support for binary protocol health checking. Feedback and guidance from
benno@ and reky@. Man page tweaks from jmc@.
ok benno@
- Commit:
5d6b7c18f7c4050940b66ed2d8726c3be2e4110e- From:
- benno <benno@openbsd.org>
- Date:
In case of a tcp read timeout, the destination host state needs to be
set to HOST_DOWN.
Noticed and fixed by Rivo Nurges <Rivo DOT Nurges AT smit DOT ee>
ok and reminder florian@
- Commit:
0d3a002e3fc84fdca542cec9f94b30a48bff06f0- From:
- benno <benno@openbsd.org>
- Date:
if configured, set the ttl (IPV6_UNICAST_HOPS) for ipv6 tcp checks.
From Kapetanakis Giannis, thanks.
ok florian@
- Commit:
09e53feeaa2a7c28a81c8bac20bab18c68d83883- From:
- benno <benno@openbsd.org>
- Date:
use __func__ in log messages. fix some whitespace while here.
From Hiltjo Posthuma hiltjo -AT codemadness -DOT- org, thanks!
ok florian, claudio
- Commit:
f4a6eef32d65cd21b8ae3ff004c9e6df1da60025- From:
- claudio <claudio@openbsd.org>
- Date:
Migrate relayd to use libtls for TLS. Still does the TLS privsep via the
engine but at least we can use a sane API for new features.
Going in now so it is possible to work with this in tree.
General agreement at d2k17.
- Commit:
d90afa1e2cf7769ba5b4e309e19dcad44f21198d- From:
- reyk <reyk@openbsd.org>
- Date:
Do not loose the send/expect validation error on timeout.
When a read timeout is reached, the code also has to check if there is
already anything in the input buffer and verify it again. This fixes
relayd and relayctl to show "send/expect failed" instead of "tcp read
timeout".
Found by Michael W. Lucas (while working on the Relayd Mastery book).
Thanks.
OK benno@
- Commit:
e7687e91c90bb114ce51e47e58f29f730f964ba5- From:
- benno <benno@openbsd.org>
- Date:
This adds the host_error output and the http code (when available) to the
host-check log.
ok claudio@
- Commit:
d3d5a1545be0e96b02cf1202aa524997dcb7129f- From:
- benno <benno@openbsd.org>
- Date:
now that ibuf_free() checks for null, we can remove the check here.
ok mmcc@ millert@
- Commit:
71ae3402d3ef91c57accdafc1f23e9ad86cceac9- From:
- benno <benno@openbsd.org>
- Date:
revert check_tcp rev 1.41 by yasuoka@
This part was not meant to be commited, only the bits in check_icmp.c
and relayd.h are ok.
ok yasuoka@
- Commit:
24dcf092825c2f258ae81a032dfe529978e6dd09- From:
- reyk <reyk@openbsd.org>
- Date:
Use SOCK_NONBLOCK in relayd as well.
OK benno@
- Commit:
779fb716f42306f7d74105ac3d0ecdee0db55916- From:
- yasuoka <yasuoka@openbsd.org>
- Date:
Increase the input side socket buffer size for "check icmp" not to
drop the reply messages when "check icmp" is used with many hosts.
ok reyk benno
- 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:
2f6ec04dcc8d2ec0050455263b94308f36252825- From:
- deraadt <deraadt@openbsd.org>
- Date:
Adapt to <limits.h> universe.
ok millert
- 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:
87300aaf80ecc90eb1efe5e59052b64a7a4e4942- From:
- reyk <reyk@openbsd.org>
- Date:
Use log_warn() to include errno if write() fails.
From thib
- Commit:
4de4b10bc7a8957c14e3c900da29fcc29b8f5189- From:
- jsg <jsg@openbsd.org>
- Date:
don't leak fds in failure path (ie when hosts are down)
from Martin Matuska in PR 6624
ok phessler@
- Commit:
591e6ab59d9901a8a5a1eec8f4593ffc39656829- From:
- reyk <reyk@openbsd.org>
- Date:
Fix reload support in relayd(8) by reimplementing large parts of the
daemon infrastructure. The previous design made it fairly hard to
reload the complex data structures, especially relays and protocols.
One of the reasons was that the privsep'd relayd processes had two
ways of getting their configuration: 1) from memory after forking from
the parent process and 2) and (partially) via imsgs after reload. The
new implementation first forks the privsep'd children before the
parents loads the configuration and sends it via imsgs to them; so it
is only like 2) before. It is based on an approach that I first
implemented for iked(8) and I also fixed many bugs in the code.
Thanks to many testers including dlg@ sthen@ phessler@
ok pyr@ dlg@ sthen@
- Commit:
666bd316da38eef77379216e92680abfa93b938a- From:
- reyk <reyk@openbsd.org>
- Date:
Update all logging and debug functions to use the __func__ macro
instead of static function names. __func__ is C99 and perfectly fine
to use. It also avoids printing errors; for example if a statement
log_debug("foo:"..) was moved or copied from function foo() to bar()
and the log message was not updated...
- Commit:
9ce3310dce3f5f989439e1c697ce164d6b4151a2- From:
- dhill <dhill@openbsd.org>
- Date:
Only set SO_REUSEPORT for listening ports.
Fixes "Address already in use" errors seen on high load.
OK reyk@ pyr@
- 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@
