Skip to content

Commit 035e4f8

Browse files
committed
ipcheck: Test all special-purpose address ranges
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
1 parent 96018ed commit 035e4f8

File tree

1 file changed

+51
-3
lines changed

1 file changed

+51
-3
lines changed

tools/ipcheck/host/input.txt

Lines changed: 51 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -11,11 +11,24 @@
1111
100.128.0.0
1212
169.254.0.0
1313
172.16.10.10
14+
192.0.0.0
15+
192.0.0.7
1416
192.0.0.8
1517
192.0.0.9
18+
192.0.0.10
19+
192.0.0.169
20+
192.0.0.170
21+
192.0.0.171
22+
192.0.0.172
1623
192.0.0.255
24+
192.0.2.2
25+
192.31.196.2
26+
192.52.193.2
27+
192.88.99.2
1728
192.168.0.2
29+
192.175.48.2
1830
198.18.0.0
31+
198.51.100.2
1932
203.0.113.6
2033
240.0.0.0
2134
255.255.255.254
@@ -33,20 +46,55 @@
3346
::ffff:100.128.0.0
3447
::ffff:169.254.0.0
3548
::ffff:172.16.10.10
49+
::ffff:192.0.0.0
50+
::ffff:192.0.0.7
3651
::ffff:192.0.0.8
3752
::ffff:192.0.0.9
53+
::ffff:192.0.0.10
54+
::ffff:192.0.0.169
55+
::ffff:192.0.0.170
56+
::ffff:192.0.0.171
57+
::ffff:192.0.0.172
3858
::ffff:192.0.0.255
59+
::ffff:192.0.2.2
60+
::ffff:192.31.196.2
61+
::ffff:192.52.193.2
62+
::ffff:192.88.99.2
3963
::ffff:192.168.0.2
64+
::ffff:192.175.48.2
4065
::ffff:198.18.0.0
66+
::ffff:198.51.100.2
4167
::ffff:203.0.113.6
4268
::ffff:240.0.0.0
4369
::ffff:255.255.255.254
4470

4571
# IPv6
46-
fdf8:f53b:82e4::53
47-
fe80::200:5aee:feaa:20a2
72+
::1
73+
::
74+
64:ff9b::
75+
64:ff9b:1::
76+
100::
77+
2001::
78+
2001:1::1
79+
2001:1::2
80+
2001:2::
4881
2001:0002:6c::430
82+
2001:3::
83+
2001:4:112::
84+
2001:10::
85+
# In 2001:10::/28
4986
2001:10:240:ab::a
50-
2002:cb0a:3cdd:1::1
87+
2001:20::
88+
2001:30::
89+
# In 2001::db8/32
5190
2001:db8:8:4::2
91+
2002::
92+
# In 2002::/16
93+
2002:cb0a:3cdd:1::1
94+
2620:4f:8000::
95+
# In fc00::/7
96+
fdf8:f53b:82e4::53
97+
# In fe80::/10
98+
fe80::200:5aee:feaa:20a2
99+
52100
ff01:0:0:0:0:0:0:2

0 commit comments

Comments
 (0)