summaryrefslogtreecommitdiffstats
path: root/usr.sbin/ospf6d (follow)
Commit message (Collapse)AuthorAgeFilesLines
...
* Introduce conf_clear_redist_list() (from ospfd) and use it in all 3 procs.remi2019-06-114-15/+22
| | | | ok benno@
* Allow specifying area by number as well as id. No changes to outputs.remi2019-05-262-13/+25
| | | | | reads OK to kn@ OK denis@
* When calculating how much payload ospf6d can put into DD and LSREQ packetsclaudio2019-05-102-5/+6
| | | | | | substract the size of the IPv6 header and not the IPv4 header from the MTU. This stops ospf6d to send out fragmented packets. Found with and OK benno@
* Delete superfluous #includes of <ifaddrs.h>, <net/if_dl.h>, and <net/if_enc.h>guenther2019-05-101-2/+1
| | | | ok krw@, jsg@
* Check that depend on interfaces are in the same rdomain. If they are notremi2019-04-291-5/+28
| | | | | | the daemon wouldn't notice state changes for those interfaces. ok benno@
* One more TODO entry for reload support: check router-id changesjca2019-03-251-1/+3
| | | | ok benno@
* (unsigned) means (unsigned int) which on ptrdiff_t or size_t or otherderaadt2019-02-131-3/+3
| | | | | | larger types really is a range reduction... Almost any cast to (unsigned) is a bug. ok millert tb benno
* For external LSAs the type (1 or 2) is encoded in the metric field. Do notremi2019-01-151-7/+12
| | | | | | | | | overwrite this when using "redistribute X set type 2 depend on ifX" and ifX is down. Problem reported for ospfd by Igor Podlesny. ok benno@
* Improve error message when daemon is already running.florian2019-01-141-2/+2
| | | | OK millert, deraadt, job
* Detect and remove routes in the kernel routing table with priorityremi2019-01-021-9/+22
| | | | | | | RTP_OSPF (or the configured fib-priority) inserted by another program. ospfd does the same. OK claudio@ benno@
* Add config option fib-priority to set a custom prio for routes ospf6dremi2018-12-296-20/+40
| | | | | | inserts into the kernel routing table. OK denis@
* Make sure that the prefixlen returned by mask2prefixlen is never biggerremi2018-12-091-10/+14
| | | | | | than 128. Initially proposed by claudio@ for bgpd. ok claudio@
* - odd condition/test in PF lexersashan2018-11-011-2/+3
| | | | | | | | | | | | | | (and other lexers too) This commit rectifies earlier change: in the lex... even inside quotes, a \ followed by space or tab should expand to space or tab, and a \ followed by newline should be ignored (as a line continuation). compatible with the needs of hoststated (which has the most strict quoted string requirements), and ifstated (where one commonly does line continuations in strings). OK deraadt@, OK millert@
* ospf6d does not support reloading so its parent proc does not needremi2018-10-301-1/+6
| | | | | | | filesystem access with the exception of the control socket cleanup on exit. ok florian@
* replace malloc()+strlcpy() with strndup() in cmdline_symset().miko2018-09-071-9/+4
| | | | "looks good" gilles@ halex@
* Prevent ospf6d from starting when another process is listening on theremi2018-09-015-13/+64
| | | | | | control socket. ok florian@
* missing .Ek;jmc2018-07-121-1/+2
|
* Add support for rdomains.remi2018-07-129-22/+75
| | | | | small quirk from tb@ ok phessler@
* 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@