summaryrefslogtreecommitdiff
path: root/usr.sbin/ifstated
AgeCommit message (Collapse)Author
2018-06-18remove the SECTIONS header, since a one line DESCRIPTION is a bit silly;Jason McIntyre
use a more general text for the sections, and avoid the catchup issue that was trying to document how many there were; ok benno rob
2018-04-26Plug leak in error case of the common 'varset' implementations.Kenneth R Westerback
ok benno@
2018-03-06Initialize pushback_index like we do (mostly) everywhere else.rob
2018-03-06Mention that there is no macro expansion inside quotes.rob
ok jmc@
2018-03-03Add missing comma.rob
2018-01-20Improve the config example.Marco Pfatschbacher
Suggest using carpdemote instead of tweaking the advskew setting. Also add a check for a non-carp link state. Prodded by jmc@. OK jmc@, rob@.
2017-08-30Add support for interface departure and arrival.rob
Ok jca@, benno@
2017-08-21Remove unnecessary NULL check and fix an incorrect warning.rob
Ok jca@
2017-08-20Stop tracking interface indexes. Suggested by deraadt.rob
Tweaks and ok jca@ "just get it in" deraadt@
2017-08-14Remove some dead logging code that was never used.rob
Ok benno@
2017-08-08Use configtest as one word like other network daemon man pages.rob
Ok benno@, jmc@
2017-08-08Consistent use of log.c, and removal of err.h include. Makes ifstatedrob
configtest output the same as other networking daemons. Ok jca@
2017-08-06Improve error checking during processing of routing messages. Handling ofrob
RTM_DESYNC encouraged by deraadt. ok jca@ benno@
2017-07-24Use pledge(2)Jeremie Courreges-Anglas
Simple promises proposed by Rob Pierce after exploring more complicated privsep schemes. ok benno@
2017-07-23Don't bother initializing global variables to 0, since they will be in BSS.Theo de Raadt
ok jca
2017-07-23use ssize_t; ok jcaTheo de Raadt
2017-07-23Time comparison variables should be time_t (I did check for signed vsTheo de Raadt
unsigned handling) ok jca
2017-07-22No need for sys/ioctl.h any moreJeremie Courreges-Anglas
2017-07-21Add a newlineJeremie Courreges-Anglas
2017-07-21No need for ioctl(SIOCGIFDATA), getifaddrs(3) gives us the link stateJeremie Courreges-Anglas
Noticed while reviewing a pledge(2) diff from Rob Pierce. ok florian@
2017-07-04delete tokens that have never been used.Sebastian Benoit
From Rob Pierce ok yacc and gcc
2017-07-04rename fetch_state() to fetch_ifstate(). The word "state" is a bitSebastian Benoit
overloaded in this daemon. From Rob Pierce
2017-07-04Fix some variable alignment whitespace.Sebastian Benoit
From Rob Pierce
2017-07-03Remove obvious clear_config() comments and misleading state_change() comments.Sebastian Benoit
Also relocate do_action() calls for the init block from change_state() to occur with the corresponding do_action() calls for the body block. From Rob Pierce ok stsp@ and i
2017-07-02Second diff to rename additional "always" variable in struct ifsd_config.Sebastian Benoit
from Rob Pierce. Requested by stsp@
2017-07-02Remove unused variable from header file.Sebastian Benoit
from Rob Pierce. ok stsp@ and me
2017-07-02Remove variable assignment in declaration and add whitespace to improveSebastian Benoit
readability. No functional change. from Rob Pierce. ok stsp@ and me
2017-07-02Rename one of the "always" variables to "body" for improved readability.Sebastian Benoit
No functional change. from Rob Pierce. ok stsp@ and me
2017-06-28whitespace fixes, from Rob Pierce and meSebastian Benoit
2017-06-28usage() gets __dead attribute, from Rob PierceSebastian Benoit
2017-06-27Hoist some privileged code in preparation for future work.Sebastian Benoit
Based on an approach in vmd with mc146818/ns8250. diff by Rob Pierce <rob -AT- 2keys -DOT- ca> ok deraadt@
2017-06-18update log.c in ifstated to the same used in bgpd etc.Sebastian Benoit
Done by Rob Pierce <rob AT 2keys DOT ca>, thanks
2017-03-21From a syslog perspective it does not make sense to log fatal andAlexander Bluhm
warn with the same severity. Switch log_warn() to LOG_ERR and keep fatal() at LOG_CRIT. OK reyk@ florian@
2017-01-05Replace hand-rolled for(;;) emptying of 'symhead' TAILQ with moreKenneth R Westerback
modern TAILQ_FOREACH_SAFE(). No intentional functional change. ok millert@ bluhm@ gilles@
2017-01-05Replace symset()'s hand-rolled for(;;) traversal of 'symhead' TAILQKenneth R Westerback
with more modern TAILQ_FOREACH(). This what symget() was already doing. Add paranoia '{}' around body of symget()'s TAILQ_FOREACH(). No intentional functional change. ok bluhm@ otto@
2016-09-02work on making log.c similar in all daemons:Sebastian Benoit
move daemon-local functions into new logmsg.c, and reduce the (mostly whitespace) differences so that log.c's can be diffed easily. ok claudio@
2016-08-27Pull in <time.h> for one or more of gmtime, strftime, strptime, time,Philip Guenther
timegm, and tzset ok deraadt@
2016-07-19remove bogus attributes from ifstated, spooted by guenther@Sebastian Benoit
2016-07-18add format attributes to log functionsSebastian Benoit
ok stsp@ claudio@ florian@
2016-06-21do not allow whitespace in macro names, i.e. "this is" = "a variable".Sebastian Benoit
change this in all config parsers in our tree that support macros. problem reported by sven falempin. feedback from henning@, stsp@, deraadt@ ok florian@ mikeb@
2016-01-29Fix err.h uses, reporting errno when available and simplifying errormmcc
messages. Partially from Michael Reed.
2015-09-25drop useless .Xo and .Bk, and shorten by avoiding some .SmIngo Schwarze
2014-11-20Don't allow embedded nul characters in strings.Jonathan Gray
Fixes a pfctl crash with an anchor name containing an embedded nul found with the afl fuzzer. pfctl parse.y patch from and ok deraadt@
2014-11-03Convert the logic in yyerror(). Instead of creating a temporaryAlexander Bluhm
format string, create a temporary message. OK claudio@
2014-11-03Add gcc format attributes to more warn/error functions in parse.y files.Doug Hogan
Fix a few missing or incorrect format characters. ok claudio@
2014-01-22relax the cfg file secrecy check slightly to allow group readabilityHenning Brauer
default permissions and mtree NOT changed. prodded by benno, ok phessler benno jmatthew theo pelikan florian
2013-11-25use u_char for buffers in yylex, for ctype callsSebastian Benoit
found by millert@, ok deraadt@
2013-05-30setsockopt to see messages for interfaces in all routing domains againHenning Brauer
instead of just the primary one. problem reported along with the right idea on how to fix it by Sean Gallagher (sean at teletech.com.au), actual fix by yours truly. Thanks Sean! ok ryan claudio
2013-03-06as done in ospf{,6}d/relayd, sync yyerror in various other daemons withStuart Henderson
that from bgpd, so that it logs to syslog when daemonized.
2012-04-24take a stab at documenting when arguments need quoted, and valid macroJason McIntyre
characters; prompted by a diff from robert peichaer org thanks gilles and henning for feedback ok deraadt zinke