summaryrefslogtreecommitdiff
path: root/sys/netinet/ip_carp.h
diff options
context:
space:
mode:
authorMarco Pfatschbacher <mpf@cvs.openbsd.org>2007-03-18 23:23:18 +0000
committerMarco Pfatschbacher <mpf@cvs.openbsd.org>2007-03-18 23:23:18 +0000
commit6f9929b6c6550b6c1afc1f5a1a5e4e3ee079857f (patch)
tree7b53d8b777e07c5f80672a4209bba5256148b33e /sys/netinet/ip_carp.h
parent1cddb68d501e88a56b636de082738e5483715814 (diff)
Add IP load balancing support for carp(4).
This provides a similar functionality as ARP balancing, but also works for traffic that comes across routers. IPv6 is supported as well. The configuration scheme will change as soon we have sth better. Also add support for changing the MAC address on carp(4) interfaces. (code from mcbride) Tested by pyr@ and reyk@ OK mcbride@
Diffstat (limited to 'sys/netinet/ip_carp.h')
-rw-r--r--sys/netinet/ip_carp.h5
1 files changed, 3 insertions, 2 deletions
diff --git a/sys/netinet/ip_carp.h b/sys/netinet/ip_carp.h
index a2d966736bf..874b96abed9 100644
--- a/sys/netinet/ip_carp.h
+++ b/sys/netinet/ip_carp.h
@@ -1,4 +1,4 @@
-/* $OpenBSD: ip_carp.h,v 1.21 2006/06/02 19:53:12 mpf Exp $ */
+/* $OpenBSD: ip_carp.h,v 1.22 2007/03/18 23:23:17 mpf Exp $ */
/*
* Copyright (c) 2002 Michael Shalayeff. All rights reserved.
@@ -159,11 +159,12 @@ void carp_group_demote_adj(struct ifnet *, int);
int carp6_proto_input(struct mbuf **, int *, int);
int carp_iamatch(struct in_ifaddr *, u_char *,
u_int32_t *, u_int32_t);
-struct ifaddr *carp_iamatch6(void *, struct in6_addr *);
+int carp_iamatch6(struct ifnet *, struct ifaddr *);
struct ifnet *carp_ourether(void *, struct ether_header *, u_char, int);
int carp_input(struct mbuf *, u_int8_t *, u_int8_t *, u_int16_t);
int carp_output(struct ifnet *, struct mbuf *, struct sockaddr *,
struct rtentry *);
int carp_sysctl(int *, u_int, void *, size_t *, void *, size_t);
+int carp_lsdrop(struct mbuf *, sa_family_t, u_int32_t *, u_int32_t *);
#endif /* _KERNEL */
#endif /* _NETINET_IP_CARP_H_ */