Download raw body.
bgpd: rde ibuf parser part 4
On Thu, Jan 25, 2024 at 10:29:31AM +0100, Theo Buehler wrote: > On Wed, Jan 24, 2024 at 04:52:20PM +0100, Claudio Jeker wrote: > > Convert all other attributes in rde_attr_parse() apart from ATTR_ASPATH > > and ATTR_AS4_PATH to use the ibuf API. > > > > I shuffled the checks a bit and always do CHECK_FLAGS() first then the > > size check. I did extra size check to be sure that there is no extra data > > in the attribute. > > The UPD_READ() macro can be garbage collected once this is in. Other > than that I can't spot anything wrong with the diff. > > ok tb > > (With CBS we usually ensure absence of trailing data by checking that > the relevant buffer was fully consumed at the end. With the current > logic this is obviously trickier than what you did here.) This is a nice idea. I may have a look once all the ibuf shuffle is over (should be one more diff for bgpd). -- :wq Claudio
bgpd: rde ibuf parser part 4