summaryrefslogtreecommitdiffstats
path: root/usr.sbin/ospf6d (follow)
Commit message (Collapse)AuthorAgeFilesLines
* Like ospfd allocate the recv buffer with malloc() on first call.claudio2021-01-191-3/+8
| | | | | This code assumes some alignment of the buffer which may not be the case with bss memory.
* Make the struct imsgev static. With this ospf6d compiles with -fno-commonclaudio2021-01-193-9/+9
|
* Use ospfe_imsg_compose_rde() instead of exporting iev_rde and usingclaudio2021-01-192-10/+5
| | | | | imsg_compose_event() directly. This is needed to make the imsg event structures static in ospfe.c, rde.c and ospf6d.c.
* Like in ospfd rename nconf to noeconf in the ospf engine to removeclaudio2021-01-191-10/+10
| | | | a common symbol.
* Properly define ospfd_process as an extern in the header file.claudio2021-01-192-4/+6
|
* Like in ospfd use a static pkt_ptr buffer.claudio2021-01-193-9/+4
|
* Do the same control cleanup as in ospfd. Move control_state and ctl_connsclaudio2021-01-194-17/+19
| | | | into control.c nothing outside needs access to this.
* In recv_packet() verify that non-multicast packets where sent to the rightclaudio2021-01-121-16/+11
| | | | | | | | | | | | IPv6 address. Compare against all possible interface addresses instead of only against iface->addr which is set to the last link-local address and so there is a high chance of failure when multiple link-local addresses are present. Also simplify send_packet(), there is no need to use sendmsg() just use sendto(). OK benno@
* Send lsupdate messages to the correct neighbor address on P2P interfaces.claudio2021-01-121-2/+2
| | | | | | iface->dst is not initalized so instead use nbr->addr (like it is done in ospfd). OK benno@
* getifaddrs() can return entries where ifa_addr is NULL. Check for thisbenno2020-12-291-2/+3
| | | | | before accessing anything in ifa_addr. ok claudio@
* Fix indentdenis2020-10-041-2/+2
|
* The new intra area db entry has to be saved into the tree beforejan2020-10-031-9/+7
| | | | | | | | 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@
* Stop removing the control socket on exit and tighten the unveil evenremi2020-09-163-10/+8
| | | | | | further. This is in line with what other networking daemons do. ok mestre@
* Use the ROUTE_FLAGFILTER setsockopt to filter out routing socket messagesjmatthew2020-09-101-1/+8
| | | | | | for L2 and broadcast routes, since we don't need them at all. ok remi@ sthen@
* Fix wrong fall through. The IMSG_CTL_SHOW_DB_INTRA case should onlyjan2020-08-211-1/+2
| | | | | | | send back LSA with type LSA_TYPE_INTRA_A_PREFIX. LSA_TYPE_INTER_A_PREFIX should not be included there. OK claudio@
* Remove redundent code.jan2020-08-211-4/+2
| | | | OK claudio@, looks fine from tb@
* Remove unused variablesdenis2020-07-153-8/+3
|
* Replace SIMPLEQ concatenation loop with SIMPLEQ_CONCATbket2020-06-261-5/+2
| | | | OK florian@, millert@, kn@
* 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.