OpenBSD CVS

CVS log for src/usr.sbin/sasyncd/carp.c


[BACK] Up to [local] / src / usr.sbin / sasyncd

Request diff between arbitrary revisions


Default branch: MAIN


Revision 1.19 / (download) - annotate - [select for diffs], Tue Apr 23 13:34:51 2024 UTC (6 weeks, 4 days ago) by jsg
Branch: MAIN
CVS Tags: HEAD
Changes since 1.18: +2 -2 lines
Diff to previous 1.18 (colored)

correct indentation; no functional change
ok tb@

Revision 1.18 / (download) - annotate - [select for diffs], Wed Feb 8 08:20:54 2023 UTC (15 months, 4 weeks ago) by tb
Branch: MAIN
CVS Tags: OPENBSD_7_5_BASE, OPENBSD_7_5, OPENBSD_7_4_BASE, OPENBSD_7_4, OPENBSD_7_3_BASE, OPENBSD_7_3
Changes since 1.17: +2 -2 lines
Diff to previous 1.17 (colored)

usr.sbin: missing void to appease clang 15's -Wstrict-prototype.

Revision 1.17 / (download) - annotate - [select for diffs], Tue Jan 22 09:25:29 2019 UTC (5 years, 4 months ago) by krw
Branch: MAIN
CVS Tags: OPENBSD_7_2_BASE, OPENBSD_7_2, OPENBSD_7_1_BASE, OPENBSD_7_1, OPENBSD_7_0_BASE, OPENBSD_7_0, OPENBSD_6_9_BASE, OPENBSD_6_9, OPENBSD_6_8_BASE, OPENBSD_6_8, OPENBSD_6_7_BASE, OPENBSD_6_7, OPENBSD_6_6_BASE, OPENBSD_6_6, OPENBSD_6_5_BASE, OPENBSD_6_5
Changes since 1.16: +3 -3 lines
Diff to previous 1.16 (colored)

PF_ROUTE -> AF_ROUTE in the scattered sock()/setsockopt() calls
where the "wrong" #define was used.

ok dlg@

Revision 1.16 / (download) - annotate - [select for diffs], Thu Aug 31 16:19:22 2017 UTC (6 years, 9 months ago) by otto
Branch: MAIN
CVS Tags: OPENBSD_6_4_BASE, OPENBSD_6_4, OPENBSD_6_3_BASE, OPENBSD_6_3, OPENBSD_6_2_BASE, OPENBSD_6_2
Changes since 1.15: +3 -3 lines
Diff to previous 1.15 (colored)

enum can be signed or unsigned depending on the compiler; so make sure we
cast to unsigned and test for > X to avoid warnings that comparing an
unsigned < 0 make no sense; ok deraadt@

Revision 1.15 / (download) - annotate - [select for diffs], Sat Aug 27 04:21:08 2016 UTC (7 years, 9 months ago) by guenther
Branch: MAIN
CVS Tags: OPENBSD_6_1_BASE, OPENBSD_6_1
Changes since 1.14: +2 -1 lines
Diff to previous 1.14 (colored)

Pull in <sys/select.h> for fd_set

ok deraadt@

Revision 1.14 / (download) - annotate - [select for diffs], Thu Nov 12 09:27:09 2015 UTC (8 years, 6 months ago) by otto
Branch: MAIN
CVS Tags: OPENBSD_6_0_BASE, OPENBSD_6_0, OPENBSD_5_9_BASE, OPENBSD_5_9
Changes since 1.13: +2 -1 lines
Diff to previous 1.13 (colored)

an invalid carp link state is not a fatal error, since a while newly created
carp interfaces have this state for a while. ok mpi@ phessler@

Revision 1.13 / (download) - annotate - [select for diffs], Sat Apr 14 11:46:09 2012 UTC (12 years, 1 month ago) by haesbaert
Branch: MAIN
CVS Tags: OPENBSD_5_8_BASE, OPENBSD_5_8, OPENBSD_5_7_BASE, OPENBSD_5_7, OPENBSD_5_6_BASE, OPENBSD_5_6, OPENBSD_5_5_BASE, OPENBSD_5_5, OPENBSD_5_4_BASE, OPENBSD_5_4, OPENBSD_5_3_BASE, OPENBSD_5_3, OPENBSD_5_2_BASE, OPENBSD_5_2
Changes since 1.12: +3 -3 lines
Diff to previous 1.12 (colored)

Add CDIAGFLAGS infrastructure.
Fix signed vs unsigned and dup symbol shadow.

ok mikeb@
"looks good" deraadt@

Revision 1.12 / (download) - annotate - [select for diffs], Tue Jun 29 21:25:37 2010 UTC (13 years, 11 months ago) by kjell
Branch: MAIN
CVS Tags: OPENBSD_5_1_BASE, OPENBSD_5_1, OPENBSD_5_0_BASE, OPENBSD_5_0, OPENBSD_4_9_BASE, OPENBSD_4_9, OPENBSD_4_8_BASE, OPENBSD_4_8
Changes since 1.11: +2 -2 lines
Diff to previous 1.11 (colored)

