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

IPv6 inaccuracies #172

Open
wzrdtales opened this issue Aug 25, 2024 · 2 comments
Open

IPv6 inaccuracies #172

wzrdtales opened this issue Aug 25, 2024 · 2 comments

Comments

@wzrdtales
Copy link

wzrdtales commented Aug 25, 2024

There are three details that are not correct:

  1. The comment of lastAddress for an IPv6 address says, this usually is a broadcast address. IPv6 does not have a broadcast, the doc should either reflect that or remove this comment to avoid ill informing users.

  2. endAddressExclusive it will not respect the 128 anycast addresses at the top

  3. endAddressExclusive it claims the broadcast address exists, correct is also the last address is valid.

@beaugunderson
Copy link
Owner

thanks for reporting @wzrdtales, for 2. and 3. can you be more explicit so I understand what needs to change?

@wzrdtales
Copy link
Author

wzrdtales commented Nov 19, 2024

Sure, according to the official Standard (https://www.rfc-editor.org/rfc/rfc2526.html), IPv6 does not have a broadcast address. The library says the last address is invalid, this is not true it is a valid address, but it is also a reserved anycast address.

Further, the last 128 addresses in an ipv6 subnet, are reserved anycast addresses, they can't be utilized as unicast and therefor should not be returned in endAddressExclusive

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants