NLnetLabs / rpki-rs

An RPKI library for Rust
BSD 3-Clause "New" or "Revised" License
39 stars 22 forks source link

Adjust ASPA to new drafts. #264

Closed partim closed 1 year ago

partim commented 1 year ago

This PR changes the ASPA implementation to the new versions of the Internet drafts.

It changes the ASPA object in the repository module to profile draft version 15. For RTR, it drops the address family attribute but sticks to the PDU format in the old draft and just always sets the AFI flags to zero.

Because the provider AS set is now essentially an encoded version of SmallAsnSet, the PR also adds a conversion from the former into the latter that omits the unnecessary checks.

The code now also enforces a non-empty provider AS set upon parsing.