OpenBSD CVS

CVS log for src/usr.sbin/relayd/check_tcp.c


[BACK] Up to [local] / src / usr.sbin / relayd

Request diff between arbitrary revisions


Default branch: MAIN


Revision 1.61 / (download) - annotate - [select for diffs], Mon Jul 3 09:38:08 2023 UTC (10 months, 4 weeks ago) by claudio
Branch: MAIN
CVS Tags: OPENBSD_7_5_BASE, OPENBSD_7_5, OPENBSD_7_4_BASE, OPENBSD_7_4, HEAD
Changes since 1.60: +3 -3 lines
Diff to previous 1.60 (colored)

Use ibuf_data() instead of accessing ibuf->buf directly.
OK tb@

Revision 1.60 / (download) - annotate - [select for diffs], Wed Jun 21 07:54:54 2023 UTC (11 months, 1 week ago) by claudio
Branch: MAIN
Changes since 1.59: +19 -17 lines
Diff to previous 1.59 (colored)

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@

Revision 1.59 / (download) - annotate - [select for diffs], Tue Jun 20 09:54:57 2023 UTC (11 months, 1 week ago) by claudio
Branch: MAIN
Changes since 1.58: +3 -9 lines
Diff to previous 1.58 (colored)

Replace a ibuf_reserve() dance to add a NUL byte with ibuf_add_zero(buf, 1).
Same thing but far less nasty.
OK tb@

Revision 1.58 / (download) - annotate - [select for diffs], Sat Sep 18 19:44:46 2021 UTC (2 years, 8 months ago) by claudio
Branch: MAIN
CVS Tags: OPENBSD_7_3_BASE, OPENBSD_7_3, OPENBSD_7_2_BASE, OPENBSD_7_2, OPENBSD_7_1_BASE, OPENBSD_7_1, OPENBSD_7_0_BASE, OPENBSD_7_0
Changes since 1.57: +6 -9 lines
Diff to previous 1.57 (colored)

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@

Revision 1.57 / (download) - annotate - [select for diffs], Sun Sep 15 19:23:29 2019 UTC (4 years, 8 months ago) by rob
Branch: MAIN
CVS Tags: OPENBSD_6_9_BASE, OPENBSD_6_9, OPENBSD_6_8_BASE, OPENBSD_6_8, OPENBSD_6_7_BASE, OPENBSD_6_7, OPENBSD_6_6_BASE, OPENBSD_6_6
Changes since 1.56: +44 -14 lines
Diff to previous 1.56 (colored)

Add support for binary protocol health checking. Feedback and guidance from
benno@ and reky@. Man page tweaks from jmc@.

ok benno@

Revision 1.56 / (download) - annotate - [select for diffs], Sat Apr 14 20:42:41 2018 UTC (6 years, 1 month ago) by benno
Branch: MAIN
CVS Tags: OPENBSD_6_5_BASE, OPENBSD_6_5, OPENBSD_6_4_BASE, OPENBSD_6_4
Changes since 1.55: +4 -2 lines
Diff to previous 1.55 (colored)

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@

Revision 1.55 / (download) - annotate - [select for diffs], Tue Jul 4 20:27:09 2017 UTC (6 years, 10 months ago) by benno
Branch: MAIN
CVS Tags: OPENBSD_6_3_BASE, OPENBSD_6_3, OPENBSD_6_2_BASE, OPENBSD_6_2
Changes since 1.54: +14 -6 lines
Diff to previous 1.54 (colored)

if configured, set the ttl (IPV6_UNICAST_HOPS) for ipv6 tcp checks.
From Kapetanakis Giannis, thanks.
ok florian@

Revision 1.54 / (download) - annotate - [select for diffs], Sun May 28 10:39:15 2017 UTC (7 years ago) by benno
Branch: MAIN
Changes since 1.53: +5 -5 lines
Diff to previous 1.53 (colored)

use __func__ in log messages. fix some whitespace while here.
From Hiltjo Posthuma hiltjo -AT codemadness -DOT- org, thanks!
ok florian, claudio

