Classes | |
class | IPADDR6 |
Used to hold and manipulate IPv4 and IPv6 addresses in dual stack mode. More... | |
Functions | |
bool | IPADDR6::IsEmbeddedIPV4 () const |
An IPADDR6 object can store a IPv4 or IPv6 address. This function returns true if the instance contains an IPv4 address. More... | |
IPADDR4 | IPADDR6::Extract4 () const |
Extracts an IPv4 address from the object. More... | |
bool | IPADDR6::IsNull () const |
Check if the IP address is null. More... | |
bool | IPADDR6::NotNull () const |
Check if the IP address is not null. More... | |
bool | IPADDR6::IsLoopBack () const |
Check if the IP address is the loopback address for the interface. More... | |
bool | IPADDR6::IsMultiCast () const |
Check if the IPADDR6 object contains a Multicast IP address the interface. More... | |
bool | IPADDR6::IsLinkLocal () const |
Check if the IP address is the link-local address for the interface. More... | |
MACADR | IPADDR6::McastMac () const |
Return the MAC address used for Multicasts for the interface. More... | |
void | IPADDR6::print (bool bCompact=true, bool bShowV4Raw=false) const |
Print the IP address value to stdout. More... | |
void | IPADDR6::fdprint (int fd, bool bCompact=true, bool bShowV4Raw=false) const |
Print the IP address to the specified file descriptor. More... | |
int | IPADDR6::sprintf (char *cp, int maxl, bool bCompact=true, bool bShowV4Raw=false) const |
Print the IP address to the specified buffer. More... | |
static IPADDR6 | IPADDR6::AsciiToIp6 (const char *cp, bool bembed_v4addreses=true) |
Return an IPADDR6 object created from an ASCII value IPv4 or IPv6 address. More... | |
static IPADDR6 | IPADDR6::NullIP () |
Return a null IPADDR6 object. More... | |
void | IPADDR6::SetFromAscii (const char *cp, bool bembed_v4addreses=true) |
Set the IP address value of an IPADDR6 object. More... | |
void | IPADDR6::SetFromIP4 (IPADDR4 ip) |
Set the IP address value of an IPADDR6 object from an IPADD4 object. More... | |
void | IPADDR6::SetFromUint32Shortcut (uint32_t w0, uint32_t w1, uint32_t w2, uint32_t w3) |
Set the IP address value of an IPADDR6 object from 4 discrete uint32_t values. More... | |
void | IPADDR6::SetNull () |
Set the IP address value of an IPADDR6 object to null. More... | |
The NetBurner IPv6 IPADDR6 Class
|
static |
|
inline |
Extracts an IPv4 address from the object.
IPADDR4 | Value of the IPv4 address |
void IPADDR6::fdprint | ( | int | fd, |
bool | bCompact = true , |
||
bool | bShowV4Raw = false |
||
) | const |
Print the IP address to the specified file descriptor.
fd,valid | file descriptor to send the data |
bCompact,display | IPv6 address in compact notation |
bShowV4Raw,normally | always set to false. if set to true, will display the IPv4 address 128-bits of the IP address object in the raw format ::FFFF:xx.xx.xx.xx. |
|
inline |
|
inline |
Check if the IP address is the link-local address for the interface.
true | if the IP address value is the link-local address |
|
inline |
Check if the IP address is the loopback address for the interface.
true | if the IP address value is the loopback address |
|
inline |
Check if the IPADDR6 object contains a Multicast IP address the interface.
true | if the IP address value is a Multicast address |
|
inline |
Check if the IP address is null.
true | if the IP address value is null |
MACADR IPADDR6::McastMac | ( | ) | const |
Return the MAC address used for Multicasts for the interface.
MACADR | if a Multicast address exists |
null | otherwise |
|
inline |
Check if the IP address is not null.
true | if the IP address value is not null |
|
static |
void IPADDR6::print | ( | bool | bCompact = true , |
bool | bShowV4Raw = false |
||
) | const |
void IPADDR6::SetFromAscii | ( | const char * | cp, |
bool | bembed_v4addreses = true |
||
) |
Set the IP address value of an IPADDR6 object.
*cp,pointer | to the ASCII string representing an IPv4 or IPv6 address |
bembed_v4addresses,if | false function will only process an IPv6 address |
void IPADDR6::SetFromIP4 | ( | IPADDR4 | ip | ) |
Set the IP address value of an IPADDR6 object from an IPADD4 object.
ip,IPADD4 | object |
|
inline |
Set the IP address value of an IPADDR6 object from 4 discrete uint32_t values.
wo,unsigned | 32-bit integer |
w1,unsigned | 32-bit integer |
w2,unsigned | 32-bit integer |
w3,unsigned | 32-bit integer |
|
inline |
Set the IP address value of an IPADDR6 object to null.
int IPADDR6::sprintf | ( | char * | cp, |
int | maxl, | ||
bool | bCompact = true , |
||
bool | bShowV4Raw = false |
||
) | const |
Print the IP address to the specified buffer.
*cp,pointer | to the destination buffer to store the data |
maxl,maximum | number of bytes to write to buffer |
bCompact,display | IPv6 address in compact notation |
bShowV4Raw,normally | always set to false. if set to true, will display the IPv4 address 128-bits of the IP address object in the raw format ::FFFF:xx.xx.xx.xx. |