Up to [local] / src / usr.sbin / hoststated
Request diff between arbitrary revisions
Default branch: MAIN
Revision 1.31, Fri Dec 7 17:27:07 2007 UTC (16 years, 5 months ago) by deraadt
Branch: MAIN
CVS Tags: HEAD
Changes since 1.30: +1 -1 lines
FILE REMOVED
hoststated/hoststatectl get repository copied (and de-tagged) into relayd/relayctl. This is a more suitable place for a daemon that has grown out of it's initial roots of "monitoring and redirecting services at various layers", into one that is "a full featured proxy, which happens to know what is up/down"
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
CVS Tags: OPENBSD_4_2_BASE,
OPENBSD_4_2
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
CVS Tags: OPENBSD_4_1_BASE,
OPENBSD_4_1
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@