summaryrefslogtreecommitdiff
path: root/usr.sbin/ospfd
AgeCommit message (Collapse)Author
2018-09-27whitepspace fixSebastian Benoit
2018-09-07replace malloc()+strlcpy() with strndup() in cmdline_symset().miko
"looks good" gilles@ halex@
2018-08-29Prevent ospfd from starting if another ospfd is already using the sameremi
socket. The check on the control socket happens early so that the rc scripts detect a failure. OK claudio@ florian@
2018-07-27remove errant Ed added in previous;Jason McIntyre
2018-07-26note under which circumstances ospfd uses the route priofilterSebastian Benoit
to not receive all route messages, thus saving cpu time. wording as suggested by jmc@ ok remi@ jmc@ claudio@
2018-07-11Print the rdomain config option if present.remi
ok kn@ tb@ deraadt@ sthen@ jca@
2018-07-11Change the control socket to ospfd.sock.<rdomain>.remi
ok friehm@ jca@
2018-07-11Do for most running out of memory err() what was done for most runningKenneth R Westerback
out of memory log_warn(). i.e. ("%s", __func__) instead of manual function names and redundant verbiage about which wrapper detected the out of memory condition. ok henning@
2018-07-10Since we use multiple cloning routes (mpath) if more than one ip addressfriehm
exists in the same network, the routes are distinguished by their gateway address, which is the associated interface address. The ospfd has to track the gateway addresses so that kroute_matchgw() is able to find the correct routes. OK claudio@
2018-07-09Set log_setverbose(1) early to see debug logs during parsing the configremi
but only when -v is used. ok jca@ claudio@
2018-07-09No need to mention which memory allocation entry point failed (malloc,Kenneth R Westerback
calloc or strdup), we just need to log that we ran out of memory in a particular function. Recommended by florian@ and deraadt@ ok benno@ henning@ tb@
2018-07-08Be consistent in warn() and log_warn() usage whenKenneth R Westerback
running out of memory. Next step, be correct *and* consistent. ok dennis@ tb@ benno@ schwarze@
2018-06-25Add IMSG_IFADDRADD to ospfe and the master process.remi
This allows ospfd to recover automatically when an ip address gets removed and re-added as it happens when the netstart script is executed on a running system. previous attempt discussed with friehm@ last year input from sthen@ and jca@ OK jca@
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-06-11Fix an off-by-one line count when using include statements.denis
Thanks to otto@ for the initial diff. OK benno@
2018-04-26Plug leak in error case of the common 'varset' implementations.Kenneth R Westerback
ok benno@
2018-03-11Increase SO_RCVBUF of the ospf socket to 256k having this buffer can resultClaudio Jeker
in packet loss on busy and big networks and therefor to instability. Also adjust the SO_SNDBUF to real 64k just for consistency. From camiel@
2018-02-22The IF_EVT_NBR_CHNG event needs to be fired when a neighbor transitions toClaudio Jeker
a state of 2-Way or higher. There is no need to trigger the event for new neighbors. With this situations with multiple DRs after a netsplit should be solved. OK sthen@ and remi@
2018-02-11Use the new route filter ROUTE_PRIOFILTER in ospfd. Usually we onlySebastian Benoit
need to see routes with a higher priority (lower value) than ospfds own routes. ok claudio, ok henning previous version, feedback from sthen
2018-02-09Style tweaksJeremie Courreges-Anglas
ok remi@ benno@
2018-02-09Simplify logic a bit by moving a block. nbr_stop_itimer() does not useClaudio Jeker
the dr or bdr fields so clear them first.
2018-02-08Bump the read sockbuf of the routing socket to 2MB, may help reduce some ofClaudio Jeker
the desync cases. OK benno@
2018-02-05simplify macros, and avoid some arg splitting;Jason McIntyre
2018-02-05Introduce "depend on". This allows ospfd to set the metric dependentremi
on the status of another interface. in collaboration with benno@ jca@ OK benno@ jca@
2017-11-07document how ospfd interacts with carpremi
improvement from jmc@ ok phessler@ jca@ benno@ for previous version ok jmc@
2017-07-24Unify ROUNDUP macros for parsing route messages.friehm
Use the macro from route(8) / ospf6d(8) since it works also with argument 0. OK claudio@
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-24sync log.c from relayd et al to ospfd.Sebastian Benoit
there is still a little difference regarding handling of the verbosity value that will be handled later. ok claudio@
2017-01-23copy log.c/h from bgpd.Sebastian Benoit
ok claudio
2017-01-23Remove incomplete "forced nexthop" support.Jeremie Courreges-Anglas
Discussed with claudio@
2017-01-08Replace hand-rolled for(;;) traversal of ctl_conns TAILQ withKenneth R Westerback
TAILQ_FOREACH(). No intentional functional change. ok reyk@
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-12-27struct rroute has been removed, rename variables.Jeremie Courreges-Anglas
ok claudio@
2016-12-26Fix typo, happend -> happenedJeremie Courreges-Anglas
2016-12-21For IFINFO msgs, don't run the FSM if the interface state hasn't changed.Jeremie Courreges-Anglas
ok claudio@
2016-12-21When receiving an IFINFO message, also update the MTU of the interfaceJeremie Courreges-Anglas
Helps recovering from MTU mismatches. Prompted by a diff from Remi Locherer, ok claudio@
2016-11-19Print metric and type for "redistribute" in ospfd -v.Stuart Henderson
From Remi Locherer, ok claudio
2016-09-28'unneded stuff' -> 'unneeded stuff' in comments.Kenneth R Westerback
2016-09-04A few bits of stray leading/embedded/trailing whitespace spotted whileKenneth R Westerback
stealing code.
2016-09-03Simplify shutdown process.Renato Westphal
On shutdown, there's no need to use kill(2) to kill the child processes. Just closing the IPC sockets will make the children receive an EOF, break out from the event loop and then exit. Tha advantages of this "pipe teardown" are: * simpler code; * no need to pledge "proc" in the parent process; * removal of a (hard to trigger) PID reuse race condition. ok benno@ claudio@
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@, feedback from henning@, deraadt@, reyk@
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@, feedback from henning@, deraadt@, reyk@
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-06-06add format attributes to the proper functions and then fix theSebastian Benoit
warning in rde.c ok stsp@
2016-02-18Fix format string of a warning.Alexander Bluhm
from markus@; OK claudio@
2016-02-02Remove setproctitle() for the parent process. Because rc.d(8) uses processStuart Henderson
titles (including flags) to distinguish between daemons, this makes it possible to manage multiple copies of a daemon using the normal infrastructure by symlinking rc.d scripts to a new name. ok jung@ ajacoutot@, smtpd ok gilles@
2015-12-05Pledge ospfd SE ("stdio inet mcast") and RDE ("stdio") move some codeClaudio Jeker
around to make it possible. Parent can't be pledged at the moment because of carp ioctl (carp demote). Putting it in so that people can test. OK benno@
2015-12-03imsg_read will return EAGAIN in some cases so prep code for it.Claudio Jeker
This is in the way for ospfd pledge so in it goes. OK benno@
2015-11-22Improve ABR support especially for self-originated stub networks.Claudio Jeker
This seems to solve the last issues people reported when using ospfd in multiple areas. OK sthen@ prodding by deraadt@