summaryrefslogtreecommitdiffstats
path: root/usr.sbin/ospf6d (follow)
Commit message (Collapse)AuthorAgeFilesLines
...
* With the "depend on" option routes are sent out with a metric of 65535 ifremi2018-07-128-34/+168
| | | | | | | the referenced interface is down or in state backup. This is especially useful on a carp cluster to ensure all traffic goes to the carp master. ok friehm@ jca@
* remove wrong commentremi2018-07-111-2/+1
| | | | ok jca@ tb@
* Do for most running out of memory err() what was done for most runningkrw2018-07-111-5/+5
| | | | | | | | 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@
* pledge(2)friehm2018-07-102-2/+8
| | | | | | Looks great! deraadt@ OK florian OK remi@
* If intra area prefixes move from one router to another router, cloning routesfriehm2018-07-101-4/+23
| | | | | | | | | | | may become gateway routes and contrary. The kernel does not allow to change the flags RTF_GATEWAY / RTF_CLONING in RTM_CHANGE messages, but ospf6d tried this anyway. The result is a broken route. Instead of modifying such routes remove the old route and insert a new one. Thanks to Raimund Specht for reporting the problem and testing the fix. OK claudio@
* Let kroute_matchgw() select the correct route before checking flags.friehm2018-07-101-3/+3
| | | | OK claudio@
* Set log_setverbose(1) early to see debug logs during parsing the configremi2018-07-091-2/+1
| | | | | | but only when -v is used. ok jca@ claudio@
* No need to mention which memory allocation entry point failed (malloc,krw2018-07-091-5/+5
| | | | | | | | | 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@
* Be consistent in warn() and log_warn() usage whenkrw2018-07-081-3/+3
| | | | | | | | running out of memory. Next step, be correct *and* consistent. ok dennis@ tb@ benno@ schwarze@
* remove the SECTIONS header, since a one line DESCRIPTION is a bit silly;jmc2018-06-181-4/+4
| | | | | | | 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
* Send LSAs with MAX_METRIC for carp interfaces in state backup.remi2018-06-122-7/+29
| | | | | | This is similar to what ospfd does. ok jca@
* Fix resending intra area prefix LSAs on link state or if flag change.remi2018-06-121-10/+13
| | | | ok jca@
* Fix an off-by-one line count when using include statements.denis2018-06-111-49/+82
| | | | | | Thanks to otto@ for the initial diff. OK benno@, remi@
* memory leak spotted by claudio@remi2018-06-101-2/+3
| | | | | go ahead jca@ OK claudio@
* The value for metric of intra area prefix LSAs should be set to:remi2018-06-101-2/+4
| | | | | | | | | - 0 when referencing Network LSAs - 0 for loopback interfaces - interface output cost for other cases go ahead jca@ OK claudio@
* Plug leak in error case of the common 'varset' implementations.krw2018-04-261-1/+3
| | | | ok benno@
* Increase SO_RCVBUF of the ospf socket to 256k having this buffer can resultclaudio2018-03-111-2/+5
| | | | | in packet loss on busy and big networks and therefor to instability. From camield@
* Same change as rev 1.22 in ospfd:claudio2018-02-221-3/+4
| | | | | | | | The IF_EVT_NBR_CHNG event needs to be fired when a neighbor transitions to 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@
* Clear the dr and bdr fields of a neighbor when it goes down.claudio2018-02-091-5/+5
| | | | Same is done in ospfd for quite a while.
* ospf6d mostly only cares about AF_INET6 routesbenno2018-02-081-2/+2
| | | | | found while investigating routing socket desync with claudio. ok remi jca claudio
* Bump the read sockbuf of the routing socket to 2MB, may help reduce some ofclaudio2018-02-081-2/+2
| | | | the desync cases. OK benno@
* Disable config reload, ospf6d just exits on reload with simple setups.jca2017-11-051-1/+5
| | | | | And fixing this doesn't appear trivial. Discussed with a bunch at p2k17, ok phessler@ denis@ benno@
* Kill dead assignement.jca2017-11-051-2/+1
|
* bring ospf6d's log.c in sync with ospfd and bgpdbenno2017-08-127-70/+116
| | | | ok florian@ claudio@
* Import route priority support from ospfd to ospf6d.friehm2017-06-193-101/+66
| | | | | | | Also remove the RTF_UP flag from hdr.rtm_flags in send_rtmsg() since ospfd and bgpd don't set the flag. OK bluhm@ claudio@
* Adding multipath route support to ospf6d. Almost copied from ospfd.friehm2017-05-304-84/+162
| | | | OK bluhm@
* From a syslog perspective it does not make sense to log fatal andbluhm2017-03-211-6/+6
| | | | | | warn with the same severity. Switch log_warn() to LOG_ERR and keep fatal() at LOG_CRIT. OK reyk@ florian@
* copy log.c/h from bgpd.benno2017-01-232-13/+15
| | | | ok claudio
* Replace hand-rolled for(;;) traversal of ctl_conns TAILQ withkrw2017-01-081-7/+9
| | | | | | | | TAILQ_FOREACH(). No intentional functional change. ok reyk@
* Replace hand-rolled for(;;) emptying of 'symhead' TAILQ with morekrw2017-01-051-3/+2
| | | | | | | | modern TAILQ_FOREACH_SAFE(). No intentional functional change. ok millert@ bluhm@ gilles@
* Replace symset()'s hand-rolled for(;;) traversal of 'symhead' TAILQkrw2017-01-051-5/+7
| | | | | | | | | | | 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@
* Replace struct rroute with struct kroute, as done in ospfdjca2016-12-273-63/+56
| | | | ok claudio@
* Print metric and type for "redistribute" in ospf6d -v.jca2016-12-241-6/+9
| | | | Similar diff as for ospfd, from Remi Locherer. ok stsp@
* Let rde and ospfe know about all IFINFO messages (eg an interface MTU change).jca2016-12-221-7/+7
| | | | | | | The parent now passes all IFINFO messages down to the children, then looks whether he has any work to do. Same idea as ospfd. ok benno@ claudio@
* Don't run the FSM if the interface state hasn't changed.jca2016-12-221-4/+12
| | | | ok benno@ claudio@
* Simplify shutdown process.renato2016-09-033-69/+42
| | | | | | | | | | | | | 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@
* work on making log.c similar in all daemons:benno2016-09-021-0/+202
| | | | | | | 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@
* work on making log.c similar in all daemons:benno2016-09-027-202/+36
| | | | | | | 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@
* do not allow whitespace in macro names, i.e. "this is" = "a variable".benno2016-06-211-1/+9
| | | | | | | | 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@
* add format attributes to the proper functions and then fix thebenno2016-06-062-12/+20
| | | | warning in rde.c
* ospf6d looks for net.inet6.ip6.forwarding, not net.inet.ip.forwarding.reyk2016-02-141-3/+3
| | | | OK jca@ jmc@ sthen@ claudio@
* Remove setproctitle() for the parent process. Because rc.d(8) uses processsthen2016-02-021-4/+1
| | | | | | 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@
* EAGAIN handling for imsg_read. OK henning@ benno@claudio2015-12-054-15/+16
|
* strings.h -> string.h to prevent an implicit declaration warning.mmcc2015-12-051-2/+2
|
* As done for bgpd recently, rename if_mediatype to if_type in ospfd/ospf6d.stsp2015-09-275-13/+13
| | | | | And some ifmedia64 fixes. "move forward" deraadt@
* use file system path (.Pa) semantic markup macros where appropriate.sobrado2015-07-271-4/+4
| | | | ok jmc@
* Similar to bgpd and ospfd skip broadcast (should not happen) and llinfoclaudio2015-07-171-3/+14
| | | | routes also adjust the tracking of connected routes to the new way.
* use the sizeof the struct not the sizeof a pointer to the structjsg2015-05-051-2/+2
| | | | ok claudio@
* Use sizeof(u_short) in the first check since there are RT messages thatclaudio2015-02-111-2/+2
| | | | | are less then sizeof(*rtm) bytes long (e.g. interface announcements). Found the hard way by phessler@
* Same session_socket_blockmode() changes as done to ospfd. Also do the sameclaudio2015-02-105-48/+24
| | | | kroute change (make socket non-blocking and add trigger for partial reads).