Revision 1.53 / (download) - annotate - [select for diffs], Sat May 27 08:33:25 2017 UTC (7 years ago) by claudio
Branch: MAIN
Changes since 1.52: +2 -2 lines
Diff to previous 1.52 (colored)

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.

Revision 1.52 / (download) - annotate - [select for diffs], Thu Feb 9 11:16:22 2017 UTC (7 years, 3 months ago) by reyk
Branch: MAIN
CVS Tags: OPENBSD_6_1_BASE, OPENBSD_6_1
Changes since 1.51: +7 -3 lines
Diff to previous 1.51 (colored)

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@

Revision 1.51 / (download) - annotate - [select for diffs], Mon Jan 11 21:31:42 2016 UTC (8 years, 4 months ago) by benno
Branch: MAIN
CVS Tags: OPENBSD_6_0_BASE, OPENBSD_6_0, OPENBSD_5_9_BASE, OPENBSD_5_9
Changes since 1.50: +5 -3 lines
Diff to previous 1.50 (colored)

This adds the host_error output and the http code (when available) to the
host-check log.
ok claudio@

Revision 1.50 / (download) - annotate - [select for diffs], Wed Dec 30 12:08:34 2015 UTC (8 years, 5 months ago) by benno
Branch: MAIN
Changes since 1.49: +3 -5 lines
Diff to previous 1.49 (colored)

now that ibuf_free() checks for null, we can remove the check here.
ok mmcc@ millert@

Revision 1.49 / (download) - annotate - [select for diffs], Thu Dec 24 13:58:30 2015 UTC (8 years, 5 months ago) by benno
Branch: MAIN
Changes since 1.48: +2 -21 lines
Diff to previous 1.48 (colored)

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@

Revision 1.48 / (download) - annotate - [select for diffs], Sat Nov 28 09:52:07 2015 UTC (8 years, 6 months ago) by reyk
Branch: MAIN
Changes since 1.47: +3 -5 lines
Diff to previous 1.47 (colored)

Use SOCK_NONBLOCK in relayd as well.

OK benno@

Revision 1.47 / (download) - annotate - [select for diffs], Fri Aug 21 08:45:51 2015 UTC (8 years, 9 months ago) by yasuoka
Branch: MAIN
Changes since 1.46: +21 -2 lines
Diff to previous 1.46 (colored)

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

Revision 1.46 / (download) - annotate - [select for diffs], Thu Jan 22 17:42:09 2015 UTC (9 years, 4 months ago) by reyk
Branch: MAIN
CVS Tags: OPENBSD_5_8_BASE, OPENBSD_5_8, OPENBSD_5_7_BASE, OPENBSD_5_7
Changes since 1.45: +4 -5 lines
Diff to previous 1.45 (colored)

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@

Revision 1.45 / (download) - annotate - [select for diffs], Fri Jan 16 15:06:40 2015 UTC (9 years, 4 months ago) by deraadt
Branch: MAIN
Changes since 1.44: +1 -2 lines
Diff to previous 1.44 (colored)

Adapt to <limits.h> universe.
ok millert

Revision 1.44 / (download) - annotate - [select for diffs], Fri Dec 12 10:05:09 2014 UTC (9 years, 5 months ago) by reyk
Branch: MAIN
Changes since 1.43: +3 -3 lines
Diff to previous 1.43 (colored)

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@

Revision 1.43 / (download) - annotate - [select for diffs], Thu May 15 07:56:26 2014 UTC (10 years ago) by reyk
Branch: MAIN
CVS Tags: OPENBSD_5_6_BASE, OPENBSD_5_6
Changes since 1.42: +2 -2 lines
Diff to previous 1.42 (colored)

Use log_warn() to include errno if write() fails.

From thib

Revision 1.42 / (download) - annotate - [select for diffs], Fri Jun 17 14:36:51 2011 UTC (12 years, 11 months ago) by jsg
Branch: MAIN
CVS Tags: OPENBSD_5_5_BASE, OPENBSD_5_5, OPENBSD_5_4_BASE, OPENBSD_5_4, OPENBSD_5_3_BASE, OPENBSD_5_3, OPENBSD_5_2_BASE, OPENBSD_5_2, OPENBSD_5_1_BASE, OPENBSD_5_1, OPENBSD_5_0_BASE, OPENBSD_5_0
Changes since 1.41: +3 -2 lines
Diff to previous 1.41 (colored)

