summaryrefslogtreecommitdiff
path: root/usr.sbin/ospf6d
AgeCommit message (Collapse)Author
2020-10-04Fix indentdenis
2020-10-03The new intra area db entry has to be saved into the tree beforejan
orig_intra_area_prefix_lsas() is called. If not, the ospf6d will not announce the new intra area db for a newly learned link from another ospf router of the broadcast domain. OK denis@
2020-09-16Stop removing the control socket on exit and tighten the unveil evenremi
further. This is in line with what other networking daemons do. ok mestre@
2020-09-10Use the ROUTE_FLAGFILTER setsockopt to filter out routing socket messagesJonathan Matthew
for L2 and broadcast routes, since we don't need them at all. ok remi@ sthen@
2020-08-21Fix wrong fall through. The IMSG_CTL_SHOW_DB_INTRA case should onlyjan
send back LSA with type LSA_TYPE_INTRA_A_PREFIX. LSA_TYPE_INTER_A_PREFIX should not be included there. OK claudio@
2020-08-21Remove redundent code.jan
OK claudio@, looks fine from tb@
2020-07-15Remove unused variablesdenis
2020-06-26Replace SIMPLEQ concatenation loop with SIMPLEQ_CONCATbket
OK florian@, millert@, kn@
2020-06-22Remove unused variabledenis
2020-05-27Remove unneeded <stddef.h>denis
2020-05-17IF_IFACE_AVAIL is never used/checked, wipe it.denis
OK remi@
2020-05-16list example files in FILES with a short description: generally, "ExampleJason McIntyre
configuration file.", but occasionally something else fit better; at the same time, try to make the format for FILES more consistent; original diff from clematis
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-05-06Same fix for ospfd lsupdate.c applies in ospf6d as well.Claudio Jeker
Do not use the pointer returned by ibuf_reserve() after calling another ibuf function. After the call the internal buffer may have moved by realloc() and so the pointer is invalid. Instead use ibuf_size() to get the current offset in the buffer and use ibuf_seek() later on to write back the updated lsa age into the buffer at the right spot. This fixes an issue seen by Richard Chivers on routers with many passive interfaces. OK stsp@ denis@ deraadt@ also tested by sthen@
2020-05-04Partially reverse a commit from 2019/12/28denis
A large number of redistributed routes make ospf6d crash. OK remi@, sthen@
2020-04-23replace examples of "Ic arg Ic arg" with "Ic arg arg" and stop the spread;Jason McIntyre
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-02-10briefly mention /etc/examples/ in the FILES section of all theIngo Schwarze
manual pages that document the corresponding configuration files; OK jmc@, and general direction discussed with many
2020-01-21Allow the interface setting "type p2p" to be configured globallz or perremi
area. Most of the other interface settings allow this. ok denis@
2020-01-21No need to pass peerid to lsa_snap()denis
OK remi@
2020-01-08Area-wide interface parameters need to be defined before the interfacesremi
or they will have no effect. OK denis@
2020-01-03Remove unused variabledenis
2020-01-03Sync with ospfd's database.cdenis
OK remi@
2020-01-03Sync with ospfd's hello.cdenis
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@
2020-01-01Cleanup control.denis
"Looks fine" deraadt@
2019-12-28Refactor link state ack/req.denis
OK remi@
2019-12-26Add point-to-point support for broadcast interfaces.remi
tested by Kapetanakis Giannis ok denis@
2019-12-23Log a warning when a neighbor changes its address.remi
Same as ospfd's hello.c rev 1.23. ok denis@
2019-12-23Area is now part of struct ifacedenis
OK remi@
2019-12-22Scale send buffer on socket.denis
OK remi@
2019-12-22Rename and move calc_nexthop_clear()/calc_nexthop_add()denis
OK claudio@
2019-12-16Rework route priority filter.denis
reads OK benno@ remi@
2019-12-12Refactor kernel route message handling.denis
OK remi@
2019-12-11Convert sendto() to sendmsg().denis
This makes code similar to ospfd(8). OK claudio@ deraadt@
2019-11-10Consistently use _rcctl enable foo_ in examples, it's simpler and lessLandry Breuil
error prone than manually editing rc.conf.local, and also works to enable ipsec and accounting. tweak from schwarze@ to use the \(dq\(dq syntax for quotes in '.Dl foo_flags="" lines' instead of \&"\&". while at it, fix a reference to a bogus /dev/dhclient.conf file that recently snuck in. ok jmc@ deraadt@ schwarze@
2019-06-28When system calls indicate an error they return -1, not some arbitraryTheo de Raadt
value < 0. errno is only updated in this case. Change all (most?) callers of syscalls to follow this better, and let's see if this strictness helps us in the future.
2019-06-11Introduce conf_clear_redist_list() (from ospfd) and use it in all 3 procs.remi
ok benno@
2019-05-26Allow specifying area by number as well as id. No changes to outputs.remi
reads OK to kn@ OK denis@
2019-05-10When calculating how much payload ospf6d can put into DD and LSREQ packetsClaudio Jeker
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@
2019-05-10Delete superfluous #includes of <ifaddrs.h>, <net/if_dl.h>, and <net/if_enc.h>Philip Guenther
ok krw@, jsg@
2019-04-29Check that depend on interfaces are in the same rdomain. If they are notremi
the daemon wouldn't notice state changes for those interfaces. ok benno@
2019-03-25One more TODO entry for reload support: check router-id changesJeremie Courreges-Anglas
ok benno@
2019-02-13(unsigned) means (unsigned int) which on ptrdiff_t or size_t or otherTheo de Raadt
larger types really is a range reduction... Almost any cast to (unsigned) is a bug. ok millert tb benno
2019-01-15For external LSAs the type (1 or 2) is encoded in the metric field. Do notremi
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@
2019-01-14Improve error message when daemon is already running.Florian Obser
OK millert, deraadt, job
2019-01-02Detect and remove routes in the kernel routing table with priorityremi
RTP_OSPF (or the configured fib-priority) inserted by another program. ospfd does the same. OK claudio@ benno@