diff options
author | Jun Kuriyama <kuriyama@FreeBSD.org> | 2008-01-20 21:38:26 +0000 |
---|---|---|
committer | Jun Kuriyama <kuriyama@FreeBSD.org> | 2008-01-20 21:38:26 +0000 |
commit | 304acfbef819ce1a154b526144a10cc3346a8f4f (patch) | |
tree | 2610e87b8112219eb5f34b75f44cbfc66f86289b /net/relayd/files/patch-ctl-relayctl.c | |
parent | - Update to 4.12 (diff) |
OpenBSD's Relay Daemon (previously known as hoststated).
relayd is a daemon to relay and dynamically redirect incoming
connections to a target host. Its main purposes are to run as a
load-balancer, application layer gateway, or transparent proxy. The
daemon is able to monitor groups of hosts for availability, which is
determined by checking for a specific service common to a host group.
WWW: http://spootnik.org/relayd/
# This port will work on $OSVERSION >= 700049.
# If you want to use on RELENG_6, apply a patch in
# http://www.openbsd.org/cgi-bin/cvsweb/src/sys/net/pf_table.c.diff?r1=1.67&r2=1.68
Diffstat (limited to 'net/relayd/files/patch-ctl-relayctl.c')
-rw-r--r-- | net/relayd/files/patch-ctl-relayctl.c | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/net/relayd/files/patch-ctl-relayctl.c b/net/relayd/files/patch-ctl-relayctl.c new file mode 100644 index 000000000000..7aa04fa8810a --- /dev/null +++ b/net/relayd/files/patch-ctl-relayctl.c @@ -0,0 +1,19 @@ +--- relayctl/relayctl.c.orig Thu Feb 22 14:59:13 2007 ++++ relayctl/relayctl.c Fri Jun 8 13:00:53 2007 +@@ -20,6 +20,7 @@ + */ + + #include <sys/types.h> ++#include <sys/param.h> + #include <sys/socket.h> + #include <sys/queue.h> + #include <sys/un.h> +@@ -286,7 +287,7 @@ + imn = monitor_lookup(imsg->hdr.type); + printf("%s: imsg type %u len %u peerid %u pid %d\n", imn->name, + imsg->hdr.type, imsg->hdr.len, imsg->hdr.peerid, imsg->hdr.pid); +- printf("\ttimestamp: %u, %s", now, ctime(&now)); ++ printf("\ttimestamp: %lu, %s", (unsigned long)now, ctime(&now)); + if (imn->type == -1) + done = 1; + if (imn->func != NULL) |