summaryrefslogtreecommitdiffstats
path: root/usr.sbin/ospf6d/ospfe.c (follow)
Commit message (Collapse)AuthorAgeFilesLines
* Make the struct imsgev static. With this ospf6d compiles with -fno-commonclaudio2021-01-191-3/+3
|
* Like in ospfd rename nconf to noeconf in the ospf engine to removeclaudio2021-01-191-10/+10
| | | | a common symbol.
* Like in ospfd use a static pkt_ptr buffer.claudio2021-01-191-5/+1
|
* Do the same control cleanup as in ospfd. Move control_state and ctl_connsclaudio2021-01-191-4/+2
| | | | into control.c nothing outside needs access to this.
* When IMSG_IFADD is removed, IMSG_IFDELETE becomes uselessdenis2020-05-161-15/+1
| | | | OK remi@
* IMSG_IFADD is never used, wipe itdenis2020-05-161-13/+1
| | | | OK remi@
* Rename orig_rtr_lsa_area() to orig_rtr_lsa()denis2020-01-021-15/+4
| | | | | | | | Now that area is part of iface, original orig_rtr_lsa() is useless. Also verifying that area != NULL is not needed in some cases (these are leftovers of the previous diff). OK remi@
* Cleanup control.denis2020-01-011-5/+1
| | | | "Looks fine" deraadt@
* Refactor link state ack/req.denis2019-12-281-2/+2
| | | | OK remi@
* Area is now part of struct ifacedenis2019-12-231-15/+10
| | | | OK remi@
* Scale send buffer on socket.denis2019-12-221-2/+2
| | | | OK remi@
* Introduce conf_clear_redist_list() (from ospfd) and use it in all 3 procs.remi2019-06-111-6/+2
| | | | ok benno@
* Prevent ospf6d from starting when another process is listening on theremi2018-09-011-6/+13
| | | | | | control socket. ok florian@
* Add support for rdomains.remi2018-07-121-2/+2
| | | | | small quirk from tb@ ok phessler@
* With the "depend on" option routes are sent out with a metric of 65535 ifremi2018-07-121-5/+35
| | | | | | | 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@
* pledge(2)friehm2018-07-101-1/+4
| | | | | | Looks great! deraadt@ OK florian OK remi@
* bring ospf6d's log.c in sync with ospfd and bgpdbenno2017-08-121-2/+8
| | | | ok florian@ 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-031-7/+11
| | | | | | | | | | | | | 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-1/+2
| | | | | | | 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@
* EAGAIN handling for imsg_read. OK henning@ benno@claudio2015-12-051-5/+5
|
* As done for bgpd recently, rename if_mediatype to if_type in ospfd/ospf6d.stsp2015-09-271-2/+2
| | | | | And some ifmedia64 fixes. "move forward" deraadt@
* Same session_socket_blockmode() changes as done to ospfd. Also do the sameclaudio2015-02-101-3/+3
| | | | kroute change (make socket non-blocking and add trigger for partial reads).
* Nuke more obvious #include duplications.krw2014-11-181-2/+1
| | | | ok deraadt@ millert@ tedu@
* Close connections when msgbuf_write() returns 0.krw2014-07-121-3/+7
| | | | ok claudio@
* handle msgbuf_write() returning EAGAIN,benno2013-11-131-3/+3
| | | | | | taken from claudios previous fix to ospfd. "do it" deraadt@
* sync w/ospfd: improve snapshot handling; ok claudio, sthenmarkus2013-03-251-3/+15
|
* Allow use of an alternative control socket, ported from ospfd. ok claudio@sthen2013-03-221-2/+2
|
* typo in commentsthen2013-03-221-2/+2
|
* Fix trailing whitespaces.bluhm2012-09-171-2/+2
|
* Rework the distribution of link state and iface FSM state changes.claudio2011-07-071-3/+4
| | | | | Link state changes are sent from the parent to both childs and iface FSM state changes are sent from the ospfe to the rde.
* KNFclaudio2011-07-071-8/+8
|
* Kill nh_reachable. Link state checking is so easy now that it does notclaudio2011-07-071-3/+3
| | | | matter anymore to cache this value for ospf6d.
* Some cleanup, some KNF and sync non functional differences withclaudio2011-05-021-11/+14
| | | | ospfd's version.
* Origin network-LSA with options based on the options of the link-LSAs.bluhm2010-08-221-2/+15
| | | | | Without this fix Cisco's OSPF 6 ignores our network-LSAs. ok claudio@
* Use the static variable narea only where needed for config reload.bluhm2010-07-061-15/+15
| | | | | The other imessages use the stack variables area and iface. ok claudio@
* Fix all white space bugs in ospf6d at once. No binary change.bluhm2010-07-011-3/+3
| | | | ok claudio@
* The prefixes of interface addresses of an ospf link have to bebluhm2010-07-011-1/+47
| | | | | | | | | advertised as link-lsa and intra-area-prefix-lsa when they change dynamically. Handle RTM_NEWADDR and RTM_DELADDR in kroute by sending an imsg to ospfe. Upon this event, originate a new link-lsa in ospfe. In rde a new intra-area-prefix-lsa is generated when a link-lsa appears or goes away. ok claudio@; ok and test stsp@
* Rename some imsg bits to make namespace collisions less likely buf tonicm2010-05-261-44/+44
| | | | | | ibuf, buf_read to ibuf_read, READ_BUF_SIZE to IBUF_READ_SIZE. ok henning gilles claudio jacekm deraadt
* make ospf6ctl/ospf6d imsg-in-a-lib ready too.eric2009-06-061-40/+46
| | | | | | ospf6ctl is already broken in tree (not connected to build). ok pyr@
* Remove redundant imsg_event_add calls; ok claudio@jacekm2009-05-311-3/+1
|
* libevent handler fix to allow EV_READ and EV_WRITE to be set at the sameclaudio2009-05-311-15/+7
| | | | | time in the callback. Same diff that went into ospfd applied with some fuzz.
* Now that struct lsa_net represents just the options, orig_net_lsa()stsp2009-03-291-8/+8
| | | | | | can make use of it much better. No functional change. ok claudio@
* Remove origination of Intra-Area-Prefix LSAs from ospfe.stsp2009-02-191-104/+1
| | | | | | Will soon be done in rde instead. "Sure but don't wait too long before readding the code in rde" claudio@
* Fix two obvious copy-paste errors in fatal error messages. We werestsp2009-02-101-2/+2
| | | | printing IFINFO while we are actually handling an IFDELETE imsg.
* In Intra-Area-Prefix LSAs, set the LA-bit for all prefixes of 128-bitstsp2009-02-031-2/+4
| | | | | length, regardless of interface type. Allowed by RFC5340 and ok claudio@
* Formatting fixes.stsp2009-02-031-3/+3
|
* Correctly byte-swap the link state ID when building Intra-Area-Prefixstsp2009-01-291-2/+2
| | | | | LSAs which refer to Router LSAs. ok claudio@
* Originate Intra-Area-Prefix LSAs which reference a router LSA.stsp2009-01-291-2/+104
| | | | | | | Routers can now advertise prefixes with global scope throughout an area. This paves the way towards doing SPF calculations to generate routing tables for a single area. ok claudio@
* Teach ospf6d to originate Intra-Area-Prefix LSAs, which associate a liststsp2009-01-281-1/+2
| | | | | | | of IPv6 prefixes with a Network LSA (there's another type of this LSA which associates prefixes with a Router LSA -- this remains to be done). Add what is necessary to allow ospf6ctl to read the new LSA type via IMSG. ok claudio@