summaryrefslogtreecommitdiff
path: root/usr.sbin/ifstated/ifstated.c
AgeCommit message (Expand)Author
2019-06-28When system calls indicate an error they return -1, not some arbitraryTheo de Raadt
2019-01-22PF_ROUTE -> AF_ROUTE in the scattered sock()/setsockopt() callsKenneth R Westerback
2018-10-31ifstated(8) needs to load configfile from within the main loop, but also toRicardo Mestre
2017-08-30Add support for interface departure and arrival.rob
2017-08-20Stop tracking interface indexes. Suggested by deraadt.rob
2017-08-14Remove some dead logging code that was never used.rob
2017-08-08Consistent use of log.c, and removal of err.h include. Makes ifstatedrob
2017-08-06Improve error checking during processing of routing messages. Handling ofrob
2017-07-24Use pledge(2)Jeremie Courreges-Anglas
2017-07-23Don't bother initializing global variables to 0, since they will be in BSS.Theo de Raadt
2017-07-23use ssize_t; ok jcaTheo de Raadt
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
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