Use attr_writebuf() instead of hand rolling a more complicated version
authorclaudio <claudio@openbsd.org>
Mon, 12 Jun 2023 12:48:07 +0000 (12:48 +0000)
committerclaudio <claudio@openbsd.org>
Mon, 12 Jun 2023 12:48:07 +0000 (12:48 +0000)
commit65117b4ceddac4c780dcce8511b1d34b6f9f311e
treebba3201312dd35549a479585cdf34891692b365e
parent8cd4606ce009d51ddf0f9fd72183aa55f798becc
Use attr_writebuf() instead of hand rolling a more complicated version
for IMSG_CTL_SHOW_RIB_ATTR. Also drop the attr_optlen() usage in
imsg_create() since it is not stricly needed. With this attr_optlen
follows the path of the dodo.
OK tb@
usr.sbin/bgpd/rde.c
usr.sbin/bgpd/rde.h