-
Notifications
You must be signed in to change notification settings - Fork 11
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
IPv6 address types are missing ULA #13
Comments
That's unfortunate. Care to submit a small patch or pull request? :) |
I will try and find some time this evening. David |
Got a bit curious myself. Would this work? 😵 diff --git a/misc.c b/misc.c
index 085069d..06533e6 100644
--- a/misc.c
+++ b/misc.c
@@ -1040,6 +1040,8 @@ void v6_type(struct v6addr *in6_addr)
snprintf(buf, len, "Reserved");
if ((a & 0xff00) == 0xff00)
snprintf(buf, len, "Multicast Addresses");
+ if ((a & 0xfc00) == 0xfc00 && in6_addr->nmaskbits == 7)
+ snprintf(buf, len, "Unique Local Unicast");
if ((a & 0xff80) == 0xfe80)
snprintf(buf, len, "Link-Local Unicast Addresses");
if ((a & 0xffc0) == 0xfec0) |
ULA's use /48 prefixes. labeling any |
I think it would be useful to have separate message for fc00 and fd00. Most (if not all for now) ULA's will be fdxx (signifying a "locally-assigned ULA") as a value of 0 in the least significant bit is reserved for future use. I would use the terms.. David |
Aha, I see. I was reading https://tools.ietf.org/html/rfc4193#section-8, so that's what confused me. OK, I'll add two new types and reference this issue, if you can audit it later I'd be very grateful :) |
GitHub auto-closes issues with 'Fix #...'. If you find a problem with 694614e, just reopen this issue. I'll hold off the v2.1 release another day. |
RFC 4193 specifies range of IPv6 for Unique Local Addressing unicast. Netcalc is not recognizing those, instead returning "Unassigned"
David
The text was updated successfully, but these errors were encountered: