-
Notifications
You must be signed in to change notification settings - Fork 43
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
1.6 hangs generating IPv6 lists #66
Comments
The problem is not per se in the program, or the protocol, but rather with 'garbage in garbage out'. It exposes a fundamental problem with
The program tries to allocate memory to print all I could try to add some arbitrary limits to the program to avoid expanding From the perspective of generating an IPv6 prefix list according to the RPSL specification, the |
FWIW its actually a child object in that set which causes this: @job I wonder if we could have something similar to |
@floatingstatic A feature like “will de-aggregate up to XX bits”, and perhaps a default value of 8? I’ll look into that! |
I was thinking about something else too, what about specifying what we all know as "max-prefix". This is a value that is often available anyway and could be used to restrict memory allocation. If exceeded, bgpq4 could return a partial or empty result, with a non-zero exit code. I'm assuming RPSL "garbage in garbage out" will continue to remain true for the foreseeable future, so setting expectations about the amount of prefixes to return could help, not only because of garbage input but also because destination limits. And this situation, max-pref would probably also be configured on the BGP session, so this would not really cause surprises. A big disparity between RPSL and actually expected prefixes on the other hand would trigger this. |
Nothing interesting in debug, seems to be parsing and then hangs:
The text was updated successfully, but these errors were encountered: