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-d-carp.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-d-carp.c')
-rw-r--r-- | net/relayd/files/patch-d-carp.c | 44 |
1 files changed, 44 insertions, 0 deletions
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 <sys/param.h> + #include <sys/socket.h> + #include <sys/ioctl.h> ++#include <sys/queue.h> + + #include <net/if.h> + +@@ -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 + } |