-
Notifications
You must be signed in to change notification settings - Fork 3
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
summarize not working correctly #6
Comments
Can you explain why you closed the issue? I seem to notice the same behavior. |
@astellingwerf can you provide some input that reproduces the issue? Note that in his example the second address has an implied /32 that makes the output valid. I can see a potential issue with assuming a network address is /32 if a CIDR is not present. Maybe a better behavior would be to take Classful Addressing into account to assume the correct mask length. |
The primary issue that I saw is that the function internally generates invalid Networks, which then causes invalid decisions to be made, and therefor with unexpected results. The last paragraph of RFC 4632 says:
It means that for example a /31 must end with an even number, and a /30 ends in a number divisible by 4. |
merged and fixed: #17 |
summarize([77.138.225.244/32,77.138.225.245]) will result: [77.138.225.244/31], when clearly that isn't right
The text was updated successfully, but these errors were encountered: