summaryrefslogtreecommitdiffstats
path: root/usr.sbin/sasyncd (follow)
Commit message (Collapse)AuthorAgeFilesLines
* change "demote counter" / "demote count" to "demotion counter", ok deraadtsthen2021-02-011-3/+3
|
* briefly mention /etc/examples/ in the FILES section of all theschwarze2020-02-101-2/+7
| | | | | manual pages that document the corresponding configuration files; OK jmc@, and general direction discussed with many
* When system calls indicate an error they return -1, not some arbitraryderaadt2019-06-281-2/+2
| | | | | | 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.
* Fix IPv6 address parsing and skipping of comment lines followed by blankotto2019-03-211-2/+5
| | | | lines; Found while investigating a diff from Michal Koc; ok kn@
* PF_ROUTE -> AF_ROUTE in the scattered sock()/setsockopt() callskrw2019-01-221-3/+3
| | | | | | where the "wrong" #define was used. ok dlg@
* convert to using $OpenBSD markerstedu2019-01-171-1/+1
|
* calling memset() after calloc() is redudant, sincegsoares2018-06-281-2/+1
| | | | | | calloc() already filled all the memory block to 0. OK deraadt@ cheloha@ millert@
* Schedule events against the monotonic clock.cheloha2018-04-103-27/+29
| | | | | | So that events fire punctually, even if the system clock is changed. ok jca@
* enum can be signed or unsigned depending on the compiler; so make sure weotto2017-08-311-3/+3
| | | | | cast to unsigned and test for > X to avoid warnings that comparing an unsigned < 0 make no sense; ok deraadt@
* no need to generate y.tab.h if nothing uses it, set YFLAGS to nothingespie2017-07-031-2/+2
| | | | | | instead of CLEANFILES += y.tab.h okay millert@
* A few more freezero() usesderaadt2017-05-211-25/+8
| | | | ok yasuoka mikeb
* use freezero()deraadt2017-04-181-5/+3
|
* Check early if the mandatory carp "interface" was configured.reyk2017-04-101-1/+6
| | | | | | This allows the new -n config check to work correctly. OK jsg@ deraadt@
* Fix multiple cases of reading past the end of a buffer in the sasyncd(8)jsg2017-04-091-3/+5
| | | | | | config parser found with afl. feedback and ok millert@ ok deraadt@
* add a config test flag to sasyncdjsg2017-04-042-7/+18
| | | | ok reyk@ deraadt@ jmc@
* Add missing newline in fprintf error message.reyk2017-04-041-2/+2
| | | | OK jsg@
* Pull in <sys/select.h> for fd_setguenther2016-08-273-3/+6
| | | | ok deraadt@
* Use %zu for size_t argumentsguenther2016-08-271-2/+2
|
* add format attributes to log functions and fix some errorsbenno2016-07-183-9/+11
| | | | ok claudio@ florian@
* Remove NULL-checks before free().mmcc2015-12-121-5/+3
|
* an invalid carp link state is not a fatal error, since a while newly createdotto2015-11-121-1/+2
| | | | carp interfaces have this state for a while. ok mpi@ phessler@
* Use explicit_bzero() when the memory is freed directly afterward.mmcc2015-10-182-11/+11
| | | | ok deraadt@
* stdlib.h is in scope; do not cast malloc/calloc/realloc*deraadt2015-08-207-29/+28
| | | | ok millert krw
* Replace <sys/param.h> with <limits.h> and other less dirty headers wherederaadt2015-01-162-5/+4
| | | | | | | | | possible. Annotate <sys/param.h> lines with their current reasons. Switch to PATH_MAX, NGROUPS_MAX, HOST_NAME_MAX+1, LOGIN_NAME_MAX, etc. Change MIN() and MAX() to local definitions of MINIMUM() and MAXIMUM() where sensible to avoid pulling in the pollution. These are the files confirmed through binary verification. ok guenther, millert, doug (helped with the verification protocol)
* fix use of uninitialized variable in error pathchl2014-10-261-2/+2
| | | | ok deraadt@
* simple reallocarray()deraadt2014-10-161-3/+3
|
* malloc+memset -> callocguenther2014-07-041-4/+3
| | | | from Benjamin Baier (programmer (at) netzbasis.de)
* If you want <sys/queue.h>, you need to include it. Don't assume thatderaadt2014-06-291-1/+2
| | | | | <sys/sysctl.h> will pull in the universe (I am working on breaking that assumption in a gentle fashion)
* handle ECONNABORTED errors from accept(). In many code blocks they can bederaadt2013-03-111-2/+3
| | | | | ignored silently and without aborting, much like EINTR and EWOULDBLOCK are. ok's from various maintainers of these directories...
* valid port interval 1 through 65535, not 1 - 65534gsoares2012-12-211-3/+2
| | | | | | | | 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@
* Don't depend on sa_family_t being typedefed by <sys/types.h>; pull inguenther2012-09-151-1/+2
| | | | | | <netinet/in.h> to reliably get it ok matthew@, millert@, deraadt@
* Fix a race condition which would cause segfault due to the kernelhaesbaert2012-09-121-43/+72
| | | | | | | | | | | | sending less (or more) data than expected. We do a sysctl to know how much data should be read, and then we try to read that amount, but there is a window between this two calls that things can change, this makes sure we have an "atomic view" of data. From Patrick Wildt, tested with over 7000 SAs, thanks. ok deraadt
* fix log_err() calls (from Patrick Wildt) and remove extra space.okan2012-09-041-3/+3
| | | | ok haesbaert@
* Don't need this anymore, we have it in bsd.own.mk now.haesbaert2012-08-171-11/+1
|
* fix a leakjsg2012-04-151-1/+2
| | | | ok krw@
* Kill Boehms GC dead.haesbaert2012-04-143-33/+3
| | | | | ok mikeb@ sure deraadt@
* read returns ssize_t not int.haesbaert2012-04-141-2/+3
| | | | ok mikeb@
* Kill useless memset.haesbaert2012-04-141-3/+1
| | | | | ok mikeb@ "looks good" deraadt@
* Don't return from main with 2 uppon issuing double -c option, printhaesbaert2012-04-141-2/+2
| | | | | | | proper usage() message. ok mikeb@ "looks good" deraadt@
* Add CDIAGFLAGS infrastructure.haesbaert2012-04-144-10/+21
| | | | | | | Fix signed vs unsigned and dup symbol shadow. ok mikeb@ "looks good" deraadt@
* Fix memory leak in error path, originally based on a diff from jsg@.millert2012-04-021-16/+12
| | | | OK deraadt@
* Use a common text explaining how the various configuration parsers usingsthen2011-06-231-3/+7
| | | | | | | | | the standard OpenBSD-style parse.y handle continuing lines with backslashes, paying particular attention to how comments are handled (which can cause nasty side-effects if you're not expecting it). Most wording from jmc@, with suggestions from fgsch@, marc@, Richard Toohey, patrick keshishian and Florian Obser, ok jmc@.
* clarify why carp demotion is necessary, and who is doing it.kjell2010-06-301-5/+8
| | | | ok reyk@, sthen@
* Fix an obviously wrong comment. ok reyk@kjell2010-06-291-2/+2
|
* Having more than 2 log levels is silly. Use only 3 verbosity levels:kjell2010-06-295-33/+33
| | | | | None (), Important (-v), All (-vv) ok deraadt@
* Add support to use sasyncd(8) with iked(8) instead of isakmpd(8). Thereyk2010-06-169-51/+196
| | | | | | | | | | | | | 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@
* memory leak found by parfaitderaadt2009-11-111-1/+2
|
* spacingderaadt2009-11-111-2/+2
|
* use standard safe Cderaadt2009-06-261-2/+2
|
* sasyncd isn't interested in messages on the routing socket other thansthen2009-06-251-1/+7
| | | | | | 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@