don't leak fds in failure path (ie when hosts are down)
from Martin Matuska in PR 6624

ok phessler@

Revision 1.41 / (download) - annotate - [select for diffs], Thu May 19 08:56:49 2011 UTC (13 years ago) by reyk
Branch: MAIN
Changes since 1.40: +30 -29 lines
Diff to previous 1.40 (colored)

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@

Revision 1.40 / (download) - annotate - [select for diffs], Thu May 5 12:01:43 2011 UTC (13 years, 1 month ago) by reyk
Branch: MAIN
Changes since 1.39: +12 -12 lines
Diff to previous 1.39 (colored)

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...

Revision 1.39 / (download) - annotate - [select for diffs], Mon Dec 20 12:38:06 2010 UTC (13 years, 5 months ago) by dhill
Branch: MAIN
CVS Tags: OPENBSD_4_9_BASE, OPENBSD_4_9
Changes since 1.38: +1 -6 lines
Diff to previous 1.38 (colored)

Only set SO_REUSEPORT for listening ports.

Fixes "Address already in use" errors seen on high load.

OK reyk@ pyr@

Revision 1.38 / (download) - annotate - [select for diffs], Tue Nov 30 14:38:45 2010 UTC (13 years, 6 months ago) by reyk
Branch: MAIN
Changes since 1.37: +8 -3 lines
Diff to previous 1.37 (colored)

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@

Revision 1.37 / (download) - annotate - [select for diffs], Wed May 26 13:56:08 2010 UTC (14 years ago) by nicm
Branch: MAIN
CVS Tags: OPENBSD_4_8_BASE, OPENBSD_4_8
Changes since 1.36: +11 -11 lines
Diff to previous 1.36 (colored)

Rename some imsg bits to make namespace collisions less likely buf to
ibuf, buf_read to ibuf_read, READ_BUF_SIZE to IBUF_READ_SIZE.

ok henning gilles claudio jacekm deraadt

Revision 1.36 / (download) - annotate - [select for diffs], Thu Feb 18 14:02:16 2010 UTC (14 years, 3 months ago) by jsg
Branch: MAIN
CVS Tags: OPENBSD_4_7_BASE, OPENBSD_4_7
Changes since 1.35: +2 -1 lines
Diff to previous 1.35 (colored)

Do an event_del before event_set/event_add in case we double add
something here as well.

ok claudio@ phessler@

Revision 1.35 / (download) - annotate - [select for diffs], Fri Aug 7 11:10:23 2009 UTC (14 years, 9 months ago) by reyk
Branch: MAIN
Changes since 1.34: +7 -1 lines
Diff to previous 1.34 (colored)

allow to modify the IP TTL value for host checks.  this can be used to
check if the host is only n hops away and not re-routed over a longer
path.

Revision 1.34 / (download) - annotate - [select for diffs], Thu Jun 4 14:03:22 2009 UTC (15 years ago) by reyk
Branch: MAIN
CVS Tags: OPENBSD_4_6_BASE, OPENBSD_4_6
Changes since 1.33: +2 -1 lines
Diff to previous 1.33 (colored)

tweak

Revision 1.33 / (download) - annotate - [select for diffs], Fri Dec 5 16:37:55 2008 UTC (15 years, 5 months ago) by reyk
Branch: MAIN
CVS Tags: OPENBSD_4_5_BASE, OPENBSD_4_5
Changes since 1.32: +29 -24 lines
Diff to previous 1.32 (colored)

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@

Revision 1.32 / (download) - annotate - [select for diffs], Mon Mar 3 16:58:41 2008 UTC (16 years, 3 months ago) by reyk
Branch: MAIN
CVS Tags: OPENBSD_4_4_BASE, OPENBSD_4_4, OPENBSD_4_3_BASE, OPENBSD_4_3
Changes since 1.31: +13 -13 lines
Diff to previous 1.31 (colored)

