CVSROOT: /cvs
Module name: src
Changes by: [email protected] 2026/02/04 04:41:11
Modified files:
usr.sbin/bgpd : Makefile bgpd.c bgpd.h control.c rde.c rde.h
rde_filter.c
Added files:
usr.sbin/bgpd : bgpd_imsg.c
Log message:
Improve rde_apply_set() performance by changing filter_sets in the RDE.
Switch away from a linked list of filter_set elements and instead use
an array of stripped down rde_filter_set_elm elements. As a result
rde_apply_set() becomes more efficent since the CPU is no longer waiting
all the time for memory accesses.
Introduce a new way to send and recv the imsgs for IMSG_FILTER_SET.
There is a send and receive function in the new bgpd_imsg.c file that
is also used by bgpctl. The receive function is a lot more strict
and on top of this add imsg_check_filterset() which validates messages
sent on the control socket before passing them on.
OK tb@