Convert he ATTR_ASPATH and ATTR_AS4_PATH handlers in rde_attr_parse()
authorclaudio <claudio@openbsd.org>
Tue, 30 Jan 2024 13:50:08 +0000 (13:50 +0000)
committerclaudio <claudio@openbsd.org>
Tue, 30 Jan 2024 13:50:08 +0000 (13:50 +0000)
commit04349dff7dad1965b19c3ecc9ec605f0d55ec7c1
tree6ae4208314e474722c140c1fd32d9023a161ce2d
parente8a0bc2131d7a48097a486577fa8263466fbe0c9
Convert he ATTR_ASPATH and ATTR_AS4_PATH handlers in rde_attr_parse()
to new ibuf API.

Various aspath functions are modified to work better with ibufs.
aspath_inflate() now only works with ibufs and is a lot simpler.
aspath_verify() does all the checks using the ibuf api and therefor
most length checks can be skipped.
aspath_asprint() and the new internal aspath_strsize() and aspath_snprint()
are totally overhauled -- including some bugs that got squashed.
OK tb@
usr.sbin/bgpd/bgpd.h
usr.sbin/bgpd/rde.c
usr.sbin/bgpd/util.c