CVSROOT: /cvs
Module name: src
Changes by: [email protected] 2026/05/13 12:50:09
Modified files:
usr.sbin/bgpd : rde.h rde_attr.c
Log message:
Add const void *data to attr_optadd()
Doing this requires that attr_alloc() and attr_lookup() also use const.
For attr_alloc() this is no problem but attr_lookup() is a bit more tricky
since the data field in sturct attr is deliberatly not const.
So instead use CH_LOCATE and a new attr_match() function to do the lookup
with a helper type that uses const.
OK tb@