Hi,

i think the manpage of relayd has the description in the "mode ..."
paragraphs a little wrong. The patch below changes

  mode hash

  Balances the outgoing connections across the active hosts based on the
  hashed name of the table.  Additional input can be fed into the hash by
  looking at HTTP headers and GET variables [...]

  mode loadbalance

  Balances the outgoing connections across the active hosts based on the
  hashed name of the table, the source and destination addresses, and the
  corresponding ports. [...]

into

  mode hash

  Balances the outgoing connections across the active hosts based on the
  hashed name of the relay, the hashed name of the the table and the ip
  address and port of the relay. Additional input can be fed into the hash
  by looking at HTTP headers and GET variables [...]

  mode loadbalance

  Balances the outgoing connections across the active hosts based on the
  hashed name of the relay, the hashed name of the the table, the ip address
  and port of the relay and the source address of the client.

In case someone wants to look over this, the code is in relay.c:
relay_launch(), relay_from_table() and a bit in relay_handle_http().

ok?
/Benno

Index: relayd.conf.5
===================================================================
RCS file: /opt/OpenBSD-CVS/src/usr.sbin/relayd/relayd.conf.5,v
retrieving revision 1.127
diff -u -p -r1.127 relayd.conf.5
--- relayd.conf.5       24 Apr 2012 14:56:09 -0000      1.127
+++ relayd.conf.5       5 May 2012 13:59:19 -0000
@@ -385,16 +385,18 @@ host from the specified table:
 .Bl -tag -width Ds
 .It Ic mode hash
 Balances the outgoing connections across the active hosts based on the
-hashed name of the table.
-Additional input can be fed into the hash by looking at HTTP
-headers and GET variables; see the
+hashed name of the relay, the hashed name of the the table and the ip
+address and port of the relay.
+Additional input can be fed into the
+hash by looking at HTTP headers and GET variables;
+see the
 .Sx PROTOCOLS
 section below.
 This mode is only supported by relays.
 .It Ic mode loadbalance
 Balances the outgoing connections across the active hosts based on the
-hashed name of the table, the source and destination addresses,
-and the corresponding ports.
+hashed name of the relay, the hashed name of the the table, the ip
+address and port of the relay and the source address of the client.
 This mode is only supported by relays.
 .It Ic mode roundrobin
 Distributes the outgoing connections using a round-robin scheduler

Reply via email to