File tree Expand file tree Collapse file tree 2 files changed +3
-1
lines changed Expand file tree Collapse file tree 2 files changed +3
-1
lines changed Original file line number Diff line number Diff line change @@ -54,7 +54,7 @@ class CNetAddr
54
54
bool IsIPv4 () const ; // IPv4 mapped address (::FFFF:0:0/96, 0.0.0.0/0)
55
55
bool IsIPv6 () const ; // IPv6 address (not mapped IPv4, not Tor)
56
56
bool IsRFC1918 () const ; // IPv4 private networks (10.0.0.0/8, 192.168.0.0/16, 172.16.0.0/12)
57
- bool IsRFC2544 () const ; // IPv4 inter-network communications (192 .18.0.0/15)
57
+ bool IsRFC2544 () const ; // IPv4 inter-network communications (198 .18.0.0/15)
58
58
bool IsRFC6598 () const ; // IPv4 ISP-level NAT (100.64.0.0/10)
59
59
bool IsRFC5737 () const ; // IPv4 documentation addresses (192.0.2.0/24, 198.51.100.0/24, 203.0.113.0/24)
60
60
bool IsRFC3849 () const ; // IPv6 documentation address (2001:0DB8::/32)
Original file line number Diff line number Diff line change @@ -54,6 +54,8 @@ BOOST_AUTO_TEST_CASE(netbase_properties)
54
54
BOOST_CHECK (ResolveIP (" 10.0.0.1" ).IsRFC1918 ());
55
55
BOOST_CHECK (ResolveIP (" 192.168.1.1" ).IsRFC1918 ());
56
56
BOOST_CHECK (ResolveIP (" 172.31.255.255" ).IsRFC1918 ());
57
+ BOOST_CHECK (ResolveIP (" 198.18.0.0" ).IsRFC2544 ());
58
+ BOOST_CHECK (ResolveIP (" 198.19.255.255" ).IsRFC2544 ());
57
59
BOOST_CHECK (ResolveIP (" 2001:0DB8::" ).IsRFC3849 ());
58
60
BOOST_CHECK (ResolveIP (" 169.254.1.1" ).IsRFC3927 ());
59
61
BOOST_CHECK (ResolveIP (" 2002::1" ).IsRFC3964 ());
You can’t perform that action at this time.
0 commit comments