summaryrefslogtreecommitdiff
path: root/usr.sbin/ospf6d/rde.c
AgeCommit message (Collapse)Author
2024-11-21Convert simple stuff in usr.sbin over to new imsgbuf_init behaviourClaudio Jeker
OK tb@
2024-11-21Convert the common imsgbuf_read calls to the post EAGAIN world.Claudio Jeker
OK tb@
2024-11-21Use imsgbuf_clear() where appropriate instead of msgbuf_clear().Claudio Jeker
OK tb@
2024-11-21Rename imsg_init, imsg_clear, imsg_read, imsg_write and imsg_flush toClaudio Jeker
imsgbuf_init, imsgbuf_clear, imsgbuf_read, imsgbuf_write and imsgbuf_flush. This separates the imsgbuf API from the per-imsg API. OK tb@
2024-11-21Convert imsg_write() callers to the new simplified return logic.Claudio Jeker
OK tb@
2024-11-21Introduce imsg_write() and use it instead of msgbuf_write().Claudio Jeker
imsg_write() is just a thin wrapper around msgbuf_write(). So this is mostly search and replace. OK tb@
2023-03-08Delete obsolete /* ARGSUSED */ lint comments.Philip Guenther
ok miod@ millert@
2022-01-20ospf6d: fix -Wunused-but-set-variable warningsChristian Weisgerber
ospf6d.c: sync a missing bit of (disabled) code with ospfd rde.c: ifdef out some more incomplete code ok denis@ claudio@
2021-01-19Make the struct imsgev static. With this ospf6d compiles with -fno-commonClaudio Jeker
2020-05-16When IMSG_IFADD is removed, IMSG_IFDELETE becomes uselessdenis
OK remi@
2020-05-16IMSG_IFADD is never used, wipe itdenis
OK remi@
2020-04-05Handle connected routes as ospfd(8) does.denis
OK remi@
2020-03-29Rework of rde_asext_get()/rde_asext_put().denis
Also change get_net_link() and get_rtr_link() to work like ospfd(8) couterpart. OK remi@
2020-02-17Bring ospf6d closer to ospfddenis
- update debug messages to be more precise - simplify call to lsa_self() - drop lsa_find_lsid() redondant parameters OK remi@
2020-01-21No need to pass peerid to lsa_snap()denis
OK remi@
2020-01-02Rename orig_rtr_lsa_area() to orig_rtr_lsa()denis
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@
2019-12-23Area is now part of struct ifacedenis
OK remi@
2019-06-11Introduce conf_clear_redist_list() (from ospfd) and use it in all 3 procs.remi
ok benno@
2018-07-12Add support for rdomains.remi
small quirk from tb@ ok phessler@
2018-07-12With the "depend on" option routes are sent out with a metric of 65535 ifremi
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@
2018-07-10pledge(2)friehm
Looks great! deraadt@ OK florian OK remi@
2018-06-12Send LSAs with MAX_METRIC for carp interfaces in state backup.remi
This is similar to what ospfd does. ok jca@
2018-06-12Fix resending intra area prefix LSAs on link state or if flag change.remi
ok jca@
2018-06-10memory leak spotted by claudio@remi
go ahead jca@ OK claudio@
2018-06-10The value for metric of intra area prefix LSAs should be set to:remi
- 0 when referencing Network LSAs - 0 for loopback interfaces - interface output cost for other cases go ahead jca@ OK claudio@
2017-08-12bring ospf6d's log.c in sync with ospfd and bgpdSebastian Benoit
ok florian@ claudio@
2017-06-19Import route priority support from ospfd to ospf6d.friehm
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@
2017-05-30Adding multipath route support to ospf6d. Almost copied from ospfd.friehm
OK bluhm@
2016-12-27Replace struct rroute with struct kroute, as done in ospfdJeremie Courreges-Anglas
ok claudio@
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-06-06add format attributes to the proper functions and then fix theSebastian Benoit
warning in rde.c
2015-12-05EAGAIN handling for imsg_read. OK henning@ benno@Claudio Jeker
2015-09-27As done for bgpd recently, rename if_mediatype to if_type in ospfd/ospf6d.Stefan Sperling
And some ifmedia64 fixes. "move forward" deraadt@
2015-01-16Replace <sys/param.h> with <limits.h> and other less dirty headers whereTheo de Raadt
possible. Annotate <sys/param.h> lines with their current reasons. Switch to PATH_MAX, NGROUPS_MAX, HOST_NAME_MAX+1, LOGIN_NAME_MAX, etc. Change MIN() and MAX() to local definitions of MINIMUM() and MAXIMUM() where sensible to avoid pulling in the pollution. These are the files confirmed through binary verification. ok guenther, millert, doug (helped with the verification protocol)
2014-07-12Close connections when msgbuf_write() returns 0.Kenneth R Westerback
ok claudio@
2013-11-13handle msgbuf_write() returning EAGAIN,Sebastian Benoit
taken from claudios previous fix to ospfd. "do it" deraadt@
2012-09-17Fix trailing whitespaces.Alexander Bluhm
2011-11-06Add a #include that's currently picked up via another header that'sPhilip Guenthe
violating namespace rules ok claudio@
2011-07-07Rework the distribution of link state and iface FSM state changes.Claudio Jeker
Link state changes are sent from the parent to both childs and iface FSM state changes are sent from the ospfe to the rde.
2011-07-07Just use if_find() to find an interface by ifindex.Claudio Jeker
2011-07-07correct/change some debug and fatal messages.Claudio Jeker
2011-07-07Kill nh_reachable. Link state checking is so easy now that it does notClaudio Jeker
matter anymore to cache this value for ospf6d.
2011-07-04LINK_STATE_IS_UP() cleanup userland part. There is no need to specialClaudio Jeker
case carp(4) interfaces anymore. LINK_STATE_IS_UP() almost always does the right job. OK deraadt@ henning@ This needs a -current kernel or link state may be not reported correctly.
2011-07-04Make sure that passive interfaces (like carp) are added to theClaudio Jeker
intra-area rtr LSA. Diff initialy made by Patrick Coleman but simplified by myself. Tested and OK dlg@
2011-05-05KNFClaudio Jeker
2011-05-02Don't include sys/param.h and reformat some lines.Claudio Jeker
2010-08-22When removing an announced prefix, inherit the metric and ext_tagAlexander Bluhm
from the LSA that is currently in the tree. Based on claudio@'s diff and his fix for ospfd. Additionally originate an LSA with external route tag correctly by writing the AS-external-LSA's bit T into the correct field. ok claudio@
2010-07-09Do not try to originate an intra-area-prefix-lsa if an interfaceAlexander Bluhm
address changes that does not belong to any area. This fixes an ospf6d crash. To not search for the area in orig_intra_lsa_net(), just pass the area as function parameter. ok claudio@
2010-07-06Update the interfaces changes from kroute to rde via imsg. ThisAlexander Bluhm
is needed to orginate correct intra-area-prefix-lsas. ok claudio@ stsp@