History log of /openbsd-current/usr.sbin/sasyncd/net.c
Revision (<<< Hide revision tags) (Show revision tags >>>) Date Author Comments
# 1.24 28-Jan-2022 guenther

When it's the possessive of 'it', it's spelled "its", without the
apostrophe.


Revision tags: OPENBSD_5_9_BASE OPENBSD_6_0_BASE OPENBSD_6_1_BASE OPENBSD_6_2_BASE OPENBSD_6_3_BASE OPENBSD_6_4_BASE OPENBSD_6_5_BASE OPENBSD_6_6_BASE OPENBSD_6_7_BASE OPENBSD_6_8_BASE OPENBSD_6_9_BASE OPENBSD_7_0_BASE
# 1.23 12-Dec-2015 mmcc

Remove NULL-checks before free().


# 1.22 20-Aug-2015 deraadt

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


Revision tags: OPENBSD_5_6_BASE OPENBSD_5_7_BASE OPENBSD_5_8_BASE
# 1.21 04-Jul-2014 guenther

malloc+memset -> calloc

from Benjamin Baier (programmer (at) netzbasis.de)


Revision tags: OPENBSD_5_4_BASE OPENBSD_5_5_BASE
# 1.20 11-Mar-2013 deraadt

handle ECONNABORTED errors from accept(). In many code blocks they can be
ignored silently and without aborting, much like EINTR and EWOULDBLOCK are.
ok's from various maintainers of these directories...


Revision tags: OPENBSD_5_2_BASE OPENBSD_5_3_BASE
# 1.19 15-Apr-2012 jsg

fix a leak
ok krw@


# 1.18 14-Apr-2012 haesbaert

read returns ssize_t not int.

ok mikeb@


# 1.17 14-Apr-2012 haesbaert

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

ok mikeb@
"looks good" deraadt@


Revision tags: OPENBSD_4_8_BASE OPENBSD_4_9_BASE OPENBSD_5_0_BASE OPENBSD_5_1_BASE
# 1.16 29-Jun-2010 kjell

Having more than 2 log levels is silly. Use only 3 verbosity levels:
None (), Important (-v), All (-vv)
ok deraadt@


Revision tags: OPENBSD_4_1_BASE OPENBSD_4_2_BASE OPENBSD_4_3_BASE OPENBSD_4_4_BASE OPENBSD_4_5_BASE OPENBSD_4_6_BASE OPENBSD_4_7_BASE
# 1.15 08-Jan-2007 markus

allow shared key specification in hex (0x01234...); ok ho


Revision tags: OPENBSD_4_0_BASE
# 1.14 02-Jun-2006 moritz

whitespace cleanup, no binary change.


# 1.13 02-Jun-2006 mcbride

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@


# 1.12 16-Apr-2006 moritz

cleanup error handling to avoid two memleaks. found and ok pat@


Revision tags: OPENBSD_3_9_BASE
# 1.11 26-Jan-2006 moritz

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


# 1.10 20-Jan-2006 millert

Don't depend on implicit include of signal.h


# 1.9 11-Sep-2005 moritz

handle short read()'s. fixes transfer
of very large SA/SPD snapshots. ok ho@


Revision tags: OPENBSD_3_8_BASE
# 1.8 27-May-2005 ho

Keep sockaddr in syncpeer struct.


# 1.7 26-May-2005 ho

add a 'flushmode' to control how the master handles FLUSH to slaves. tweak some loglevels.


# 1.6 24-May-2005 ho

cleanup parser, permit more than one listener


# 1.5 24-May-2005 ho

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.


# 1.4 23-May-2005 ho

Various logging fixes, handle peer disconnects better.


# 1.3 23-May-2005 ho

add "listen on <interface name>"


# 1.2 22-May-2005 ho

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


# 1.1 30-Mar-2005 ho

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


Revision tags: OPENBSD_5_9_BASE OPENBSD_6_0_BASE OPENBSD_6_1_BASE OPENBSD_6_2_BASE
# 1.23 12-Dec-2015 mmcc

Remove NULL-checks before free().


# 1.22 20-Aug-2015 deraadt

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


Revision tags: OPENBSD_5_6_BASE OPENBSD_5_7_BASE OPENBSD_5_8_BASE
# 1.21 04-Jul-2014 guenther

malloc+memset -> calloc

from Benjamin Baier (programmer (at) netzbasis.de)


Revision tags: OPENBSD_5_4_BASE OPENBSD_5_5_BASE
# 1.20 11-Mar-2013 deraadt

handle ECONNABORTED errors from accept(). In many code blocks they can be
ignored silently and without aborting, much like EINTR and EWOULDBLOCK are.
ok's from various maintainers of these directories...


Revision tags: OPENBSD_5_2_BASE OPENBSD_5_3_BASE
# 1.19 15-Apr-2012 jsg

fix a leak
ok krw@


# 1.18 14-Apr-2012 haesbaert

read returns ssize_t not int.

ok mikeb@


# 1.17 14-Apr-2012 haesbaert

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

ok mikeb@
"looks good" deraadt@


Revision tags: OPENBSD_4_8_BASE OPENBSD_4_9_BASE OPENBSD_5_0_BASE OPENBSD_5_1_BASE
# 1.16 29-Jun-2010 kjell

Having more than 2 log levels is silly. Use only 3 verbosity levels:
None (), Important (-v), All (-vv)
ok deraadt@


Revision tags: OPENBSD_4_1_BASE OPENBSD_4_2_BASE OPENBSD_4_3_BASE OPENBSD_4_4_BASE OPENBSD_4_5_BASE OPENBSD_4_6_BASE OPENBSD_4_7_BASE
# 1.15 08-Jan-2007 markus

allow shared key specification in hex (0x01234...); ok ho


Revision tags: OPENBSD_4_0_BASE
# 1.14 02-Jun-2006 moritz

whitespace cleanup, no binary change.


# 1.13 02-Jun-2006 mcbride

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@


# 1.12 16-Apr-2006 moritz

cleanup error handling to avoid two memleaks. found and ok pat@


Revision tags: OPENBSD_3_9_BASE
# 1.11 26-Jan-2006 moritz

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


# 1.10 20-Jan-2006 millert

Don't depend on implicit include of signal.h


# 1.9 11-Sep-2005 moritz

handle short read()'s. fixes transfer
of very large SA/SPD snapshots. ok ho@


Revision tags: OPENBSD_3_8_BASE
# 1.8 27-May-2005 ho

Keep sockaddr in syncpeer struct.


# 1.7 26-May-2005 ho

add a 'flushmode' to control how the master handles FLUSH to slaves. tweak some loglevels.


# 1.6 24-May-2005 ho

cleanup parser, permit more than one listener


# 1.5 24-May-2005 ho

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.


# 1.4 23-May-2005 ho

Various logging fixes, handle peer disconnects better.


# 1.3 23-May-2005 ho

add "listen on <interface name>"


# 1.2 22-May-2005 ho

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


# 1.1 30-Mar-2005 ho

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