log a different notification message when the tcp check times out.
also adjust the documentation a little bit to decrease confusion about
the check timeout.

From pyr@
ok deraadt@

Revision 1.31 / (download) - annotate - [select for diffs], Fri Dec 7 17:17:00 2007 UTC (16 years, 5 months ago) by reyk
Branch: MAIN
Changes since 1.30: +2 -2 lines
Diff to previous 1.30 (colored)

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

Revision 1.30 / (download) - annotate - [select for diffs], Sat Nov 24 17:07:28 2007 UTC (16 years, 6 months ago) by reyk
Branch: MAIN
Changes since 1.29: +3 -4 lines
Diff to previous 1.29 (colored)

sort includes, adjust to style(9)

Revision 1.29 / (download) - annotate - [select for diffs], Wed Nov 21 20:13:20 2007 UTC (16 years, 6 months ago) by reyk
Branch: MAIN
Changes since 1.28: +2 -10 lines
Diff to previous 1.28 (colored)

move digest string handling into an extra function.

Revision 1.28 / (download) - annotate - [select for diffs], Wed Nov 21 13:04:42 2007 UTC (16 years, 6 months ago) by reyk
Branch: MAIN
Changes since 1.27: +12 -3 lines
Diff to previous 1.27 (colored)

allow the http digest type to be either SHA1 or MD5 determined by the
digest string length; it is compatible to any existing SHA1-only
configurations.

ok pyr@ gilles@

Revision 1.27 / (download) - annotate - [select for diffs], Mon Nov 19 15:20:18 2007 UTC (16 years, 6 months ago) by reyk
Branch: MAIN
Changes since 1.26: +3 -3 lines
Diff to previous 1.26 (colored)

knf (replace some ';;' with a single ';')

Revision 1.26 / (download) - annotate - [select for diffs], Fri Sep 28 13:29:56 2007 UTC (16 years, 8 months ago) by pyr
Branch: MAIN
Changes since 1.25: +2 -2 lines
Diff to previous 1.25 (colored)

Correct my mail address.

Revision 1.25 / (download) - annotate - [select for diffs], Thu Jun 7 14:17:33 2007 UTC (16 years, 11 months ago) by pyr
Branch: MAIN
Changes since 1.24: +5 -1 lines
Diff to previous 1.24 (colored)

always close sockets before calling hce_notify_done.
first spotted by Paulius Bulotas <paulius+openbsd-misc at devnull.lt>.

Revision 1.24 / (download) - annotate - [select for diffs], Sun May 27 20:53:10 2007 UTC (17 years ago) by pyr
Branch: MAIN
Changes since 1.23: +26 -26 lines
Diff to previous 1.23 (colored)

Second step towards hoststated reload:
First split out hosts, tables and services into to structs, one that
contains the runtime fields and one (inside the runtime) that contains
mostly static fields that will be sent over the socket during reload.

Also move the demoted field of tables inside the flags field as its
just a boolean.
ok reyk@

Revision 1.23 / (download) - annotate - [select for diffs], Thu Feb 22 05:58:06 2007 UTC (17 years, 3 months ago) by reyk
Branch: MAIN
Changes since 1.22: +4 -4 lines
Diff to previous 1.22 (colored)

spacing

Revision 1.22 / (download) - annotate - [select for diffs], Thu Feb 8 13:32:24 2007 UTC (17 years, 3 months ago) by reyk
Branch: MAIN
Changes since 1.21: +4 -3 lines
Diff to previous 1.21 (colored)

carefully check some return values and make lint happier.  never pass
any truncated strings (table names/anchors/tags/...) to pf and the
kernel.

ok pyr@

Revision 1.21 / (download) - annotate - [select for diffs], Wed Feb 7 15:13:00 2007 UTC (17 years, 3 months ago) by reyk
Branch: MAIN
Changes since 1.20: +28 -21 lines
Diff to previous 1.20 (colored)

include the host name in log_debug() messages used by check_tcp read
callbacks.

