Used to hold and manipulate IPv4 and IPv6 addresses in dual stack mode. More...
#include <ipv6_addr.h>
Public Member Functions | |
| bool | 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 | Extract4 () const |
| Extracts an IPv4 address from the object. More... | |
| bool | IsNull () const |
| Check if the IP address is null. More... | |
| bool | NotNull () const |
| Check if the IP address is not null. More... | |
| bool | IsLoopBack () const |
| Check if the IP address is the loopback address for the interface. More... | |
| bool | IsMultiCast () const |
| Check if the IPADDR6 object contains a Multicast IP address the interface. More... | |
| bool | IsLinkLocal () const |
| Check if the IP address is the link-local address for the interface. More... | |
| MACADR | McastMac () const |
| Return the MAC address used for Multicasts for the interface. More... | |
| void | print (bool bCompact=true, bool bShowV4Raw=false) const |
| Print the IP address value to stdout. More... | |
| void | fdprint (int fd, bool bCompact=true, bool bShowV4Raw=false) const |
| Print the IP address to the specified file descriptor. More... | |
| int | sprintf (char *cp, int maxl, bool bCompact=true, bool bShowV4Raw=false) const |
| Print the IP address to the specified buffer. More... | |
| void | SetFromAscii (const char *cp, bool bembed_v4addreses=true) |
| Set the IP address value of an IPADDR6 object. More... | |
| void | SetFromIP4 (IPADDR4 ip) |
| Set the IP address value of an IPADDR6 object from an IPADD4 object. More... | |
| void | 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 | SetNull () |
| Set the IP address value of an IPADDR6 object to null. More... | |
Static Public Member Functions | |
| static 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 | NullIP () |
| Return a null IPADDR6 object. More... | |
Used to hold and manipulate IPv4 and IPv6 addresses in dual stack mode.