summaryrefslogtreecommitdiffstats
path: root/usr.sbin/ospf6d (follow)
Commit message (Collapse)AuthorAgeFilesLines
* Remove unused variabledenis2020-06-221-2/+1
|
* Remove unneeded <stddef.h>denis2020-05-271-2/+1
|
* IF_IFACE_AVAIL is never used/checked, wipe it.denis2020-05-172-5/+2
| | | | OK remi@
* list example files in FILES with a short description: generally, "Examplejmc2020-05-161-4/+4
| | | | | | | 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
* When IMSG_IFADD is removed, IMSG_IFDELETE becomes uselessdenis2020-05-164-39/+4
| | | | OK remi@
* IMSG_IFADD is never used, wipe itdenis2020-05-163-27/+3
| | | | OK remi@
* Same fix for ospfd lsupdate.c applies in ospf6d as well.claudio2020-05-061-5/+5
| | | | | | | | | | | 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@
* Partially reverse a commit from 2019/12/28denis2020-05-041-9/+14
| | | | | | A large number of redistributed routes make ospf6d crash. OK remi@, sthen@
* replace examples of "Ic arg Ic arg" with "Ic arg arg" and stop the spread;jmc2020-04-231-5/+5
|
* Handle connected routes as ospfd(8) does.denis2020-04-053-14/+27
| | | | OK remi@
* Rework of rde_asext_get()/rde_asext_put().denis2020-03-292-71/+90
| | | | | | | Also change get_net_link() and get_rtr_link() to work like ospfd(8) couterpart. OK remi@
* Bring ospf6d closer to ospfddenis2020-02-173-61/+59
| | | | | | | | - update debug messages to be more precise - simplify call to lsa_self() - drop lsa_find_lsid() redondant parameters OK remi@
* briefly mention /etc/examples/ in the FILES section of all theschwarze2020-02-101-3/+5
| | | | | manual pages that document the corresponding configuration files; OK jmc@, and general direction discussed with many
* Allow the interface setting "type p2p" to be configured globallz or perremi2020-01-213-9/+11
| | | | | | area. Most of the other interface settings allow this. ok denis@
* No need to pass peerid to lsa_snap()denis2020-01-213-12/+13
| | | | OK remi@
* Area-wide interface parameters need to be defined before the interfacesremi2020-01-081-2/+4
| | | | | | or they will have no effect. OK denis@
* Remove unused variabledenis2020-01-031-2/+1
|
* Sync with ospfd's database.cdenis2020-01-031-41/+48
| | | | OK remi@
* Sync with ospfd's hello.cdenis2020-01-031-15/+15
| | | | OK remi@
* Rename orig_rtr_lsa_area() to orig_rtr_lsa()denis2020-01-027-35/+20
| | | | | | | | 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-012-11/+7
| | | | "Looks fine" deraadt@
* Refactor link state ack/req.denis2019-12-285-98/+117
| | | | OK remi@
* Add point-to-point support for broadcast interfaces.remi2019-12-264-6/+18
| | | | | tested by Kapetanakis Giannis ok denis@
* Log a warning when a neighbor changes its address.remi2019-12-231-3/+9
| | | | | | Same as ospfd's hello.c rev 1.23. ok denis@
* Area is now part of struct ifacedenis2019-12-2311-67/+73
| | | | OK remi@
* Scale send buffer on socket.denis2019-12-223-7/+15
| | | | OK remi@
* Rename and move calc_nexthop_clear()/calc_nexthop_add()denis2019-12-223-47/+48
| | | | OK claudio@
* Rework route priority filter.denis2019-12-164-12/+76
| | | | reads OK benno@ remi@
* Refactor kernel route message handling.denis2019-12-121-179/+70
| | | | OK remi@
* Convert sendto() to sendmsg().denis2019-12-117-17/+26
| | | | | | This makes code similar to ospfd(8). OK claudio@ deraadt@
* Consistently use _rcctl enable foo_ in examples, it's simpler and lesslandry2019-11-101-12/+9
| | | | | | | | | | | | | 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@
* When system calls indicate an error they return -1, not some arbitraryderaadt2019-06-281-7/+7
| | | | | | 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.
* 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@