Revision 1.20 / (download) - annotate - [select for diffs], Wed Feb 7 14:54:13 2007 UTC (17 years, 3 months ago) by reyk
Branch: MAIN
Changes since 1.19: +1 -2 lines
Diff to previous 1.19 (colored)

another log_debug() removal ("nothing to write")

Revision 1.19 / (download) - annotate - [select for diffs], Wed Feb 7 14:45:12 2007 UTC (17 years, 3 months ago) by reyk
Branch: MAIN
Changes since 1.18: +1 -2 lines
Diff to previous 1.18 (colored)

more log_debug() cleanup

Revision 1.18 / (download) - annotate - [select for diffs], Wed Feb 7 14:39:45 2007 UTC (17 years, 3 months ago) by reyk
Branch: MAIN
Changes since 1.17: +1 -2 lines
Diff to previous 1.17 (colored)

remove superfluos log_debug() messages

ok pyr@

Revision 1.17 / (download) - annotate - [select for diffs], Tue Feb 6 10:27:33 2007 UTC (17 years, 3 months ago) by reyk
Branch: MAIN
Changes since 1.16: +11 -7 lines
Diff to previous 1.16 (colored)

update some more debug messages and fix typos. also remove some extra
debug noise from ssl.c.

Revision 1.16 / (download) - annotate - [select for diffs], Tue Feb 6 10:26:13 2007 UTC (17 years, 3 months ago) by pyr
Branch: MAIN
Changes since 1.15: +5 -1 lines
Diff to previous 1.15 (colored)

now that check_http_code, check_http_digest and check_send_expect are
in check_tcp.c, prototype them in check_tcp.c
ok reyk@

Revision 1.15 / (download) - annotate - [select for diffs], Sat Feb 3 20:24:21 2007 UTC (17 years, 4 months ago) by reyk
Branch: MAIN
Changes since 1.14: +108 -1 lines
Diff to previous 1.14 (colored)

merge tcp-based checks into one file, no functional changes

ok pyr@

Revision 1.14 / (download) - annotate - [select for diffs], Sat Feb 3 17:45:59 2007 UTC (17 years, 4 months ago) by reyk
Branch: MAIN
Changes since 1.13: +1 -2 lines
Diff to previous 1.13 (colored)

remove debug message

Revision 1.13 / (download) - annotate - [select for diffs], Tue Jan 30 10:09:02 2007 UTC (17 years, 4 months ago) by pyr
Branch: MAIN
Changes since 1.12: +23 -20 lines
Diff to previous 1.12 (colored)

style changes.
ok reyk@

Revision 1.12 / (download) - annotate - [select for diffs], Mon Jan 29 14:23:31 2007 UTC (17 years, 4 months ago) by pyr
Branch: MAIN
Changes since 1.11: +12 -2 lines
Diff to previous 1.11 (colored)

Add SSL support to hoststated.
with help and OK reyk@
with help and advice by claudio@ and Srebrenko Sehic

Revision 1.11 / (download) - annotate - [select for diffs], Sat Jan 20 16:32:10 2007 UTC (17 years, 4 months ago) by pyr
Branch: MAIN
Changes since 1.10: +4 -6 lines
Diff to previous 1.10 (colored)

when retrying a write, the position was previously not updated.
ok reyk@

Revision 1.10 / (download) - annotate - [select for diffs], Fri Jan 12 16:43:01 2007 UTC (17 years, 4 months ago) by pyr
Branch: MAIN
Changes since 1.9: +121 -9 lines
Diff to previous 1.9 (colored)

eliminate duplicate tcp read/write code.
ok claudio@, reyk@

Revision 1.9 / (download) - annotate - [select for diffs], Thu Jan 11 18:05:08 2007 UTC (17 years, 4 months ago) by reyk
Branch: MAIN
Changes since 1.8: +13 -12 lines
Diff to previous 1.8 (colored)

use real async events for checks and improve the non-blocking socket
usage. also modify the check_icmp code to use non-blocking raw sockets
and merge the icmp4 and icmp6 functions. some other minor changes
while i'm here.

