CVSROOT: /cvs
Module name: src
Changes by: [email protected] 2026/09/10 03:10:36
Modified files:
usr.sbin/ospfd : kroute.c ospfd.c ospfd.h
Log message:
Change imsg handling for kroute change and delete imsg messages
Pass the imsg to kr_delete() and kr_change(). For kr_delete() a simple
imsg_get_data call can be used. In kr_change() it is a bit more complex
since the imsg is an array of struct kroute. So take the ibuf, validate
the len and pull the first value in kr_change.
Put the single OSPF route codepath into its own kr_change_one() function
and simplify kr_change_fib() since it now only does RTM_ADD.
kr_change_fib still uses ibuf_data internally since it needs to access the
array of kroutes over and over again.
Reads ok to tb@