summaryrefslogtreecommitdiffstats
path: root/usr.sbin/sasyncd (follow)
Commit message (Collapse)AuthorAgeFilesLines
* 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@
* document the bug that sasyncd peers should share the sameotto2008-04-041-2/+6
| | | | | platform. it would be really nice if somebody would fix this. ok mpf@ todd@ jmc@
* sync the synopsis and usage; "usage:" is lowercasesobrado2008-03-171-3/+2
| | | | ok jmc@
* use calloc() to avoid malloc(n * m) overflows; checked by djm canacar jsgderaadt2007-09-021-3/+3
|
* convert to new .Dd format;jmc2007-05-312-4/+4
|
* Check getpwnam() return value for NULL before dereferencing it.moritz2007-05-171-2/+8
| | | | ok ray@ millert@
* Zero out struct before using, not after.ray2007-02-261-2/+3
| | | | | | From <sthen at symphytum dot spacehopper dot org>, PR 5388. OK hshoexer@ and mpf@.
* allow shared key specification in hex (0x01234...); ok homarkus2007-01-084-21/+74
|
* make option processing happen first.msf2006-12-261-10/+10
| | | | ok deraadt@
* good day to remove a some pooderaadt2006-12-251-13/+4
|
* spacingderaadt2006-12-252-4/+4
|
* first pass cleanup of sasyncd, based on some discussion with deraadt@msf2006-12-243-67/+59
| | | | | | | inline conf_init into main() and remove it from conf.y. add usage(). small amount of whitespace nits in sasync.h ok deraadt@ mcbride@
* add additional link states to report the half duplex / full duplexreyk2006-11-281-1/+3
| | | | | | | | state, if known by the driver. this is required to check the full duplex state without depending on the ifmedia ioctl which can't be called in the kernel without process context. ok henning@, brad@
* Only interpret link state routing messages for the monitored carp interface.mpf2006-09-161-6/+12
| | | | | memcpy the if_msghdr to avoid alignment problems. OK hshoexer@, miod@, deraadt@
* for apps which use interface groups, point to the section ofjmc2006-09-121-1/+7
| | | | | | ifconfig(8) where they are explained; ok mcbride mpf henning
* Teach sasyncd to set isakmpd into active or passive mode, accordingmpf2006-09-016-16/+130
| | | | | | to our current carp state. Based on a diff by ho@. OK ho@, hshoexer@, deraadt@
* Add more SADB types to the filter: ACQUIRE, X_ASKPOLICY, REGISTER.mpf2006-08-311-10/+11
| | | | | | While there put the message sieve into the more appropriate filter function. Pointed out by markus. OK ho@, markus@, hshoexer@, deraadt@