Skip to content

Ipv6Addr::is_documentation should be expanded to include RFC 9637's 3ffff::/20 #137821

Open
@jrose-signal

Description

@jrose-signal

The unstable Ipv6Addr::is_documentation (#27709) is documented, matching the implementation, as

Returns true if this is an address reserved for documentation (2001:db8::/32).

This property is defined in IETF RFC 3849.

However, RFC 9637 from Aug 2024 added 3fff::/20 as a documentation space as well, and thus this API should be updated.

This does mean two programs may disagree on whether an address is_documentation based on which version of the stdlib they use…but I think that's inevitable with anything based on IETF standards. (In some cases it might make sense to explicitly pin the library to an earlier version of the standard, but I don't think that's necessary here.)

Metadata

Metadata

Assignees

No one assigned

    Labels

    C-bugCategory: This is a bug.T-libs-apiRelevant to the library API team, which will review and decide on the PR/issue.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions