summaryrefslogtreecommitdiff
path: root/usr.sbin/ospf6d
AgeCommit message (Collapse)Author
2024-05-18remove prototypes with no matching function; ok claudio@Jonathan Gray
2024-05-15Mark network control packets with DSCP CS6 (parity with ospfd)Job Snijders
OK claudio@
2023-12-13Use imsg_get_fd() to access the control fd.Claudio Jeker
OK tb@
2023-07-04a little knf, no functional changeDavid Gwynne
2023-07-03Use ibuf_data() instead of direct access to ibuf->buf,Claudio Jeker
use ibuf_size() instead of direct access to ibuf->wpos, use ibuf_left() in places where the code checks if there is enough space left in the ibuf. OK tb@
2023-06-21add "fib reload" support to ospf6d/ospf6ctl, and trigger itStuart Henderson
automatically on a timeout after RTM_DESYNC (i.e. route socket overflow). ported across from ospfd. fixes/ok claudio@ (it's much harder to overflow the routing socket buffer these days since it was bumped to 2MB, but still happens occasionally on a busy machine).
2023-06-21Update ospf6d to use new ibuf api.Claudio Jeker
This mostly moves away from memcpy(ibuf_seek(buf, off, size), data, size) to ibuf_set(buf, off, data, size). Also ibuf_reserve() is replaced with ibuf_add_zero(). OK tb@
2023-03-08Delete obsolete /* ARGSUSED */ lint comments.Philip Guenther
ok miod@ millert@
2023-03-02improve the Nd lines such that the format is consistent for theJason McIntyre
various *d, *conf, *ctl files (where relevant) and simple; also makes "man -k routing" more useful; help from claudio and florian ok claudio florian millert
2022-12-28spelling fixes; from paul tagliamonteJason McIntyre
any parts of his diff not taken are noted on tech
2022-03-31man pages: add missing commas between subordinate and main clausesChristian Weisgerber
jmc@ dislikes a comma before "then" in a conditional, so leave those untouched. ok jmc@
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-12-13including sys/cdefs.h manually started as a result of netbsd trying toTheo de Raadt
macro-build a replacement for sccsid, and was done without any concern for namespace damage. Unfortunately this practice started infecting other code as others were unaware they didn't need the file. ok millert guenther
2021-11-03log the interface along with the neighbour ID in various ospfd/ospf6dStuart Henderson
messages. ok remi@ benno@ if a neighbour is reachable over multiple network links, some problems may be related to the link itself rather than the neighbour, so knowing the interface can be important when trying to locate the source of a problem.
2021-10-15Don't declare variables as "unsigned char *" that are passed toChristian Weisgerber
functions that take "char *" arguments. Where such chars are assigned to int or passed to ctype functions, explicitly cast them to unsigned char. For OpenBSD's clang, -Wpointer-sign has been disabled by default, but when the parse.y code was built elsewhere, the compiler would complain. With help from millert@ ok benno@ deraadt@
2021-09-06repair missing paths on unveil failureTheo de Raadt
2021-01-19Like ospfd allocate the recv buffer with malloc() on first call.Claudio Jeker
This code assumes some alignment of the buffer which may not be the case with bss memory.
2021-01-19Make the struct imsgev static. With this ospf6d compiles with -fno-commonClaudio Jeker
2021-01-19Use ospfe_imsg_compose_rde() instead of exporting iev_rde and usingClaudio Jeker
imsg_compose_event() directly. This is needed to make the imsg event structures static in ospfe.c, rde.c and ospf6d.c.
2021-01-19Like in ospfd rename nconf to noeconf in the ospf engine to removeClaudio Jeker
a common symbol.
2021-01-19Properly define ospfd_process as an extern in the header file.Claudio Jeker
2021-01-19Like in ospfd use a static pkt_ptr buffer.Claudio Jeker
2021-01-19Do the same control cleanup as in ospfd. Move control_state and ctl_connsClaudio Jeker
into control.c nothing outside needs access to this.
2021-01-12In recv_packet() verify that non-multicast packets where sent to the rightClaudio Jeker
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@
2021-01-12Send lsupdate messages to the correct neighbor address on P2P interfaces.Claudio Jeker
iface->dst is not initalized so instead use nbr->addr (like it is done in ospfd). OK benno@
2020-12-29getifaddrs() can return entries where ifa_addr is NULL. Check for thisSebastian Benoit
before accessing anything in ifa_addr. ok claudio@
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@