summaryrefslogtreecommitdiff
path: root/usr.sbin/ifstated
AgeCommit message (Collapse)Author
2005-09-09missing quote in an example;Jason McIntyre
from xavier venient; while i'm in here, remove a blank line that serves no purpose;
2005-08-09same hereMarco Pfatschbacher
3.8 not 3.5
2005-08-09ifstated isn't released before 3.8Marco Pfatschbacher
ok jmc@
2005-08-06add ifstated.conf(5) to SEE ALSO;Jason McIntyre
2005-08-06new manpage for ifstated.conf written with mpf@Nikolay Sturm
comments and help from jmc@, commitski henning@
2005-08-03use action_block in init instead of custom code, permits single lineNikolay Sturm
commands w/o braces in init ok henning, mpf
2005-07-28no need for libutil.Marco Pfatschbacher
OK markus@
2005-07-28Fix two situations where ifstated was leaking zombies.Marco Pfatschbacher
Tested by sturm@ OK henning@
2005-02-07Fix error message: set-state, not setstate.Ryan Thomas McBride
2005-02-07Fix protos, and a KNF nit. From Andrey Matveev <andrushock@korovino.net>Ryan Thomas McBride
2005-02-03Simplify the ifstated syntax:Marco Pfatschbacher
"carp0 link up" => carp0.link.up "and" => && "or" => || * Allow one line actions after if statements without braces. * Remove unecessary parentheses in the example config. ok mcbride@
2004-12-14use YFLAGS=Marco Pfatschbacher
ok mcbride@
2004-10-05Use priority instead of facility in vsyslog()Marco Pfatschbacher
Pointed out by Peter Philipp. ok mcbride@
2004-09-27mention how SIGHUP is handled.Jared Yanovich
from Michael Knudsen. ok mcbride
2004-09-21Start external tests and init commands also in the initial state.Marco Pfatschbacher
Log the pid when killing an external program. Avoid a possible NULL dereference. ok mcbride@
2004-06-15knfTheo de Raadt
2004-04-28correct yaccTheo de Raadt
2004-04-27various small fixes;Jason McIntyre
ok mcbride@
2004-03-15call daemon(3) early; from tholo@; ok mcbride@Markus Friedl
2004-03-10spacingTheo de Raadt
2004-03-10Plug memory leak on SIGHUP. From Patrick Latifi.Ryan Thomas McBride
2004-03-07plug 18 memory leaks, ryan okHenning Brauer
2004-03-07Document -v in ifstated.8 and usage() and use __progname in usage().Ryan Thomas McBride
Fix from merith at redmoon dot openbsd dot de, with slightly modified wording.
2004-03-07Don't try to dereference null configuration.Ryan Thomas McBride
Fix from merith at redmoon dot openbsd dot de.
2004-03-06pull a fix from bgpd:Henning Brauer
plug a memory leak in the lexer. the issue is this code fragement from yylex(): . token = lookup(buf); . yylval.v.string = strdup(buf); . if (yylval.v.string == NULL) . err(1, "yylex: strdup"); . return (token); lookup() tries to match buf against a list of keywords, and returns the associated token if it has a match, or the token STRING otherwise. STRING is the only token that needs (and free()s) yylval.v.string. however, we assigned memory for it with the strdup in yylex for each and every token. the fix is obviously only setting yylval.v.string when lookup() returns STRING. Patrick Latifi noticed that something was leaking with token handling, analysis and fix by me. ok deraadt@ also err instead of errx after strdup failure
2004-02-26bring in log_init() from bgpd which gives us openlog(), ryan okHenning Brauer
2004-02-16freeifaddrs() data from getifaddrs()Ryan Thomas McBride
from Patrick Latifi <pat@eyeo.org>
2004-02-15- Check error condition on config; load exit() on initial startup, simplyRyan Thomas McBride
warn if loading due to SIGHUP. (pointed out by mpf@) - Can't just bcopy the config struct, there are TAILQs. Pass pointers instead. - Initialise the SIGHUP and routing socket handlers after config is loaded. ok henning@
2004-02-14KNFRyan Thomas McBride
2004-02-12Add missing \n to logit(), reverse logic on asprintf error so the error caseRyan Thomas McBride
comes last. ok henning@
2004-02-12Add missing \n on usage. From Daniel Cavanagh <nofsk@vtown.com.au>Ryan Thomas McBride
2004-02-12the macro terminator suggests: hastalavista, LOG()Henning Brauer
use a logit() function with varargs and bells and whistles instead of this macro gore in LOG with static # of args that results in highlights like LOG(level, "%s", "started") logit blatantly stolenb from bgpd test and ok and "remove the \n then" ryan
2004-02-12KNFHenning Brauer
2004-02-12we need to memcpy out the ifmsghdr, it has different alignent requirementsHenning Brauer
then the char buffer and sparc64 hates unaligned shitz, ryan hshoexer ok
2004-02-12bit KNF, to stderr what belongs to stderr, err where you mean err and notHenning Brauer
errx as written ryan hshoexer ok
2004-02-05some small cleanup;Jason McIntyre
ok mcbride@
2004-02-05Add ifstated(8) manpage.Ryan Thomas McBride
2004-02-05Clean up command line options:Ryan Thomas McBride
- Make -v work as intended. - Add -n to test config without doing anything.
2004-02-04Update to ifstated; replace parser, introduce the concept of states,Ryan Thomas McBride
external tests, and boolean logic. Allows ifstated to handle partial failures on firewalls that are CARPd to each other. ok deraadt@
2004-01-23ifstated, from mpf@. This daemon listens on the routing socket forRyan Thomas McBride
interface link state changes and runs commands when these changes occur. This is particularly useful with carp(4) interfaces; stay tuned for additional features and documentation. ok deraadt@ mpf@