-
Notifications
You must be signed in to change notification settings - Fork 23
QuantumGate::IPAddress::IsLocal
Karel Donk edited this page Dec 23, 2021
·
2 revisions
Checks whether the IP address is in a local address space. Local address spaces include:
-
0.0.0.0/8
(Local system) -
169.254.0.0/16
(Link local) -
127.0.0.0/8
(Loopback) -
192.168.0.0/16
(Local LAN) -
10.0.0.0/8
(Local LAN) -
172.16.0.0/12
(Local LAN) -
::/8
(Local system) -
fc00::/7
(Unique Local Addresses) -
fd00::/8
(Unique Local Addresses) -
fec0::/10
(Site local) -
fe80::/10
(Link local) -
::/127
(Inter-Router Links)
constexpr bool IsLocal() const noexcept;
Returns true
if the IP address is in a local address space, otherwise false
.