OpenBSD CVS

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


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

Request diff between arbitrary revisions


Default branch: MAIN


Revision 1.28 / (download) - annotate - [select for diffs], Tue Apr 10 15:58:21 2018 UTC (6 years, 2 months ago) by cheloha
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, 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, OPENBSD_6_4_BASE, OPENBSD_6_4, HEAD
Changes since 1.27: +7 -6 lines
Diff to previous 1.27 (colored)

Schedule events against the monotonic clock.

So that events fire punctually, even if the system clock is changed.

ok jca@

Revision 1.27 / (download) - annotate - [select for diffs], Mon Apr 10 09:27:08 2017 UTC (7 years, 2 months ago) by reyk
Branch: MAIN
CVS Tags: OPENBSD_6_3_BASE, OPENBSD_6_3, OPENBSD_6_2_BASE, OPENBSD_6_2
Changes since 1.26: +6 -1 lines
Diff to previous 1.26 (colored)

Check early if the mandatory carp "interface" was configured.

This allows the new -n config check to work correctly.

OK jsg@ deraadt@

Revision 1.26 / (download) - annotate - [select for diffs], Tue Apr 4 22:37:01 2017 UTC (7 years, 2 months ago) by jsg
Branch: MAIN
Changes since 1.25: +12 -4 lines
Diff to previous 1.25 (colored)

add a config test flag to sasyncd

ok reyk@ deraadt@ jmc@

Revision 1.25 / (download) - annotate - [select for diffs], Tue Apr 4 14:04:54 2017 UTC (7 years, 2 months ago) by reyk
Branch: MAIN
Changes since 1.24: +2 -2 lines
Diff to previous 1.24 (colored)

Add missing newline in fprintf error message.

OK jsg@

Revision 1.24 / (download) - annotate - [select for diffs], Thu Aug 20 22:39:29 2015 UTC (8 years, 9 months ago) by deraadt
Branch: MAIN
CVS Tags: OPENBSD_6_1_BASE, OPENBSD_6_1, OPENBSD_6_0_BASE, OPENBSD_6_0, OPENBSD_5_9_BASE, OPENBSD_5_9
Changes since 1.23: +3 -3 lines
Diff to previous 1.23 (colored)

stdlib.h is in scope; do not cast malloc/calloc/realloc*
ok millert krw

Revision 1.23 / (download) - annotate - [select for diffs], Sat Apr 14 12:11:08 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.22: +1 -12 lines
Diff to previous 1.22 (colored)

Kill Boehms GC dead.

ok mikeb@
sure deraadt@

Revision 1.22 / (download) - annotate - [select for diffs], Sat Apr 14 11:50:33 2012 UTC (12 years, 1 month ago) by haesbaert
Branch: MAIN
Changes since 1.21: +1 -3 lines
Diff to previous 1.21 (colored)

Kill useless memset.

ok mikeb@
"looks good" deraadt@

Revision 1.21 / (download) - annotate - [select for diffs], Sat Apr 14 11:47:54 2012 UTC (12 years, 1 month ago) by haesbaert
Branch: MAIN
Changes since 1.20: +2 -2 lines
Diff to previous 1.20 (colored)

Don't return from main with 2 uppon issuing double -c option, print
proper usage() message.

ok mikeb@
"looks good" deraadt@

