summaryrefslogtreecommitdiffstats
path: root/usr.sbin/sasyncd/carp.c (follow)
Commit message (Collapse)AuthorAgeFilesLines
* PF_ROUTE -> AF_ROUTE in the scattered sock()/setsockopt() callskrw2019-01-221-3/+3
| | | | | | where the "wrong" #define was used. ok dlg@
* enum can be signed or unsigned depending on the compiler; so make sure weotto2017-08-311-3/+3
| | | | | cast to unsigned and test for > X to avoid warnings that comparing an unsigned < 0 make no sense; ok deraadt@
* Pull in <sys/select.h> for fd_setguenther2016-08-271-1/+2
| | | | ok deraadt@
* an invalid carp link state is not a fatal error, since a while newly createdotto2015-11-121-1/+2
| | | | carp interfaces have this state for a while. ok mpi@ phessler@
* Add CDIAGFLAGS infrastructure.haesbaert2012-04-141-3/+3
| | | | | | | Fix signed vs unsigned and dup symbol shadow. ok mikeb@ "looks good" deraadt@
* Fix an obviously wrong comment. ok reyk@kjell2010-06-291-2/+2
|
* Add support to use sasyncd(8) with iked(8) instead of isakmpd(8). Thereyk2010-06-161-8/+8
| | | | | | | | | | | | | new config option "control isakmpd|iked|all|none" in sasyncd.conf(5) is used to set the mode; the default is to control isakmpd like before. When controlling iked, sasyncd connects to the daemon using the imsg socket and sends imsgs - this is easy because the imsg framework has been imported into libutil. iked(8) already includes the important bits to work with sasyncd(8) (the active/passive mode option in ikectl). manpage bits ok jsg@ ok jsg@
* use standard safe Cderaadt2009-06-261-2/+2
|
* sasyncd isn't interested in messages on the routing socket other thansthen2009-06-251-1/+7
| | | | | | RTM_IFINFO to monitor the state of carp(4) interfaces; programme the filter on the socket accordingly so it doesn't have to handle other message types. ok henning@
* add additional link states to report the half duplex / full duplexreyk2006-11-281-1/+3
| | | | | | | | state, if known by the driver. this is required to check the full duplex state without depending on the ifmedia ioctl which can't be called in the kernel without process context. ok henning@, brad@
* Only interpret link state routing messages for the monitored carp interface.mpf2006-09-161-6/+12
| | | | | memcpy the if_msghdr to avoid alignment problems. OK hshoexer@, miod@, deraadt@
* Teach sasyncd to set isakmpd into active or passive mode, accordingmpf2006-09-011-1/+16
| | | | | | to our current carp state. Based on a diff by ho@. OK ho@, hshoexer@, deraadt@
* whitespace cleanup, no binary change.moritz2006-06-021-6/+6
|
* Make sasyncd fail back correctly with carp preemption enabled.mcbride2006-06-021-1/+51
| | | | | | | | | | | | | | Hold the carp demotion when booting, to prevent carp from preempting until we've sync'd with our peers. This adds a new CTL_ENDSNAP message to the exchange between the sasync daemons to indicate when the complete snapshot has been sent. Undemote after 60 seconds, or when recieve a CTL_ENDSNAP from all our peers. Syntax is slightly changed, removing the 'carp' keyword (so do "interface carp0" rather than "carp interface carp0". Adds 'group <ifgroup>', defaults to the 'carp' group. ok moritz@
* Instead of polling the carp interface to detect a switch between MASTER andmcbride2006-06-011-63/+91
| | | | | | | | BACKUP, listen to the routing socket for link change messages. Based on a diff from nathanael at polymorpheous dot com. ok moritz@
* fix some format strings and add a missingmoritz2006-01-261-2/+2
| | | | argument to a log_err() call. ok ho@
* Move sasyncd(8), for IPsec SA synchronization, in-tree. Work in progress.ho2005-03-301-0/+176
deraadt@ ok.