From 304acfbef819ce1a154b526144a10cc3346a8f4f Mon Sep 17 00:00:00 2001 From: Jun Kuriyama Date: Sun, 20 Jan 2008 21:38:26 +0000 Subject: 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 --- net/relayd/files/patch-d-carp.c | 44 +++++++++++++++++++++++++++++++++++++++++ 1 file changed, 44 insertions(+) create mode 100644 net/relayd/files/patch-d-carp.c (limited to 'net/relayd/files/patch-d-carp.c') diff --git a/net/relayd/files/patch-d-carp.c b/net/relayd/files/patch-d-carp.c new file mode 100644 index 000000000000..57cafacf3229 --- /dev/null +++ b/net/relayd/files/patch-d-carp.c @@ -0,0 +1,44 @@ +--- relayd/carp.c.orig 2007-12-08 02:17:00.000000000 +0900 ++++ relayd/carp.c 2008-01-14 08:43:07.745281030 +0900 +@@ -19,6 +19,7 @@ + #include + #include + #include ++#include + + #include + +@@ -105,6 +106,7 @@ + int + carp_demote_get(char *group) + { ++#if 0 + int s; + struct ifgroupreq ifgr; + +@@ -131,6 +133,9 @@ + + close(s); + return ((int)ifgr.ifgr_attrib.ifg_carp_demoted); ++#else ++ return (-1); ++#endif + } + + int +@@ -188,6 +193,7 @@ + int + carp_demote_ioctl(char *group, int demote) + { ++#if 0 + int s, res; + struct ifgroupreq ifgr; + +@@ -214,4 +220,7 @@ + + close(s); + return (res); ++#else ++ return (-1); ++#endif + } -- cgit v1.2.3