Join GitHub today
GitHub is home to over 40 million developers working together to host and review code, manage projects, and build software together.Sign up
net: calculation of IPv6 common prefix length is wrong #13360
Just a reminder.
The commit adb1e03 leaves the issue on calculation of Pv6 common prefix length. It assumes that there's no prefix longer than 64-bit. Of course the assumption is wrong. We perhaps see that some network operators want to use /96 for IPv4-embedded IPv6 addresses.
The common prefix length function isn't exposed anywhere.
It's specifically there for RFC 6724 where I believe it functions as needed. Feel free to reopen if you have a concrete example of something that this breaks, or somehow that this violates the RFCs.