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

Allow to_u32_vec_opt to include ASNs in singleton AS_SETs #191

Closed
digizeph opened this issue Nov 6, 2024 · 0 comments
Closed

Allow to_u32_vec_opt to include ASNs in singleton AS_SETs #191

digizeph opened this issue Nov 6, 2024 · 0 comments

Comments

@digizeph
Copy link
Member

digizeph commented Nov 6, 2024

Example message that fails AS paths parsing:

 A|1730905907.15|187.16.216.121|42473|52.129.48.0/24|42473 16735 53764 {395968}|INCOMPLETE|187.16.216.121||0|16735:5 16735:6102 47147:1502 47147:2002 47147:2104 47147:2300 47147:2405 47147:2604|false|53764|172.16.17.129

For the cases of AS_SET being a single ASN, we should probably handle it. See to_u32_vec_opt function here:

pub fn to_u32_vec_opt(&self, dedup: bool) -> Option<Vec<u32>> {
match self.segments.last() {
None => None,
Some(v) => v.to_u32_vec_opt(dedup),
}
}

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

No branches or pull requests

1 participant