EtherRaw
|
Support for IPv6 addresses. More...
#include <EtherRaw.h>
Public Member Functions | |
IPv6Address () | |
IPv6Address (const uint8_t *address) | |
bool | operator== (const IPv6Address &addr) |
bool | operator== (const uint8_t *addr) |
IPv6Address & | operator= (const uint8_t *addr) |
const uint8_t * | address () const |
Support for IPv6 addresses.
This class allows easy access to the contents of an IPv6 address in on-the-wire format.
IPv6Address::IPv6Address | ( | ) |
Constructor. Clears the address to all zeros
IPv6Address::IPv6Address | ( | const uint8_t * | address | ) |
Constructor. Initialise the address from some other array or structure.
[in] | address | Pointer to 4 octets of IPv4 address |
const uint8_t * IPv6Address::address | ( | ) | const |
Access the raw address as an array of octets.
IPv6Address & IPv6Address::operator= | ( | const uint8_t * | addr | ) |
Assignment operator. Copies the raw address pointed to by addr to this address.
[in] | addr | The raw address to be used to initialise this address |
bool IPv6Address::operator== | ( | const IPv6Address & | addr | ) |
Equality operator. Tests whether 2 addresses are identical.
[in] | addr | The other address |
bool IPv6Address::operator== | ( | const uint8_t * | addr | ) |
Equality operator. Tests whether 2 addresses are identical.
[in] | addr | The other address as some raw array or structure |