aboutsummaryrefslogtreecommitdiff
path: root/sys/net/if_types.h
diff options
context:
space:
mode:
authorGleb Smirnoff <glebius@FreeBSD.org>2011-12-16 12:16:56 +0000
committerGleb Smirnoff <glebius@FreeBSD.org>2011-12-16 12:16:56 +0000
commit08b68b0e4c6b132127919cfbaf7275c727ca7843 (patch)
tree059f66a20d251fa947969ff34292206d47ffc45c /sys/net/if_types.h
parentec1c1d41b3e5d997dabe18a69ea5e7364b48d258 (diff)
downloadsrc-08b68b0e4c6b132127919cfbaf7275c727ca7843.tar.gz
src-08b68b0e4c6b132127919cfbaf7275c727ca7843.zip
A major overhaul of the CARP implementation. The ip_carp.c was started
from scratch, copying needed functionality from the old implemenation on demand, with a thorough review of all code. The main change is that interface layer has been removed from the CARP. Now redundant addresses are configured exactly on the interfaces, they run on. The CARP configuration itself is, as before, configured and read via SIOCSVH/SIOCGVH ioctls. A new prefix created with SIOCAIFADDR or SIOCAIFADDR_IN6 may now be configured to a particular virtual host id, which makes the prefix redundant. ifconfig(8) semantics has been changed too: now one doesn't need to clone carpXX interface, he/she should directly configure a vhid on a Ethernet interface. To supply vhid data from the kernel to an application the getifaddrs(8) function had been changed to pass ifam_data with each address. [1] The new implementation definitely closes all PRs related to carp(4) being an interface, and may close several others. It also allows to run a single redundant IP per interface. Big thanks to Bjoern Zeeb for his help with inet6 part of patch, for idea on using ifam_data and for several rounds of reviewing! PR: kern/117000, kern/126945, kern/126714, kern/120130, kern/117448 Reviewed by: bz Submitted by: bz [1]
Notes
Notes: svn path=/head/; revision=228571
Diffstat (limited to 'sys/net/if_types.h')
-rw-r--r--sys/net/if_types.h1
1 files changed, 0 insertions, 1 deletions
diff --git a/sys/net/if_types.h b/sys/net/if_types.h
index c2effacd7d0c..fe6ab5ea16b3 100644
--- a/sys/net/if_types.h
+++ b/sys/net/if_types.h
@@ -250,6 +250,5 @@
#define IFT_ENC 0xf4
#define IFT_PFLOG 0xf6
#define IFT_PFSYNC 0xf7
-#define IFT_CARP 0xf8 /* Common Address Redundancy Protocol */
#define IFT_IPXIP 0xf9 /* IPX over IP tunneling; no longer used. */
#endif /* !_NET_IF_TYPES_H_ */