OpenBSD CVS

CVS log for src/usr.sbin/sasyncd/conf.y


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

Request diff between arbitrary revisions


Default branch: MAIN


Revision 1.22 / (download) - annotate - [select for diffs], Sun Oct 24 21:24:19 2021 UTC (2 years, 7 months ago) by deraadt
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.21: +2 -2 lines
Diff to previous 1.21 (colored)

For open/openat, if the flags parameter does not contain O_CREAT, the
3rd (variadic) mode_t parameter is irrelevant.  Many developers in the past
have passed mode_t (0, 044, 0644, or such), which might lead future people
to copy this broken idiom, and perhaps even believe this parameter has some
meaning or implication or application. Delete them all.
This comes out of a conversation where tb@ noticed that a strange (but
intentional) pledge behaviour is to always knock-out high-bits from
mode_t on a number of system calls as a safety factor, and his bewilderment
that this appeared to be happening against valid modes (at least visually),
but no sorry, they are all irrelevant junk.  They could all be 0xdeafbeef.
ok millert

Revision 1.21 / (download) - annotate - [select for diffs], Fri Jun 28 13:32:50 2019 UTC (4 years, 11 months ago) by deraadt
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
Changes since 1.20: +2 -2 lines
Diff to previous 1.20 (colored)

When system calls indicate an error they return -1, not some arbitrary
value < 0.  errno is only updated in this case.  Change all (most?)
callers of syscalls to follow this better, and let's see if this strictness
helps us in the future.

Revision 1.20 / (download) - annotate - [select for diffs], Thu Mar 21 10:55:41 2019 UTC (5 years, 2 months ago) by otto
Branch: MAIN
CVS Tags: OPENBSD_6_5_BASE, OPENBSD_6_5
Changes since 1.19: +5 -2 lines
Diff to previous 1.19 (colored)

Fix IPv6 address parsing and skipping of comment lines followed by blank
lines; Found while investigating a diff from Michal Koc; ok kn@

Revision 1.19 / (download) - annotate - [select for diffs], Sun Apr 9 02:40:24 2017 UTC (7 years, 1 month ago) by jsg
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.18: +5 -3 lines
Diff to previous 1.18 (colored)

Fix multiple cases of reading past the end of a buffer in the sasyncd(8)
config parser found with afl.

feedback and ok millert@ ok deraadt@

Revision 1.18 / (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.17: +4 -4 lines
Diff to previous 1.17 (colored)

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

Revision 1.17 / (download) - annotate - [select for diffs], Fri Dec 21 13:53:01 2012 UTC (11 years, 5 months ago) by gsoares
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
Changes since 1.16: +2 -3 lines
Diff to previous 1.16 (colored)

valid port interval 1 through 65535, not 1 - 65534

check interval with yacc/$5 variable instead of cfgstate.listen_port that is an in_port_t type, for avoid warnings, due to limited range of data type;

use IPPORT_HILASTAUTO for more consistence (input from millert@)

"yeah, I like that. ok" henning@

Revision 1.16 / (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_2_BASE, OPENBSD_5_2
Changes since 1.15: +4 -4 lines
Diff to previous 1.15 (colored)

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

ok mikeb@
"looks good" deraadt@

Revision 1.15 / (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.14: +30 -3 lines
Diff to previous 1.14 (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.14 / (download) - annotate - [select for diffs], Thu May 17 11:01:36 2007 UTC (17 years ago) by moritz
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
Changes since 1.13: +8 -2 lines
Diff to previous 1.13 (colored)

Check getpwnam() return value for NULL before dereferencing it.

ok ray@ millert@

Revision 1.13 / (download) - annotate - [select for diffs], Mon Jan 8 15:31:01 2007 UTC (17 years, 4 months ago) by markus
Branch: MAIN
CVS Tags: OPENBSD_4_1_BASE, OPENBSD_4_1
Changes since 1.12: +65 -6 lines
Diff to previous 1.12 (colored)

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

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

whitespace cleanup, no binary change.

Revision 1.10 / (download) - annotate - [select for diffs], Fri Jun 2 20:09:43 2006 UTC (18 years ago) by mcbride
Branch: MAIN
Changes since 1.9: +20 -7 lines
Diff to previous 1.9 (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.9 / (download) - annotate - [select for diffs], Thu Jun 1 22:43:12 2006 UTC (18 years ago) by mcbride
Branch: MAIN
Changes since 1.8: +4 -12 lines
Diff to previous 1.8 (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.8 / (download) - annotate - [select for diffs], Fri Mar 31 17:38:18 2006 UTC (18 years, 2 months ago) by pat
Branch: MAIN
Changes since 1.7: +2 -1 lines
Diff to previous 1.7 (colored)

Plug memory leak on error path; ok ho@ moritz@

Revision 1.7 / (download) - annotate - [select for diffs], Sat Jul 9 07:53:26 2005 UTC (18 years, 10 months ago) by jmc
Branch: MAIN
CVS Tags: OPENBSD_3_9_BASE, OPENBSD_3_9, OPENBSD_3_8_BASE, OPENBSD_3_8
Changes since 1.6: +2 -2 lines
Diff to previous 1.6 (colored)

IP-address -> IP address;
from tamas tevesz;

Revision 1.6 / (download) - annotate - [select for diffs], Sat May 28 01:36:02 2005 UTC (19 years ago) by deraadt
Branch: MAIN
Changes since 1.5: +2 -2 lines
Diff to previous 1.5 (colored)

result not used; ok ho

Revision 1.5 / (download) - annotate - [select for diffs], Sat May 28 01:07:52 2005 UTC (19 years ago) by ho
Branch: MAIN
Changes since 1.4: +31 -22 lines
Diff to previous 1.4 (colored)

Optionally prevent syncing failover node-node SA/SPD info (master side).

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

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

Revision 1.3 / (download) - annotate - [select for diffs], Tue May 24 19:18:10 2005 UTC (19 years ago) by ho
Branch: MAIN
Changes since 1.2: +53 -34 lines
Diff to previous 1.2 (colored)

cleanup parser, permit more than one listener

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: +18 -8 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], Sun Apr 3 17:19:26 2005 UTC (19 years, 2 months ago) by ho
Branch: MAIN

yacc parser

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.