summaryrefslogtreecommitdiff
path: root/usr.sbin/sasyncd
AgeCommit message (Collapse)Author
2018-06-28calling memset() after calloc() is redudant, sinceGleydson Soares
calloc() already filled all the memory block to 0. OK deraadt@ cheloha@ millert@
2018-04-10Schedule events against the monotonic clock.cheloha
So that events fire punctually, even if the system clock is changed. ok jca@
2017-08-31enum can be signed or unsigned depending on the compiler; so make sure weOtto Moerbeek
cast to unsigned and test for > X to avoid warnings that comparing an unsigned < 0 make no sense; ok deraadt@
2017-07-03no need to generate y.tab.h if nothing uses it, set YFLAGS to nothingMarc Espie
instead of CLEANFILES += y.tab.h okay millert@
2017-05-21A few more freezero() usesTheo de Raadt
ok yasuoka mikeb
2017-04-18use freezero()Theo de Raadt
2017-04-10Check early if the mandatory carp "interface" was configured.Reyk Floeter
This allows the new -n config check to work correctly. OK jsg@ deraadt@
2017-04-09Fix multiple cases of reading past the end of a buffer in the sasyncd(8)Jonathan Gray
config parser found with afl. feedback and ok millert@ ok deraadt@
2017-04-04add a config test flag to sasyncdJonathan Gray
ok reyk@ deraadt@ jmc@
2017-04-04Add missing newline in fprintf error message.Reyk Floeter
OK jsg@
2016-08-27Pull in <sys/select.h> for fd_setPhilip Guenther
ok deraadt@
2016-08-27Use %zu for size_t argumentsPhilip Guenther
2016-07-18add format attributes to log functions and fix some errorsSebastian Benoit
ok claudio@ florian@
2015-12-12Remove NULL-checks before free().mmcc
2015-11-12an invalid carp link state is not a fatal error, since a while newly createdOtto Moerbeek
carp interfaces have this state for a while. ok mpi@ phessler@
2015-10-18Use explicit_bzero() when the memory is freed directly afterward.mmcc
ok deraadt@
2015-08-20stdlib.h is in scope; do not cast malloc/calloc/realloc*Theo de Raadt
ok millert krw
2015-01-16Replace <sys/param.h> with <limits.h> and other less dirty headers whereTheo de Raadt
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)
2014-10-26fix use of uninitialized variable in error pathCharles Longeau
ok deraadt@
2014-10-16simple reallocarray()Theo de Raadt
2014-07-04malloc+memset -> callocPhilip Guenther
from Benjamin Baier (programmer (at) netzbasis.de)
2014-06-29If you want <sys/queue.h>, you need to include it. Don't assume thatTheo de Raadt
<sys/sysctl.h> will pull in the universe (I am working on breaking that assumption in a gentle fashion)
2013-03-11handle ECONNABORTED errors from accept(). In many code blocks they can beTheo de Raadt
ignored silently and without aborting, much like EINTR and EWOULDBLOCK are. ok's from various maintainers of these directories...
2012-12-21valid port interval 1 through 65535, not 1 - 65534Gleydson Soares
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@
2012-09-15Don't depend on sa_family_t being typedefed by <sys/types.h>; pull inPhilip Guenthe
<netinet/in.h> to reliably get it ok matthew@, millert@, deraadt@
2012-09-12Fix a race condition which would cause segfault due to the kernelChristiano F. Haesbaert
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
2012-09-04fix log_err() calls (from Patrick Wildt) and remove extra space.Okan Demirmen
ok haesbaert@
2012-08-17Don't need this anymore, we have it in bsd.own.mk now.Christiano F. Haesbaert
2012-04-15fix a leakJonathan Gray
ok krw@
2012-04-14Kill Boehms GC dead.Christiano F. Haesbaert
ok mikeb@ sure deraadt@
2012-04-14read returns ssize_t not int.Christiano F. Haesbaert
ok mikeb@
2012-04-14Kill useless memset.Christiano F. Haesbaert
ok mikeb@ "looks good" deraadt@
2012-04-14Don't return from main with 2 uppon issuing double -c option, printChristiano F. Haesbaert
proper usage() message. ok mikeb@ "looks good" deraadt@
2012-04-14Add CDIAGFLAGS infrastructure.Christiano F. Haesbaert
Fix signed vs unsigned and dup symbol shadow. ok mikeb@ "looks good" deraadt@
2012-04-02Fix memory leak in error path, originally based on a diff from jsg@.Todd C. Miller
OK deraadt@
2011-06-23Use a common text explaining how the various configuration parsers usingStuart Henderson
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@.
2010-06-30clarify why carp demotion is necessary, and who is doing it.Kjell Wooding
ok reyk@, sthen@
2010-06-29Fix an obviously wrong comment. ok reyk@Kjell Wooding
2010-06-29Having more than 2 log levels is silly. Use only 3 verbosity levels:Kjell Wooding
None (), Important (-v), All (-vv) ok deraadt@
2010-06-16Add support to use sasyncd(8) with iked(8) instead of isakmpd(8). TheReyk Floeter
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@
2009-11-11memory leak found by parfaitTheo de Raadt
2009-11-11spacingTheo de Raadt
2009-06-26use standard safe CTheo de Raadt
2009-06-25sasyncd isn't interested in messages on the routing socket other thanStuart Henderson
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@
2008-04-04document the bug that sasyncd peers should share the sameOtto Moerbeek
platform. it would be really nice if somebody would fix this. ok mpf@ todd@ jmc@
2008-03-17sync the synopsis and usage; "usage:" is lowercaseIgor Sobrado
ok jmc@
2007-09-02use calloc() to avoid malloc(n * m) overflows; checked by djm canacar jsgTheo de Raadt
2007-05-31convert to new .Dd format;Jason McIntyre
2007-05-17Check getpwnam() return value for NULL before dereferencing it.Moritz Jodeit
ok ray@ millert@
2007-02-26Zero out struct before using, not after.Ray Lai
From <sthen at symphytum dot spacehopper dot org>, PR 5388. OK hshoexer@ and mpf@.