Function bgpkit_parser::parser::mrt::mrt_record::parse_mrt_body

source ·
pub fn parse_mrt_body(
    entry_type: u16,
    entry_subtype: u16,
    data: Bytes
) -> Result<MrtMessage, ParserError>
Expand description

Parse MRT message body with given entry type and subtype.

The entry type and subtype are parsed from the common header. The message body is parsed according to the entry type and subtype. The message body is the remaining bytes after the common header. The length of the message body is also parsed from the common header.