Fix an obviously wrong comment. ok reyk@

Revision 1.11 / (download) - annotate - [select for diffs], Wed Jun 16 17:39:05 2010 UTC (13 years, 11 months ago) by reyk
Branch: MAIN
Changes since 1.10: +8 -8 lines
Diff to previous 1.10 (colored)

Add support to use sasyncd(8) with iked(8) instead of isakmpd(8).  The
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@

Revision 1.10 / (download) - annotate - [select for diffs], Fri Jun 26 13:25:23 2009 UTC (14 years, 11 months ago) by deraadt
Branch: MAIN
CVS Tags: OPENBSD_4_7_BASE, OPENBSD_4_7, OPENBSD_4_6_BASE, OPENBSD_4_6
Changes since 1.9: +2 -2 lines
Diff to previous 1.9 (colored)

use standard safe C

Revision 1.9 / (download) - annotate - [select for diffs], Thu Jun 25 18:50:22 2009 UTC (14 years, 11 months ago) by sthen
Branch: MAIN
Changes since 1.8: +7 -1 lines
Diff to previous 1.8 (colored)

sasyncd isn't interested in messages on the routing socket other than
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@

Revision 1.8 / (download) - annotate - [select for diffs], Tue Nov 28 19:21:15 2006 UTC (17 years, 6 months ago) by reyk
Branch: MAIN
CVS Tags: OPENBSD_4_5_BASE, OPENBSD_4_5, OPENBSD_4_4_BASE, OPENBSD_4_4, OPENBSD_4_3_BASE, OPENBSD_4_3, OPENBSD_4_2_BASE, OPENBSD_4_2, OPENBSD_4_1_BASE, OPENBSD_4_1
Changes since 1.7: +3 -1 lines
Diff to previous 1.7 (colored)

add additional link states to report the half duplex / full duplex
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@

Revision 1.7 / (download) - annotate - [select for diffs], Sat Sep 16 11:35:18 2006 UTC (17 years, 8 months ago) by mpf
Branch: MAIN
CVS Tags: OPENBSD_4_0_BASE, OPENBSD_4_0
Changes since 1.6: +12 -6 lines
Diff to previous 1.6 (colored)

Only interpret link state routing messages for the monitored carp interface.
memcpy the if_msghdr to avoid alignment problems.
OK hshoexer@, miod@, deraadt@

Revision 1.6 / (download) - annotate - [select for diffs], Fri Sep 1 01:13:25 2006 UTC (17 years, 9 months ago) by mpf
Branch: MAIN
Changes since 1.5: +16 -1 lines
Diff to previous 1.5 (colored)

Teach sasyncd to set isakmpd into active or passive mode, according
to our current carp state.
Based on a diff by ho@.
OK ho@, hshoexer@, deraadt@

Revision 1.5 / (download) - annotate - [select for diffs], Fri Jun 2 20:31:48 2006 UTC (18 years ago) by moritz
Branch: MAIN
Changes since 1.4: +6 -6 lines
Diff to previous 1.4 (colored)

whitespace cleanup, no binary change.

Revision 1.4 / (download) - annotate - [select for diffs], Fri Jun 2 20:09:43 2006 UTC (18 years ago) by mcbride
Branch: MAIN
Changes since 1.3: +51 -1 lines
Diff to previous 1.3 (colored)

Make sasyncd fail back correctly with carp preemption enabled.

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@

Revision 1.3 / (download) - annotate - [select for diffs], Thu Jun 1 22:43:12 2006 UTC (18 years ago) by mcbride
Branch: MAIN
Changes since 1.2: +92 -64 lines
Diff to previous 1.2 (colored)

Instead of polling the carp interface to detect a switch between MASTER and
BACKUP, listen to the routing socket for link change messages.

Based on a diff from nathanael at polymorpheous dot com.

ok moritz@

Revision 1.2 / (download) - annotate - [select for diffs], Thu Jan 26 09:53:46 2006 UTC (18 years, 4 months ago) by moritz
Branch: MAIN
CVS Tags: OPENBSD_3_9_BASE, OPENBSD_3_9
Changes since 1.1: +2 -2 lines
Diff to previous 1.1 (colored)

fix some format strings and add a missing
argument to a log_err() call. ok ho@

Revision 1.1 / (download) - annotate - [select for diffs], Wed Mar 30 18:44:49 2005 UTC (19 years, 2 months ago) by ho
Branch: MAIN
CVS Tags: OPENBSD_3_8_BASE, OPENBSD_3_8

Move sasyncd(8), for IPsec SA synchronization, in-tree. Work in progress.
deraadt@ ok.

This form allows you to request diff's between any two revisions of a file. You may select a symbolic revision name using the selection box or you may type in a numeric name using the type-in text box.