Skip to content

Commit

Permalink
ipcheck: Test all special-purpose address ranges
Browse files Browse the repository at this point in the history
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
  • Loading branch information
jstasiak committed Dec 15, 2023
1 parent 96018ed commit 035e4f8
Showing 1 changed file with 51 additions and 3 deletions.
54 changes: 51 additions & 3 deletions tools/ipcheck/host/input.txt
Original file line number Diff line number Diff line change
Expand Up @@ -11,11 +11,24 @@
100.128.0.0
169.254.0.0
172.16.10.10
192.0.0.0
192.0.0.7
192.0.0.8
192.0.0.9
192.0.0.10
192.0.0.169
192.0.0.170
192.0.0.171
192.0.0.172
192.0.0.255
192.0.2.2
192.31.196.2
192.52.193.2
192.88.99.2
192.168.0.2
192.175.48.2
198.18.0.0
198.51.100.2
203.0.113.6
240.0.0.0
255.255.255.254
Expand All @@ -33,20 +46,55 @@
::ffff:100.128.0.0
::ffff:169.254.0.0
::ffff:172.16.10.10
::ffff:192.0.0.0
::ffff:192.0.0.7
::ffff:192.0.0.8
::ffff:192.0.0.9
::ffff:192.0.0.10
::ffff:192.0.0.169
::ffff:192.0.0.170
::ffff:192.0.0.171
::ffff:192.0.0.172
::ffff:192.0.0.255
::ffff:192.0.2.2
::ffff:192.31.196.2
::ffff:192.52.193.2
::ffff:192.88.99.2
::ffff:192.168.0.2
::ffff:192.175.48.2
::ffff:198.18.0.0
::ffff:198.51.100.2
::ffff:203.0.113.6
::ffff:240.0.0.0
::ffff:255.255.255.254

# IPv6
fdf8:f53b:82e4::53
fe80::200:5aee:feaa:20a2
::1
::
64:ff9b::
64:ff9b:1::
100::
2001::
2001:1::1
2001:1::2
2001:2::
2001:0002:6c::430
2001:3::
2001:4:112::
2001:10::
# In 2001:10::/28
2001:10:240:ab::a
2002:cb0a:3cdd:1::1
2001:20::
2001:30::
# In 2001::db8/32
2001:db8:8:4::2
2002::
# In 2002::/16
2002:cb0a:3cdd:1::1
2620:4f:8000::
# In fc00::/7
fdf8:f53b:82e4::53
# In fe80::/10
fe80::200:5aee:feaa:20a2

ff01:0:0:0:0:0:0:2

0 comments on commit 035e4f8

Please sign in to comment.