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 v4/v6 as2rel issue #8

Merged
merged 1 commit into from
Feb 1, 2024
Merged

fix v4/v6 as2rel issue #8

merged 1 commit into from
Feb 1, 2024

Conversation

digizeph
Copy link
Member

@digizeph digizeph commented Feb 1, 2024

Fixed a bug that is likely related to #7:

  • The as2rel inference needs to run 2 times, updating 3 different HashMaps for global, and v4 or v6 data map
  • The function takes a mutable AS path vector as it examines the reverse of the path (i.e. from origin to collector)
  • The second time the function runs, the AS path is already reversed as input and thus causing the program at different AS paths
  • The first run is for the global relationship, which corresponds to the as2rel-latest data file. It makes sense that the as2rel-latest looks correct, while the v4/v6 ones look strange.

Found a bug that is likely related to this issue:
* The as2rel inference needs to run 2 times, updating 3 different HashMaps for global, and v4 or v6 data map
* The function takes a mutable AS path vector as it examines the reverse of the path (i.e. from origin to collector)
* The second time the function runs, the AS path is already reversed as input and thus causing the program at different AS paths
* The first run is for the global relationship, which corresponds to the `as2rel-latest` data file. It makes sense that the `as2rel-latest` looks correct, while the v4/v6 ones look strange.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant