OpenBSD CVS

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


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

Request diff between arbitrary revisions


Default branch: MAIN


Revision 1.24 / (download) - annotate - [select for diffs], Fri Jan 28 06:33:27 2022 UTC (2 years, 4 months ago) by guenther
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, HEAD
Changes since 1.23: +2 -2 lines
Diff to previous 1.23 (colored)

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

Revision 1.23 / (download) - annotate - [select for diffs], Sat Dec 12 20:04:23 2015 UTC (8 years, 5 months ago) by mmcc
Branch: MAIN
CVS Tags: 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, OPENBSD_6_3_BASE, OPENBSD_6_3, OPENBSD_6_2_BASE, OPENBSD_6_2, OPENBSD_6_1_BASE, OPENBSD_6_1, OPENBSD_6_0_BASE, OPENBSD_6_0, OPENBSD_5_9_BASE, OPENBSD_5_9
Changes since 1.22: +3 -5 lines
Diff to previous 1.22 (colored)

Remove NULL-checks before free().

Revision 1.22 / (download) - annotate - [select for diffs], Thu Aug 20 22:39:29 2015 UTC (8 years, 9 months ago) by deraadt
Branch: MAIN
Changes since 1.21: +9 -10 lines
Diff to previous 1.21 (colored)

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

Revision 1.21 / (download) - annotate - [select for diffs], Fri Jul 4 22:32:29 2014 UTC (9 years, 11 months ago) by guenther
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
Changes since 1.20: +3 -4 lines
Diff to previous 1.20 (colored)

malloc+memset -> calloc

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

Revision 1.20 / (download) - annotate - [select for diffs], Mon Mar 11 17:40:11 2013 UTC (11 years, 3 months ago) by deraadt
Branch: MAIN
CVS Tags: OPENBSD_5_5_BASE, OPENBSD_5_5, OPENBSD_5_4_BASE, OPENBSD_5_4
Changes since 1.19: +3 -2 lines
Diff to previous 1.19 (colored)

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 1.19 / (download) - annotate - [select for diffs], Sun Apr 15 03:25:27 2012 UTC (12 years, 1 month ago) by jsg
Branch: MAIN
CVS Tags: OPENBSD_5_3_BASE, OPENBSD_5_3, OPENBSD_5_2_BASE, OPENBSD_5_2
Changes since 1.18: +2 -1 lines
Diff to previous 1.18 (colored)

fix a leak
ok krw@

Revision 1.18 / (download) - annotate - [select for diffs], Sat Apr 14 12:10:04 2012 UTC (12 years, 1 month ago) by haesbaert
Branch: MAIN
Changes since 1.17: +3 -2 lines
Diff to previous 1.17 (colored)

read returns ssize_t not int.

ok mikeb@

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

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

ok mikeb@
"looks good" deraadt@

Revision 1.16 / (download) - annotate - [select for diffs], Tue Jun 29 18:10:04 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.15: +16 -16 lines
Diff to previous 1.15 (colored)

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

Revision 1.15 / (download) - annotate - [select for diffs], Mon Jan 8 15:31:01 2007 UTC (17 years, 5 months ago) by markus
Branch: MAIN
CVS Tags: OPENBSD_4_7_BASE, OPENBSD_4_7, OPENBSD_4_6_BASE, OPENBSD_4_6, 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.14: +5 -12 lines
Diff to previous 1.14 (colored)

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

Revision 1.14 / (download) - annotate - [select for diffs], Fri Jun 2 20:31:48 2006 UTC (18 years ago) by moritz
Branch: MAIN
CVS Tags: OPENBSD_4_0_BASE, OPENBSD_4_0
Changes since 1.13: +5 -5 lines
Diff to previous 1.13 (colored)

whitespace cleanup, no binary change.

Revision 1.13 / (download) - annotate - [select for diffs], Fri Jun 2 20:09:43 2006 UTC (18 years ago) by mcbride
Branch: MAIN
Changes since 1.12: +2 -1 lines
Diff to previous 1.12 (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.12 / (download) - annotate - [select for diffs], Sun Apr 16 19:28:36 2006 UTC (18 years, 1 month ago) by moritz
Branch: MAIN
Changes since 1.11: +10 -8 lines
Diff to previous 1.11 (colored)

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

Revision 1.11 / (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.10: +2 -2 lines
Diff to previous 1.10 (colored)

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

Revision 1.10 / (download) - annotate - [select for diffs], Fri Jan 20 00:03:15 2006 UTC (18 years, 4 months ago) by millert
Branch: MAIN
Changes since 1.9: +2 -1 lines
Diff to previous 1.9 (colored)

Don't depend on implicit include of signal.h

Revision 1.9 / (download) - annotate - [select for diffs], Sun Sep 11 15:24:08 2005 UTC (18 years, 9 months ago) by moritz
Branch: MAIN
Changes since 1.8: +17 -12 lines
Diff to previous 1.8 (colored)

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

Revision 1.8 / (download) - annotate - [select for diffs], Fri May 27 20:47:11 2005 UTC (19 years ago) by ho
Branch: MAIN
CVS Tags: OPENBSD_3_8_BASE, OPENBSD_3_8
Changes since 1.7: +14 -10 lines
Diff to previous 1.7 (colored)

Keep sockaddr in syncpeer struct.

Revision 1.7 / (download) - annotate - [select for diffs], Thu May 26 19:19:51 2005 UTC (19 years ago) by ho
Branch: MAIN
Changes since 1.6: +6 -6 lines
Diff to previous 1.6 (colored)

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

Revision 1.6 / (download) - annotate - [select for diffs], Tue May 24 19:18:11 2005 UTC (19 years ago) by ho
Branch: MAIN
Changes since 1.5: +249 -154 lines
Diff to previous 1.5 (colored)

cleanup parser, permit more than one listener

Revision 1.5 / (download) - annotate - [select for diffs], Tue May 24 02:35:39 2005 UTC (19 years ago) by ho
Branch: MAIN
Changes since 1.4: +9 -2 lines
Diff to previous 1.4 (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.4 / (download) - annotate - [select for diffs], Mon May 23 19:53:27 2005 UTC (19 years ago) by ho
Branch: MAIN
Changes since 1.3: +69 -41 lines
Diff to previous 1.3 (colored)

Various logging fixes, handle peer disconnects better.

Revision 1.3 / (download) - annotate - [select for diffs], Mon May 23 17:35:01 2005 UTC (19 years ago) by ho
Branch: MAIN
Changes since 1.2: +71 -20 lines
Diff to previous 1.2 (colored)

add "listen on <interface name>"

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

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

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.