summaryrefslogtreecommitdiff
path: root/usr.sbin/relayd
AgeCommit message (Collapse)Author
2009-06-05sync buffer.c with ospfd, send out buf->wpos and not buf->size.Pierre-Yves Ritschard
2009-06-05some KNF cleanup following the last sed.Pierre-Yves Ritschard
2009-06-05Make imsg completely async model agnostic by not requiring anPierre-Yves Ritschard
imsg_event_add function to be provided (which ended up being a named callback). Instead provide a wrapper in the daemon and call that everywhere. Previsously discussed with the usual suspects, ok eric@ though not too happy about the function name (imsg_compose_event).
2009-06-04move logging functions out of imsg.h, make imsg.c more library readyPierre-Yves Ritschard
by not calling log_* or fatal and handle set errno when appropriate. discussed with a bunch of imsg conscious guys, ok eric@
2009-06-04change imsg_close() return type to void. It never fails nor does itEric Faurot
return any useful value. "ok now" pyr@
2009-06-04- move message types enum back to relayd.hEric Faurot
- use u_int16_t instead of enum imsg_type in imsg function prototypes requested by reyk@, ok pyr@
2009-06-04revert previous commit for now since it won't play well with snmpd.Eric Faurot
ok pyr@
2009-06-04make the imsg framework endian-safe so that it can also be usedEric Faurot
for network message passing. ok pyr@
2009-06-04remove unused variableReyk Floeter
2009-06-04tweakReyk Floeter
2009-06-04Keep around the SSL session for each checked host. This way SSLReyk Floeter
caching can kick in on subsequent checks, making them faster and lighter on the server. From camield, closes PR 6137 (modified diff)
2009-06-04Make imsg.c and buffer.c more generic by introducingEric Faurot
imsg.h and a daemon-specific imsg_types.h discussed with and "yes, please" pyr@
2009-06-03cleanup contorted and slightly broken call to imsg_get_fdEric Faurot
ok pyr@
2009-06-03initialize queueEric Faurot
ok pyr@
2009-06-03change buf_close return type to void.Eric Faurot
that function is not supposed to report anything remotely useful, or fail in any meaningful way. ok pyr@
2009-06-02bring in buf_seek, buf_size and buf_left from bgpdEric Faurot
ok pyr@
2009-06-02constify argument to buf_addEric Faurot
ok pyr@
2009-06-02- minor tweaksJason McIntyre
- remove unneccessary -compact from a list - remove unneccessary Xo/Xc before it gets copied all over the place
2009-06-02make it clear that setting the global timeout late will mess things up.Pierre-Yves Ritschard
2009-06-02note that order is important in the file regarding global options at this ↵Janne Johansson
time. ok pyr@
2009-06-02remove extra imsg_event_add() after EV_WRITE checks - this is notReyk Floeter
required because it is called later and there is no return before. ok gilles@
2009-06-02Libevent may do an upcall with both EV_READ and EV_WRITE set.Reyk Floeter
So change the code accordingly to allow that. Found by claudio@ in ospfd
2009-04-24Allow UDP and/or TCP redirections instead of just TCP.Reyk Floeter
Thanks to Marek Grzybowski for feedback and testing. ok jmc@ (manpage bits)
2009-04-24don't truncate http headers when no separator is given between key andPierre-Yves Ritschard
value. ok & ``makes sense'' reyk@
2009-04-17close filedescriptors with closefrom(STDERR_FILENO + 1) before executingReyk Floeter
the script to prevent access to internal processes. From jacekm@
2009-04-17keep the parent relations of hosts after reloading the configuration.Reyk Floeter
From Camiel Dobbelaar, closes PR 6066
2009-04-17add "Connection: close" to HTTP check headers to deconfuse HTTP/1.1Reyk Floeter
servers claiming keepalive sessions. From Camiel Dobbelaar
2009-04-16fix a few more typos found by spell(1); rectify a double "with" pointed outIgor Sobrado
by jmc@ while looking at this diff. ok jmc@, reyk@ (for the hostapd part)
2009-04-02add support to specify a ca file (eg. /etc/ssl/cert.pem) to verify sslReyk Floeter
server certificates when connecting as an SSL client from relays. it works so far, but needs more testing and is currently lacking support for certificate revocation (like CRL or OCSP). the file ssl_privsep.c is extended to implement more code that should be in openssl to allow loading the ca from chroot...
2009-04-01fix an incorrect flag in route mode.Reyk Floeter
From Padcal Lalonde, closes PR 6114
2009-04-01re-initialize tables after reload to handle new and changed tables.Reyk Floeter
From Pascal Lalonde, closes PR 6112
2009-04-01Add support for client-side SSL connections from relays. relayd canReyk Floeter
now sit between two SSL connections (Oitm - OpenBSD-in-the-middle), accept SSL connections and forward to TCP, accept TCP connections and forward to SSL, and do TCP to TCP of course. This was tested by some people a while ago.
2009-04-01terminate and cleanup properly by setting the pf anchor namesReyk Floeter
correctly (anchor names with characters after the terminating NUL byte are considered invalid). Thanks to camield@
2009-03-31Fixed memory leaks which would occur if the second of two memoryTobias Stoeckmann
allocations fails. looks right deraadt, krw ok henning
2009-02-25Fix an invalid pointer dereference in control_close(). If control_connbyfd()Claudio Jeker
fails -- which should never happen -- the function does not return and is accession the NULL set control pointer later on. Found by Matthew Haub. OK deraadt@
2009-02-16relayd complains about a table called "backup", so change it toJason McIntyre
fallback, as used in /etc/relayd.conf; from Patrik Lundin
2008-12-08change the handling of redirections with the sticky-address option set:Reyk Floeter
instead of flushing the complete source tracking table (sticky addresses) in pf on host state changes, just flush the entries for hosts that have been marked as down in the relayd table. this fixes ugly problems with users loosing their sessions if another host or redirection was going down. ok cloder@
2008-12-05use HTTP/1.1 instead of HTTP/1.0 if a host header is specified.Reyk Floeter
spotted by phessler@
2008-12-05change the way relayd reports check results: instead of logging anReyk Floeter
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@
2008-12-04cosmetic changes:Reyk Floeter
- log table changes in sync_table() if "log updates" is enabled. before we only logged these changes in debug mode when running relayd in foreground. - type in a log message
2008-11-09typo fixed (overriden -> overridden)Tobias Stoeckmann
ok espie, jmc
2008-10-17bring in the findeol() fix from pfctl. list of affected parsers by sthenHenning Brauer
2008-10-05tweak previous;Jason McIntyre
2008-10-03Unify code between the various flavors of imsg buffer.c.Eric Faurot
Use unsigned int for msg_iovlen. ok henning@ claudio@
2008-09-29fix log option with filter rulesReyk Floeter
2008-09-29also log the label if available for the matching rule node (like theReyk Floeter
URL filter category etc.)
2008-09-29spacingReyk Floeter
2008-09-29Change parsing of comments in external rule files. The hash mark mayReyk Floeter
appear in URLs (eg. /index.html#anchor), so only allow full-line comments indicated by a hash mark # at the beginning of a line.
2008-09-29allow to load expect, filter, log, and remove keys from external filesReyk Floeter
just containing on key per line. this allows easier use of URL white/blacklists from external sources.
2008-09-29sort tokens for better readabilityReyk Floeter