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

Formal IPv6 address definition #839

Open
annevk opened this issue Nov 26, 2024 · 0 comments
Open

Formal IPv6 address definition #839

annevk opened this issue Nov 26, 2024 · 0 comments
Labels
clarification Standard could be clearer topic: model For issues with the abstract-but-normative bits

Comments

@annevk
Copy link
Member

annevk commented Nov 26, 2024

From @rmisev:

This definition is obscure: it is not clear how to convert a 128-bit integer to a list of pieces and vice versa. Also, all algorithms use an IPv6 address as a list of pieces, not as a 128-bit integer. By the way, RFC4291 defines an IPv6 address slightly differently: "IPv6 addresses are 128-bit identifiers...".

From @domenic:

I can see how it's "conceptually" a u128, or "corresponds to" a u128, but in practice every part of the spec treats it as a list of 8 u16s.

This came up in #838.


If we want to change this we should probably look at how the various IETF specifications deal with IPv6 addresses again as we wouldn't want to define a type here that couldn't be reused in those layers of the stack.

@annevk annevk added clarification Standard could be clearer topic: model For issues with the abstract-but-normative bits labels Nov 26, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
clarification Standard could be clearer topic: model For issues with the abstract-but-normative bits
Development

No branches or pull requests

1 participant