summaryrefslogtreecommitdiff
path: root/usr.sbin/ifstated/ifstated.c
AgeCommit message (Expand)Author
2017-07-21No need for ioctl(SIOCGIFDATA), getifaddrs(3) gives us the link stateJeremie Courreges-Anglas
2017-07-04rename fetch_state() to fetch_ifstate(). The word "state" is a bitSebastian Benoit
2017-07-03Remove obvious clear_config() comments and misleading state_change() comments.Sebastian Benoit
2017-07-02Second diff to rename additional "always" variable in struct ifsd_config.Sebastian Benoit
2017-07-02Remove variable assignment in declaration and add whitespace to improveSebastian Benoit
2017-07-02Rename one of the "always" variables to "body" for improved readability.Sebastian Benoit
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
2017-06-18update log.c in ifstated to the same used in bgpd etc.Sebastian Benoit
2013-05-30setsockopt to see messages for interfaces in all routing domains againHenning Brauer
2011-07-04LINK_STATE_IS_UP() cleanup userland part. There is no need to specialClaudio Jeker
2011-03-15use appropriate timerclear macro - from Christiano F. HaesbaertOkan Demirmen
2010-07-07Make ifstated cause a little less noise in /var/log/daemon.Stefan Sperling
2010-06-07setproctitle(NULL) is not needed, Michael Lechtermann; ok mpfTheo de Raadt
2010-02-04remove assumption that internal IFSD_LINK* defines are the same asKevin Steves
2009-06-25fix the function name in log_warn() text, it was borrowed from someStuart Henderson
2009-06-25Teach ifstated to use ROUTE_FILTER. Requested by claudio@.Stuart Henderson
2008-05-12Error out with usage line if additional arguments are given after thePierre-Yves Ritschard
2007-11-27remove some unneeded #includes; ok mcbride@Kevin Steves
2007-10-25sync logging with most other daemons.Pierre-Yves Ritschard
2006-11-28handle the new link states as UPReyk Floeter
2006-03-16Kill useless arguments to libevent *_set() functions.Ryan Thomas McBride
2006-02-08- configuration file can have relative pathCamiel Dobbelaar
2006-02-01Simplify expression code. Patch from markus@.Marco Pfatschbacher
2006-02-01Run external tests synchronous at state changes andMarco Pfatschbacher
2006-02-01If we reenter a state, it still has the old link state values cached.Marco Pfatschbacher
2006-01-25Remove gratuitous fetch_state() calls in state_change().Marco Pfatschbacher
2006-01-23Open the routing socket before load_config() calls fetch_state().Marco Pfatschbacher
2005-07-28Fix two situations where ifstated was leaking zombies.Marco Pfatschbacher
2005-02-07Fix protos, and a KNF nit. From Andrey Matveev <andrushock@korovino.net>Ryan Thomas McBride
2004-10-05Use priority instead of facility in vsyslog()Marco Pfatschbacher
2004-09-21Start external tests and init commands also in the initial state.Marco Pfatschbacher
2004-06-15knfTheo de Raadt
2004-04-27various small fixes;Jason McIntyre
2004-03-15call daemon(3) early; from tholo@; ok mcbride@Markus Friedl
2004-03-10Plug memory leak on SIGHUP. From Patrick Latifi.Ryan Thomas McBride
2004-03-07Document -v in ifstated.8 and usage() and use __progname in usage().Ryan Thomas McBride
2004-03-07Don't try to dereference null configuration.Ryan Thomas McBride
2004-02-26bring in log_init() from bgpd which gives us openlog(), ryan okHenning Brauer
2004-02-16freeifaddrs() data from getifaddrs()Ryan Thomas McBride
2004-02-15- Check error condition on config; load exit() on initial startup, simplyRyan Thomas McBride
2004-02-12Add missing \n to logit(), reverse logic on asprintf error so the error caseRyan Thomas McBride
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
2004-02-12KNFHenning Brauer
2004-02-12we need to memcpy out the ifmsghdr, it has different alignent requirementsHenning Brauer
2004-02-12bit KNF, to stderr what belongs to stderr, err where you mean err and notHenning Brauer
2004-02-05Clean up command line options:Ryan Thomas McBride
2004-02-04Update to ifstated; replace parser, introduce the concept of states,Ryan Thomas McBride