summaryrefslogtreecommitdiff
path: root/usr.sbin/hoststated/check_tcp.c
AgeCommit message (Collapse)Author
2007-09-28Correct my mail address.Pierre-Yves Ritschard
2007-06-07always close sockets before calling hce_notify_done.Pierre-Yves Ritschard
first spotted by Paulius Bulotas <paulius+openbsd-misc at devnull.lt>.
2007-05-27Second step towards hoststated reload:Pierre-Yves Ritschard
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@
2007-02-22spacingReyk Floeter
2007-02-08carefully check some return values and make lint happier. never passReyk Floeter
any truncated strings (table names/anchors/tags/...) to pf and the kernel. ok pyr@
2007-02-07include the host name in log_debug() messages used by check_tcp readReyk Floeter
callbacks.
2007-02-07another log_debug() removal ("nothing to write")Reyk Floeter
2007-02-07more log_debug() cleanupReyk Floeter
2007-02-07remove superfluos log_debug() messagesReyk Floeter
ok pyr@
2007-02-06update some more debug messages and fix typos. also remove some extraReyk Floeter
debug noise from ssl.c.
2007-02-06now that check_http_code, check_http_digest and check_send_expect arePierre-Yves Ritschard
in check_tcp.c, prototype them in check_tcp.c ok reyk@
2007-02-03merge tcp-based checks into one file, no functional changesReyk Floeter
ok pyr@
2007-02-03remove debug messageReyk Floeter
2007-01-30style changes.Pierre-Yves Ritschard
ok reyk@
2007-01-29Add SSL support to hoststated.Pierre-Yves Ritschard
with help and OK reyk@ with help and advice by claudio@ and Srebrenko Sehic
2007-01-20when retrying a write, the position was previously not updated.Pierre-Yves Ritschard
ok reyk@
2007-01-12eliminate duplicate tcp read/write code.Pierre-Yves Ritschard
ok claudio@, reyk@
2007-01-11use real async events for checks and improve the non-blocking socketReyk Floeter
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@
2007-01-09adapt to renameTheo de Raadt
2007-01-08do NOT use the regexp interface. it is way to complicated, error-proneReyk Floeter
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)
2007-01-08allow to use service names in addition to numerical port numbers inReyk Floeter
the configuration file, eg. "real port http". > From Pierre-Yves Ritschard (pyr at spootnik dot org) ok claudio@
2007-01-08add a generic send/expect check using regular expression (seeReyk Floeter
regex(3)). this allows to define additional checks for other TCP protocols. From Pierre-Yves Ritschard (pyr at spootnik dot org)
2006-12-25fix the conversion from milliseconds to struct timeval, which usesReyk Floeter
seconds (tv_sec) and microseconds (tv_usec), but the code assumed seconds and milliseconds...
2006-12-25partial rewrite of the check_* routines to use libevent everywhereReyk Floeter
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)
2006-12-16knf, spacingReyk Floeter
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 ;).
2006-12-16Import hostated, the host status daemon. This daemon will monitorReyk Floeter
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@