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

Stuck on "retrieving information for ipv4 prefix..." #57

Closed
thrtnastrx opened this issue Feb 8, 2024 · 2 comments · Fixed by #58
Closed

Stuck on "retrieving information for ipv4 prefix..." #57

thrtnastrx opened this issue Feb 8, 2024 · 2 comments · Fixed by #58
Labels
bug Something isn't working

Comments

@thrtnastrx
Copy link

thrtnastrx commented Feb 8, 2024

On my Mac installed asn via brew, it doesn't matter which asn or or subnet I query, it always get's stuck on the last prefix forever. See attached image.
2024-02-08_13-04-31

@nitefood
Copy link
Owner

nitefood commented Feb 9, 2024

Hey @thrtnastrx,

There are two problems there, first of all the counter was broken (doh) - the script is actually past the last prefix, and into the additional INETNUM lookup stage.
The main problem though, is that it takes a very long time to parse all (almost 2k) additional IPv4 prefixes that are allocated to AS33667 but announced by other ASNs.
I've fixed the counter and status bar message, and added an option (-n) to skip the additional INETNUM lookup altogether. Please see if this (invoked with asn -n 33667) fixes your issue. If you invoke it as asn 33667 it should still be a long process, but now it should correctly report what it's doing that takes so long to complete.

Thanks for reporting!

@nitefood nitefood added the bug Something isn't working label Feb 9, 2024
@thrtnastrx
Copy link
Author

thrtnastrx commented Feb 9, 2024 via email

nitefood added a commit that referenced this issue Feb 12, 2024
- `-n` switch now disables additional INETNUM/origin lookups (.asnrc equivalent: ADDITIONAL_INETNUM_LOOKUP=true)
- fixed counter bug in IPv4 lookup for target ASN
nitefood added a commit that referenced this issue Feb 12, 2024
* added -n option to asn targets lookup (fix #57):
- `-n` switch now disables additional INETNUM/origin lookups (.asnrc equivalent: ADDITIONAL_INETNUM_LOOKUP=true)
- fixed counter bug in IPv4 lookup for target ASN
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants