From e1d22638d0a8257ed01b7f95d1b6d5cef74ebd07 Mon Sep 17 00:00:00 2001 From: glebius Date: Tue, 22 Feb 2005 13:04:05 +0000 Subject: Add CARP (Common Address Redundancy Protocol), which allows multiple hosts to share an IP address, providing high availability and load balancing. Original work on CARP done by Michael Shalayeff, with many additions by Marco Pfatschbacher and Ryan McBride. FreeBSD port done solely by Max Laier. Patch by: mlaier Obtained from: OpenBSD (mickey, mcbride) --- sys/net/if_media.h | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'sys/net/if_media.h') diff --git a/sys/net/if_media.h b/sys/net/if_media.h index 68a785d..4f7389b 100644 --- a/sys/net/if_media.h +++ b/sys/net/if_media.h @@ -227,6 +227,11 @@ int ifmedia_ioctl(struct ifnet *ifp, struct ifreq *ifr, #define IFM_ATM_UNASSIGNED 0x00000400 /* unassigned cells */ /* + * CARP Common Address Redundancy Protocol + */ +#define IFM_CARP 0x000000c0 + +/* * Shared media sub-types */ #define IFM_AUTO 0 /* Autoselect best media */ @@ -299,6 +304,7 @@ struct ifmedia_description { { IFM_FDDI, "FDDI" }, \ { IFM_IEEE80211, "IEEE 802.11 Wireless Ethernet" }, \ { IFM_ATM, "ATM" }, \ + { IFM_CARP, "Common Address Redundancy Protocol" }, \ { 0, NULL }, \ } -- cgit v1.1