Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix parsing add_path rib dump entry #68

Merged
merged 1 commit into from
Aug 6, 2022
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 3 additions & 1 deletion src/parser/mrt/messages/table_dump_v2_message.rs
Original file line number Diff line number Diff line change
Expand Up @@ -122,7 +122,9 @@ pub fn parse_rib_afi_entries(input: &mut DataBytes, rib_type: TableDumpV2Type) -

let sequence_number = input.read_32b()?;

let prefix = input.read_nlri_prefix(&afi, add_path)?;
// NOTE: here we parse the prefix as only length and prefix, the path identifier for add_path
// entry is not handled here. We follow RFC6396 here https://www.rfc-editor.org/rfc/rfc6396.html#section-4.3.2
let prefix = input.read_nlri_prefix(&afi, false)?;
let prefixes = vec!(prefix.clone());

let entry_count = input.read_16b()?;
Expand Down