rust-lang / libs-team

The home of the library team
Apache License 2.0
110 stars 18 forks source link

ipcheck: Test all special-purpose address ranges #317

Closed jstasiak closed 6 months ago

jstasiak commented 7 months ago

I was going through [1] and [2] earlier today and when running ipcheck now I realized the previous input.txt wasn't quite cutting it – some special-purpose ranges were just missing the file.

I figured I'd shared the changes so that this isn't lost when someone runs this tool to check things.

In case of the IPv4 address I added some potential edge case addresses just in case (also their IPv4-mapped IPv6 counterparts).

I was mainly looking at Rust vs Python differences and the new inputs demonstrate new, previously not visible in the tool's output, Rust/Python discrepancies.

[1] https://www.iana.org/assignments/iana-ipv4-special-registry/iana-ipv4-special-registry.xhtml [2] https://www.iana.org/assignments/iana-ipv6-special-registry/iana-ipv6-special-registry.xhtml

jstasiak commented 6 months ago

No worries!