diff options
-rw-r--r-- | share/man/man4/carp.4 | 8 | ||||
-rw-r--r-- | sys/netinet/ip_carp.c | 10 |
2 files changed, 9 insertions, 9 deletions
diff --git a/share/man/man4/carp.4 b/share/man/man4/carp.4 index 4accf61a2c3..2952c3e9850 100644 --- a/share/man/man4/carp.4 +++ b/share/man/man4/carp.4 @@ -1,4 +1,4 @@ -.\" $OpenBSD: carp.4,v 1.27 2007/05/31 19:19:49 jmc Exp $ +.\" $OpenBSD: carp.4,v 1.28 2007/09/18 09:18:04 mpf Exp $ .\" .\" Copyright (c) 2003, Ryan McBride. All rights reserved. .\" @@ -23,7 +23,7 @@ .\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF .\" SUCH DAMAGE. .\" -.Dd $Mdocdate: May 31 2007 $ +.Dd $Mdocdate: September 18 2007 $ .Dt CARP 4 .Os .Sh NAME @@ -135,7 +135,7 @@ ARP balancing has limited abilities for load balancing the incoming connections between hosts in an Ethernet network. It only works for clients in the local network, because ARP balancing spreads the load by varying ARP replies -based on the source IP address of the host sending the query. +based on the source MAC address of the host sending the query. Therefore it cannot balance traffic that crosses a router, because the router itself will always be balanced to the same virtual host. .Pp @@ -175,7 +175,7 @@ For load balancing, several .Nm interfaces are configured to the same IP address, but to different VHIDs. Once an ARP request is received, the CARP protocol will use a hashing -function against the source IP address in the ARP request to determine +function against the source MAC address in the ARP request to determine which VHID the request belongs to. If the corresponding .Nm diff --git a/sys/netinet/ip_carp.c b/sys/netinet/ip_carp.c index ab2e8a5793d..5f47ccfc8b1 100644 --- a/sys/netinet/ip_carp.c +++ b/sys/netinet/ip_carp.c @@ -1,4 +1,4 @@ -/* $OpenBSD: ip_carp.c,v 1.148 2007/09/03 06:10:54 joel Exp $ */ +/* $OpenBSD: ip_carp.c,v 1.149 2007/09/18 09:18:04 mpf Exp $ */ /* * Copyright (c) 2002 Michael Shalayeff. All rights reserved. @@ -1426,10 +1426,10 @@ carp_iamatch(struct in_ifaddr *ia, u_char *src, if (carp_opts[CARPCTL_ARPBALANCE]) { /* - * We use the source ip to decide which virtual host should - * handle the request. If we're master of that virtual host, - * then we respond, otherwise, just drop the arp packet on - * the floor. + * We use the source MAC address to decide which virtual host + * should handle the request. If we're master of that virtual + * host, then we respond, otherwise, just drop the arp packet + * on the floor. */ /* Count the eligible carp interfaces with this address */ |