Helper class to help filter and classify IPv4 addresses More...
Public Member Functions | |
bool | IsIPInSubnet (IPAddress addr) |
Checks if the given IP address is a member of this IPv4 subnet. More... | |
bool | IsIPInSubnet (String ipaddr) |
Checks if the given IP address, given as a string, is a member of this IPv4 subnet. More... | |
Static Public Member Functions | |
static IPv4Subnet | FromCIDR (String cidr) |
Converts an address in a CIDR notation to the IPv4Subnet object. More... | |
static IPv4Subnet | FromSubnet (String subnet, String mask) |
Constructs an IPv4Subnet from a network address and subnet mask, given as strings. More... | |
static IPv4Subnet | FromSubnet (IPAddress subnet, IPAddress mask) |
Constructs an IPv4Subnet from a network address and mask, given as IPAddress . More... | |
static bool | IsPublicIP (IPAddress addr) |
Verifies that the given address is on a public network. (It is not a special address or one of the reserved private subnets.) More... | |
Helper class to help filter and classify IPv4 addresses
Definition at line 143 of file Network.cs.
|
static |
Converts an address in a CIDR notation to the IPv4Subnet
object.
cidr | IP addrss in the format 1.2.3.4/5 |
ArgumentException | The provided CIDR is invalid. |
Definition at line 184 of file Network.cs.
|
static |
Constructs an IPv4Subnet
from a network address and subnet mask, given as strings.
subnet | Network address. |
mask | Subnet Mask |
Definition at line 228 of file Network.cs.
|
static |
Constructs an IPv4Subnet
from a network address and mask, given as IPAddress
.
subnet | Network address. |
mask | Subnet mask. |
Definition at line 256 of file Network.cs.
bool DLT.Network.IPv4Subnet.IsIPInSubnet | ( | IPAddress | addr | ) |
Checks if the given IP address is a member of this IPv4 subnet.
addr | IP address to check. |
Definition at line 310 of file Network.cs.
bool DLT.Network.IPv4Subnet.IsIPInSubnet | ( | String | ipaddr | ) |
Checks if the given IP address, given as a string, is a member of this IPv4 subnet.
addr | IP address to check. |
Definition at line 334 of file Network.cs.
|
static |
Verifies that the given address is on a public network. (It is not a special address or one of the reserved private subnets.)
addr | IP address to check |
Definition at line 274 of file Network.cs.
|
static |
Definition at line 162 of file Network.cs.
|
static |
Definition at line 161 of file Network.cs.
|
static |
Definition at line 165 of file Network.cs.
|
static |
Definition at line 166 of file Network.cs.
|
static |
Definition at line 170 of file Network.cs.
|
static |
Definition at line 159 of file Network.cs.
|
static |
Definition at line 155 of file Network.cs.
|
static |
Definition at line 154 of file Network.cs.
|
static |
Definition at line 152 of file Network.cs.
|
static |
Definition at line 151 of file Network.cs.
|
static |
Definition at line 158 of file Network.cs.
|
static |
Definition at line 157 of file Network.cs.
|
static |
Definition at line 156 of file Network.cs.
|
static |
Definition at line 149 of file Network.cs.
|
static |
Definition at line 153 of file Network.cs.
|
static |
Definition at line 164 of file Network.cs.
|
static |
Definition at line 163 of file Network.cs.
|
static |
Definition at line 169 of file Network.cs.
|
static |
Definition at line 150 of file Network.cs.
|
static |
Definition at line 160 of file Network.cs.
|
static |
Definition at line 167 of file Network.cs.
|
static |
Definition at line 168 of file Network.cs.