summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorRyan Thomas McBride <mcbride@cvs.openbsd.org>2003-10-17 21:05:00 +0000
committerRyan Thomas McBride <mcbride@cvs.openbsd.org>2003-10-17 21:05:00 +0000
commitfaedf7a876de9ee825ed44b1f6f9dcdbe056bdcd (patch)
treefb322664c24a0866845294d2d89651bb52715ad7 /lib
parent570077e03f36a1ce16a462a69f136900e3221923 (diff)
Common Address Redundancy Protocol
Allows multiple hosts to share an IP address, providing high availability and load balancing. Based on code by mickey@, with additional help from markus@ and Marco_Pfatschbacher@genua.de ok deraadt@
Diffstat (limited to 'lib')
-rw-r--r--lib/libc/gen/sysctl.332
1 files changed, 31 insertions, 1 deletions
diff --git a/lib/libc/gen/sysctl.3 b/lib/libc/gen/sysctl.3
index 9b5b7c8a13b..910f4dc5130 100644
--- a/lib/libc/gen/sysctl.3
+++ b/lib/libc/gen/sysctl.3
@@ -1,4 +1,4 @@
-.\" $OpenBSD: sysctl.3,v 1.109 2003/09/09 10:00:24 jmc Exp $
+.\" $OpenBSD: sysctl.3,v 1.110 2003/10/17 21:04:57 mcbride Exp $
.\"
.\" Copyright (c) 1993
.\" The Regents of the University of California. All rights reserved.
@@ -999,6 +999,10 @@ The currently defined protocols and names are:
.It udp checksum integer yes
.It udp recvspace integer yes
.It udp sendspace integer yes
+.It carp allow integer yes
+.It carp preempt integer yes
+.It carp log integer yes
+.It carp arpbalance integer yes
.El
.Pp
The variables are as follows:
@@ -1333,6 +1337,32 @@ receive buffer size.
Returns the default
.Tn UDP
send buffer size.
+.It Li carp.allow
+If set to 0, incoming
+.Tn CARP
+packets will not be processed.
+If set to any other value, processing will occur.
+Enabled by default.
+.It Li carp.preempt
+If set to 0,
+.Xr carp 4
+will not attempt to become master if it is recieving advertisements from an
+other active master.
+If set to any other value, carp will become master of the virtual host if it
+believes it can send advertisements more frequently than the current master.
+Enabled by default.
+.It Li carp.log
+If set to any value other than 0
+.Xr carp 4
+will log errors.
+Enabled by default.
+.It Li carp.arpbalance
+If set to any value other than 0, the arp balancing functionality in carp is
+enabled.
+When arp requests are recieved for an IP address which is part of any virtual
+host, carp will hash the source ip in the arp request to select one of the
+virtual hosts from the set of all the virtual hosts which have that IP address. The master of that host will respond with the correct virtual MAC address.
+Disabled by default.
.El
.It Dv PF_INET6
Get or set various global information about IPv6