Revision 1.20 / (download) - annotate - [select for diffs], Wed Jun 16 17:39:05 2010 UTC (13 years, 11 months ago) by reyk
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.19: +3 -2 lines
Diff to previous 1.19 (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.19 / (download) - annotate - [select for diffs], Wed Nov 11 23:05:40 2009 UTC (14 years, 7 months ago) by deraadt
Branch: MAIN
CVS Tags: OPENBSD_4_7_BASE, OPENBSD_4_7
Changes since 1.18: +2 -1 lines
Diff to previous 1.18 (colored)

memory leak found by parfait

Revision 1.18 / (download) - annotate - [select for diffs], Mon Mar 17 20:30:17 2008 UTC (16 years, 2 months ago) by sobrado
Branch: MAIN
CVS Tags: OPENBSD_4_6_BASE, OPENBSD_4_6, OPENBSD_4_5_BASE, OPENBSD_4_5, OPENBSD_4_4_BASE, OPENBSD_4_4
Changes since 1.17: +2 -3 lines
Diff to previous 1.17 (colored)

sync the synopsis and usage; "usage:" is lowercase

ok jmc@

Revision 1.17 / (download) - annotate - [select for diffs], Mon Feb 26 04:36:57 2007 UTC (17 years, 3 months ago) by ray
Branch: MAIN
CVS Tags: OPENBSD_4_3_BASE, OPENBSD_4_3, OPENBSD_4_2_BASE, OPENBSD_4_2, OPENBSD_4_1_BASE, OPENBSD_4_1
Changes since 1.16: +3 -2 lines
Diff to previous 1.16 (colored)

Zero out struct before using, not after.

From <sthen at symphytum dot spacehopper dot org>, PR 5388.

OK hshoexer@ and mpf@.

Revision 1.16 / (download) - annotate - [select for diffs], Tue Dec 26 00:58:11 2006 UTC (17 years, 5 months ago) by msf
Branch: MAIN
Changes since 1.15: +10 -10 lines
Diff to previous 1.15 (colored)

make option processing happen first.

ok deraadt@

Revision 1.15 / (download) - annotate - [select for diffs], Mon Dec 25 08:27:58 2006 UTC (17 years, 5 months ago) by deraadt
Branch: MAIN
Changes since 1.14: +4 -13 lines
Diff to previous 1.14 (colored)

good day to remove a some poo

Revision 1.14 / (download) - annotate - [select for diffs], Sun Dec 24 05:01:08 2006 UTC (17 years, 5 months ago) by msf
Branch: MAIN
Changes since 1.13: +53 -10 lines
Diff to previous 1.13 (colored)

first pass cleanup of sasyncd, based on some discussion with deraadt@

inline conf_init into main() and remove it from conf.y.  add usage().
small amount of whitespace nits in sasync.h

ok deraadt@ mcbride@

Revision 1.13 / (download) - annotate - [select for diffs], Fri Sep 1 01:13:25 2006 UTC (17 years, 9 months ago) by mpf
Branch: MAIN
CVS Tags: OPENBSD_4_0_BASE, OPENBSD_4_0
Changes since 1.12: +3 -1 lines
Diff to previous 1.12 (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.12 / (download) - annotate - [select for diffs], Fri Jun 2 20:31:48 2006 UTC (18 years ago) by moritz
Branch: MAIN
Changes since 1.11: +2 -2 lines
Diff to previous 1.11 (colored)

whitespace cleanup, no binary change.

Revision 1.11 / (download) - annotate - [select for diffs], Fri Jun 2 20:09:43 2006 UTC (18 years ago) by mcbride
Branch: MAIN
Changes since 1.10: +7 -2 lines
Diff to previous 1.10 (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.10 / (download) - annotate - [select for diffs], Thu Jun 1 22:43:12 2006 UTC (18 years ago) by mcbride
Branch: MAIN
Changes since 1.9: +6 -1 lines
Diff to previous 1.9 (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.9 / (download) - annotate - [select for diffs], Thu May 26 19:18:16 2005 UTC (19 years ago) by ho
Branch: MAIN
CVS Tags: OPENBSD_3_9_BASE, OPENBSD_3_9, OPENBSD_3_8_BASE, OPENBSD_3_8
Changes since 1.8: +9 -3 lines
Diff to previous 1.8 (colored)

check ppid

Revision 1.8 / (download) - annotate - [select for diffs], Tue May 24 02:35:39 2005 UTC (19 years ago) by ho
Branch: MAIN
Changes since 1.7: +9 -31 lines
Diff to previous 1.7 (colored)

When peers connect, have the master daemon look at in-kernel SAs and feed
these to the new peer. Adds privsep as fetching SADB and SPD kernel data
requires privileges.

Revision 1.7 / (download) - annotate - [select for diffs], Sun May 22 20:35:48 2005 UTC (19 years ago) by ho
Branch: MAIN
Changes since 1.6: +7 -7 lines
Diff to previous 1.6 (colored)

No more SSL between peers, instead do shared key AES & SHA

Revision 1.6 / (download) - annotate - [select for diffs], Sun May 22 12:14:16 2005 UTC (19 years ago) by ho
Branch: MAIN
Changes since 1.5: +4 -2 lines
Diff to previous 1.5 (colored)

style nits

Revision 1.5 / (download) - annotate - [select for diffs], Tue May 3 05:44:35 2005 UTC (19 years, 1 month ago) by djm
Branch: MAIN
Changes since 1.4: +4 -3 lines
Diff to previous 1.4 (colored)

setres[ug]id; ok deraadt@

Revision 1.4 / (download) - annotate - [select for diffs], Sun Apr 3 12:24:59 2005 UTC (19 years, 2 months ago) by ho
Branch: MAIN
Changes since 1.3: +8 -4 lines
Diff to previous 1.3 (colored)

Cleanup.

Revision 1.3 / (download) - annotate - [select for diffs], Sun Apr 3 12:03:43 2005 UTC (19 years, 2 months ago) by ho
Branch: MAIN
Changes since 1.2: +1 -4 lines
Diff to previous 1.2 (colored)

Remove debugging code.

Revision 1.2 / (download) - annotate - [select for diffs], Wed Mar 30 18:56:19 2005 UTC (19 years, 2 months ago) by ho
Branch: MAIN
Changes since 1.1: +4 -4 lines
Diff to previous 1.1 (colored)

Fix some stuff noted by Theo.

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

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.