#include <IpAddress.h>
|
| enum | IpType { IPv4 = 0x0800
, IPv6 = 0x86DD
} |
| |
An IPv4/IPv6 address
Definition at line 29 of file IpAddress.h.
◆ IpType
The type of an IP address
Definition at line 32 of file IpAddress.h.
◆ IpAddress() [1/5]
◆ IpAddress() [2/5]
| IpAddress::IpAddress |
( |
IpType |
type | ) |
|
|
inline |
◆ IpAddress() [3/5]
| IpAddress::IpAddress |
( |
uint32_t |
ipv4 | ) |
|
|
inline |
◆ IpAddress() [4/5]
| IpAddress::IpAddress |
( |
uint8_t * |
ipv6 | ) |
|
|
inline |
◆ IpAddress() [5/5]
| IpAddress::IpAddress |
( |
const IpAddress & |
other | ) |
|
|
inline |
◆ getIp() [1/2]
| uint32_t IpAddress::getIp |
( |
| ) |
const |
|
inline |
◆ getIp() [2/2]
| void IpAddress::getIp |
( |
uint8_t * |
ipv6 | ) |
const |
|
inline |
◆ getIpv6Prefix()
| size_t IpAddress::getIpv6Prefix |
( |
| ) |
const |
|
inline |
Obtains the IPv6 prefix for this address.
Definition at line 166 of file IpAddress.h.
◆ getType()
| IpType IpAddress::getType |
( |
| ) |
const |
|
inline |
◆ isLinkLocal()
| bool IpAddress::isLinkLocal |
( |
| ) |
const |
Whether the IP address is considered "link-local" or not.
Definition at line 23 of file IpAddress.cc.
◆ isMulticast()
| bool IpAddress::isMulticast |
( |
| ) |
const |
Whether the IP address is a valid multicast address.
Definition at line 110 of file IpAddress.cc.
◆ isUnicast()
| bool IpAddress::isUnicast |
( |
| ) |
const |
|
inline |
Whether the IP address is a valid unicast address.
Definition at line 161 of file IpAddress.h.
◆ operator!=() [1/2]
| bool IpAddress::operator!= |
( |
const IpAddress & |
a | ) |
const |
|
inline |
◆ operator!=() [2/2]
| bool IpAddress::operator!= |
( |
uint32_t |
a | ) |
const |
|
inline |
◆ operator&()
◆ operator+()
◆ operator=()
◆ operator==() [1/2]
| bool IpAddress::operator== |
( |
const IpAddress & |
a | ) |
const |
|
inline |
◆ operator==() [2/2]
| bool IpAddress::operator== |
( |
uint32_t |
a | ) |
const |
|
inline |
◆ prefixString()
| String IpAddress::prefixString |
( |
size_t |
override = 256 | ) |
const |
Prefix string. Not zero-compressed. For routing.
Definition at line 30 of file IpAddress.cc.
◆ setIp() [1/2]
| void IpAddress::setIp |
( |
uint32_t |
ipv4 | ) |
|
|
inline |
IP setters - only one type is valid at any one point in time
Definition at line 56 of file IpAddress.h.
◆ setIp() [2/2]
| void IpAddress::setIp |
( |
uint8_t * |
ipv6 | ) |
|
|
inline |
◆ setIpv6Prefix()
| void IpAddress::setIpv6Prefix |
( |
size_t |
prefix | ) |
|
|
inline |
Sets the IPv6 prefix for this address.
Definition at line 171 of file IpAddress.h.
◆ toString()
| String IpAddress::toString |
( |
| ) |
const |
◆ m_bSet
◆ m_Ipv4
| uint32_t IpAddress::m_Ipv4 |
|
private |
◆ m_Ipv6
| uint8_t IpAddress::m_Ipv6[16] |
|
private |
◆ m_Ipv6Prefix
| size_t IpAddress::m_Ipv6Prefix |
|
private |
◆ m_Type
The documentation for this class was generated from the following files: