1
0
mirror of https://git.FreeBSD.org/src.git synced 2024-12-24 11:29:10 +00:00
freebsd/sbin
Gleb Smirnoff 08b68b0e4c 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]
2011-12-16 12:16:56 +00:00
..
adjkerntz
atacontrol Add a "kern.features.ata_cam" sysctl in the kernel when the ATA_CAM kernel 2011-10-09 21:42:02 +00:00
atm Add missing static keywords for global variables to tools in sbin/. 2011-11-04 13:36:02 +00:00
badsect Add missing static keywords for global variables to tools in sbin/. 2011-11-04 13:36:02 +00:00
bsdlabel Add missing static keyword. 2011-12-11 19:28:04 +00:00
camcontrol Add missing static keywords to global variables in camcontrol. 2011-12-11 11:38:50 +00:00
ccdconfig Add missing static keywords for global variables to tools in sbin/. 2011-11-04 13:36:02 +00:00
clri
comcontrol
conscontrol
ddb Correct subcommand name 'unset' -> 'unscript'. 2011-06-18 22:32:55 +00:00
devd Xref re_format(7) in devd.conf(5), not in devd(8). 2011-12-16 10:21:01 +00:00
devfs Add missing static keywords for global variables to tools in sbin/. 2011-11-04 13:36:02 +00:00
dhclient dhclient-script relied on incorrect behavior of SIOCAIFADDR ioctl, 2011-12-13 11:54:51 +00:00
dmesg Add missing static keywords for global variables to tools in sbin/. 2011-11-04 13:36:02 +00:00
dump The current /etc/dumpdates file restricts device names to 32 characters. 2011-10-18 18:42:26 +00:00
dumpfs Staticify dumpfs. 2011-12-13 09:01:44 +00:00
dumpon
fdisk Fix multi-line comment formatting. 2011-11-07 07:50:35 +00:00
fdisk_pc98 Add reference to gpart(8). 2011-11-06 20:39:35 +00:00
ffsinfo Remove trailing whitespace. 2011-11-09 21:01:50 +00:00
fsck Add missing static keywords for global variables to tools in sbin/. 2011-11-04 13:36:02 +00:00
fsck_ffs Forgot this nit in r221107. 2011-09-03 03:12:33 +00:00
fsck_msdosfs Add missing static keywords for global variables to tools in sbin/. 2011-11-04 13:36:02 +00:00
fsdb Get rid of major/minor number distinction. 2011-09-28 18:53:36 +00:00
fsirand Add missing static keywords for global variables to tools in sbin/. 2011-11-04 13:36:02 +00:00
gbde
geom Correct and expand BSD partitioning scheme description. 2011-11-21 18:04:37 +00:00
ggate
growfs Add missing static keywords for global variables to tools in sbin/. 2011-11-04 13:36:02 +00:00
gvinum - fix duplicate "a a" in some comments 2011-11-13 17:06:33 +00:00
hastctl Revert r226726. The line was not duplicated. 2011-10-25 13:49:48 +00:00
hastd Remove redundant assignment. 2011-12-15 22:05:23 +00:00
ifconfig A major overhaul of the CARP implementation. The ip_carp.c was started 2011-12-16 12:16:56 +00:00
init Add missing static keywords for global variables to tools in sbin/. 2011-11-04 13:36:02 +00:00
ipf
ipfw Fix parsing of redirect_addr argument. 2011-11-23 18:38:08 +00:00
iscontrol
kldconfig
kldload
kldstat
kldunload
ldconfig
mca
md5 - new sentence should start on new line. 2011-11-13 17:07:43 +00:00
mdconfig
mdmfs Do not try to change the mode or ownership of the root of the mountpoint 2011-09-13 20:16:11 +00:00
mknod
mksnap_ffs
mount Add missing static keywords for global variables to tools in sbin/. 2011-11-04 13:36:02 +00:00
mount_cd9660 Add missing static keywords for global variables to tools in sbin/. 2011-11-04 13:36:02 +00:00
mount_ext2fs
mount_hpfs
mount_msdosfs
mount_nfs Finish making 'wcommitsize' an NFS client mount option. 2011-11-14 18:52:07 +00:00
mount_ntfs
mount_nullfs Add missing static keywords for global variables to tools in sbin/. 2011-11-04 13:36:02 +00:00
mount_reiserfs Re-encode files from ISO-8859-1 to UTF-8 2011-05-22 14:03:30 +00:00
mount_std
mount_udf Add missing static keywords for global variables to tools in sbin/. 2011-11-04 13:36:02 +00:00
mount_unionfs
natd Add missing static keywords for global variables to tools in sbin/. 2011-11-04 13:36:02 +00:00
newfs Add missing static keywords for global variables to tools in sbin/. 2011-11-04 13:36:02 +00:00
newfs_msdos Use __packed to prevent alignment from taking place, which otherwise may 2011-11-11 20:31:48 +00:00
nfsiod
nos-tun
pfctl
pflogd Update packet filter (pf) code to OpenBSD 4.5. 2011-06-28 11:57:25 +00:00
ping
ping6
quotacheck
rcorder Add more static keywords to rcorder(8). 2011-12-11 20:48:40 +00:00
reboot Let reboot(8) use getprogname() to compare the program name. 2011-12-11 11:42:44 +00:00
recoverdisk Add missing static keywords for global variables to tools in sbin/. 2011-11-04 13:36:02 +00:00
resolvconf
restore
route
routed
rtsol Add dump.c to the rtsol build. It is needed now that sec2str is non-static 2011-06-08 21:59:07 +00:00
savecore Remove duplicated header files 2011-06-24 07:29:04 +00:00
sconfig
setkey mdoc: fix markup 2011-06-02 09:56:42 +00:00
shutdown Add missing static keywords for global variables to tools in sbin/. 2011-11-04 13:36:02 +00:00
spppcontrol
sunlabel
swapon Add missing static keywords for global variables to tools in sbin/. 2011-11-04 13:36:02 +00:00
sysctl If the -d flag is specified, ignore any new values specified and only 2011-12-01 15:01:23 +00:00
tunefs Add missing static keywords for global variables to tools in sbin/. 2011-11-04 13:36:02 +00:00
umount Add missing static keywords for global variables to tools in sbin/. 2011-11-04 13:36:02 +00:00
Makefile
Makefile.amd64
Makefile.arm
Makefile.i386
Makefile.ia64
Makefile.inc
Makefile.mips
Makefile.pc98
Makefile.sparc64