-
-
Notifications
You must be signed in to change notification settings - Fork 10
Description
Hi folks,
I recently started using bgpkit-parser for a project with the aims of parsing a static dataset of raw bmp messages stored on a file system. After some exploration I came across this function which seems to be the only public function in the crate that supports parsing raw bmp messages
bgpkit-parser/src/parser/bmp/mod.rs
Line 25 in 6713331
| pub fn parse_bmp_msg(data: &mut Bytes) -> Result<BmpMessage, ParserBmpError> { |
With further exploration I learned that this function is stateless, i.e. it does not maintain the state of peer capabilities negotiated in the OpenMessage.
At this point it is safe to assume that bgpkit-parser does not actually support accurate parsing of RouteMonitoring messages including RFC 7911: Advertisements of Multiple Paths in BGP (ADD-PATH) as promised in this crate's documentation. Also evident by the hard cording of add_path = false here
| let bgp_update = parse_bgp_message(data, false, asn_len)?; |
Could you please clarify if my understanding is correct? and if so, could you reflect that in the READMe/Docs?