freebsd-skq/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 Raise WARNS for various tools where possible. 2010-01-17 21:56:27 +00:00
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 Switch the default WARNS level for sbin/ to 6. 2009-10-19 16:00:24 +00:00
comcontrol ANSIfy almost all applications that use WARNS=6. 2009-12-29 22:53:27 +00:00
conscontrol Changed "conscontrol unset" to accept an existing virtual 2011-04-18 20:28:07 +00:00
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 Switch the default WARNS level for sbin/ to 6. 2009-10-19 16:00:24 +00:00
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 MFtbemd: 2010-08-23 22:24:11 +00:00
geom Correct and expand BSD partitioning scheme description. 2011-11-21 18:04:37 +00:00
ggate Because ggatel(8) operates on local GEOM providers, use unlimited queue size in 2011-04-02 06:59:05 +00:00
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 Always assign WARNS using ?= 2010-03-02 16:58:04 +00:00
ipfw Fix parsing of redirect_addr argument. 2011-11-23 18:38:08 +00:00
iscontrol Fix compilation with debug on. 2011-01-25 22:25:16 +00:00
kldconfig Raise WARNS for various tools where possible. 2010-01-17 21:56:27 +00:00
kldload Make flags in usage() and SYNOPSYS more style(9)-ish. 2010-08-30 07:29:27 +00:00
kldstat In printfile(), exit the process instead of only printing the warning. 2010-11-13 16:49:07 +00:00
kldunload Switch the default WARNS level for sbin/ to 6. 2009-10-19 16:00:24 +00:00
ldconfig ANSIfy ldconfig and the aout bits it still uses from rtld-aout. 2009-12-29 21:07:17 +00:00
mca sysctlbyname() returns -1 on error and sets errno. It does 2010-07-03 22:02:29 +00:00
md5 - new sentence should start on new line. 2011-11-13 17:07:43 +00:00
mdconfig Somewhere around the 473rd time I mistyped "mdconfig file" instead of 2011-04-29 22:40:11 +00:00
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 Fix some more warnings found by clang. 2010-11-22 20:10:48 +00:00
mksnap_ffs Note that a UFS filesystem can have up to 20 active snapshots. 2011-02-15 07:25:54 +00:00
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 Switch the default WARNS level for sbin/ to 6. 2009-10-19 16:00:24 +00:00
mount_hpfs mdoc: consistently spell our email addresses <foo@FreeBSD.org> 2010-05-19 08:57:53 +00:00
mount_msdosfs mdoc: move CAVEATS, BUGS and SECURITY CONSIDERATIONS sections to the 2010-05-13 12:07:55 +00:00
mount_nfs Finish making 'wcommitsize' an NFS client mount option. 2011-11-14 18:52:07 +00:00
mount_ntfs mdoc: move CAVEATS, BUGS and SECURITY CONSIDERATIONS sections to the 2010-05-13 12:07:55 +00:00
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 mdoc: move CAVEATS, BUGS and SECURITY CONSIDERATIONS sections to the 2010-05-13 12:07:55 +00:00
mount_udf Add missing static keywords for global variables to tools in sbin/. 2011-11-04 13:36:02 +00:00
mount_unionfs Fix SYNOPSIS. 2011-03-23 13:44:09 +00:00
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 - Display current settings when run without options. 2009-12-26 08:36:02 +00:00
nos-tun nos-tun(8): make WARNS=3 clean 2010-03-10 18:51:13 +00:00
pfctl Switch the default WARNS level for sbin/ to 6. 2009-10-19 16:00:24 +00:00
pflogd Update packet filter (pf) code to OpenBSD 4.5. 2011-06-28 11:57:25 +00:00
ping Small style fixes: 2010-06-20 12:52:33 +00:00
ping6 Add __unused. Ansi prototypes. 2010-12-19 13:40:38 +00:00
quotacheck Update to current version of head. 2010-04-28 05:33:59 +00:00
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 Add resolvconf(8) which manages resolv.conf. 2011-03-18 12:18:52 +00:00
restore mdoc: make pages render with mandoc 2010-10-21 12:27:13 +00:00
route - Fix array bounds checking. [1] 2010-12-08 15:12:37 +00:00
routed Fix use of AND operator: should be bitwise instead of logical. 2010-11-22 19:40:27 +00:00
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 Switch the default WARNS level for sbin/ to 6. 2009-10-19 16:00:24 +00:00
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 mdoc: order prologue macros consistently by Dd/Dt/Os 2010-04-14 19:08:06 +00:00
sunlabel mdoc: drop even more redundant .Pp calls 2010-10-19 12:35:40 +00:00
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 Add resolvconf(8) which manages resolv.conf. 2011-03-18 12:18:52 +00:00
Makefile.amd64 MF tbemd: Move to using Makefile.arch to select what to build. 2010-09-13 02:25:21 +00:00
Makefile.arm MF tbemd: Move to using Makefile.arch to select what to build. 2010-09-13 02:25:21 +00:00
Makefile.i386 MF tbemd: Move to using Makefile.arch to select what to build. 2010-09-13 02:25:21 +00:00
Makefile.ia64 MF tbemd: Move to using Makefile.arch to select what to build. 2010-09-13 02:25:21 +00:00
Makefile.inc Switch the default WARNS level for sbin/ to 6. 2009-10-19 16:00:24 +00:00
Makefile.mips MF tbemd: Move to using Makefile.arch to select what to build. 2010-09-13 02:25:21 +00:00
Makefile.pc98 MF tbemd: Move to using Makefile.arch to select what to build. 2010-09-13 02:25:21 +00:00
Makefile.sparc64 MF tbemd: Move to using Makefile.arch to select what to build. 2010-09-13 02:25:21 +00:00