as discussed with pyr@ claudio@ deraadt@
ok pyr@

Revision 1.8 / (download) - annotate - [select for diffs], Tue Jan 9 00:45:32 2007 UTC (17 years, 4 months ago) by deraadt
Branch: MAIN
Changes since 1.7: +2 -2 lines
Diff to previous 1.7 (colored)

adapt to rename

Revision 1.7 / (download) - annotate - [select for diffs], Mon Jan 8 20:46:18 2007 UTC (17 years, 4 months ago) by reyk
Branch: MAIN
Changes since 1.6: +1 -2 lines
Diff to previous 1.6 (colored)

do NOT use the regexp interface. it is way to complicated, error-prone
and we don't know about all the possible security problems.

change the check send/expect code to use the fnmatch(3) interface
using shell globbing rules instead. this allows simple patterns like
"220 * ESMTP*" or "SSH-[12].??-*".

suggested by deraadt@ and otto@
ok Pierre-Yves Ritschard (pyr at spootnik dot org)

Revision 1.6 / (download) - annotate - [select for diffs], Mon Jan 8 17:10:23 2007 UTC (17 years, 4 months ago) by reyk
Branch: MAIN
Changes since 1.5: +3 -3 lines
Diff to previous 1.5 (colored)

allow to use service names in addition to numerical port numbers in
the configuration file, eg. "real port http".

> From Pierre-Yves Ritschard (pyr at spootnik dot org)

ok claudio@

Revision 1.5 / (download) - annotate - [select for diffs], Mon Jan 8 13:37:26 2007 UTC (17 years, 4 months ago) by reyk
Branch: MAIN
Changes since 1.4: +7 -1 lines
Diff to previous 1.4 (colored)

add a generic send/expect check using regular expression (see
regex(3)).  this allows to define additional checks for other TCP
protocols.

From Pierre-Yves Ritschard (pyr at spootnik dot org)

Revision 1.4 / (download) - annotate - [select for diffs], Mon Dec 25 19:05:41 2006 UTC (17 years, 5 months ago) by reyk
Branch: MAIN
Changes since 1.3: +2 -3 lines
Diff to previous 1.3 (colored)

fix the conversion from milliseconds to struct timeval, which uses
seconds (tv_sec) and microseconds (tv_usec), but the code assumed
seconds and milliseconds...

Revision 1.3 / (download) - annotate - [select for diffs], Mon Dec 25 18:12:14 2006 UTC (17 years, 5 months ago) by reyk
Branch: MAIN
Changes since 1.2: +84 -60 lines
Diff to previous 1.2 (colored)

partial rewrite of the check_* routines to use libevent everywhere
instead of nested select() calls and to handle the non-blocking
sockets properly.

From Pierre-Yves Ritschard (pyr at spootnik dot org)
(with a little help by me)

Revision 1.2 / (download) - annotate - [select for diffs], Sat Dec 16 12:42:14 2006 UTC (17 years, 5 months ago) by reyk
Branch: MAIN
Changes since 1.1: +4 -3 lines
Diff to previous 1.1 (colored)

knf, spacing

please note that some editors will replace tabs with multiple spaces
if you cut & paste code from other sections.  please try to keep the
tabs ;).

Revision 1.1 / (download) - annotate - [select for diffs], Sat Dec 16 11:45:07 2006 UTC (17 years, 5 months ago) by reyk
Branch: MAIN

Import hostated, the host status daemon.  This daemon will monitor
remote hosts and dynamically alter pf(4) tables and redirection rules
for active server load balancing.  The daemon has been written by
Pierre-Yves Ritschard (pyr at spootnik.org) and was formerly known as
"slbd".

The daemon is fully functional but it still needs some work and
cleanup so we don't link it to the build yet.  Some TODOs are a
partial rewrite of the check_* routines (use libevent whenever we
can), improvement of the manpages, and general knf and cleanup.

ok deraadt@ claudio@

This form allows you to request diff's between any two revisions of a file. You may select a symbolic revision name using the selection box or you may type in a numeric name using the type-in text box.