mn_basic_ip6_address.hpp
Go to the documentation of this file.
28 #define MNNET_IPV6_NEW_ARRAY_NULL new uint8_t[MNNET_IPV6_ADDRESS_BYTES]{ 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0 }
29 #define MNNET_IPV6_NEW_ARRAY_LOOP new uint8_t[MNNET_IPV6_ADDRESS_BYTES]{ 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1 }
This class represents an internet (IP) version 6 host address.
Definition: mn_basic_ip4_address.hpp:38
This class represents an internet (IP) version 6 host address.
Definition: mn_basic_ip6_address.hpp:49
virtual bool is_toredo()
Definition: mn_basic_ip6_address.hpp:194
virtual uint32_t get_int(int index) const
Get the ip section on the given position as int.
Definition: mn_basic_ip6_address.hpp:151
virtual void swap(basic_ip6_address &rhs) noexcept
Definition: mn_basic_ip6_address.hpp:246
basic_ip6_address operator^(const basic_ip6_address &other) const
Definition: mn_basic_ip6_address.cpp:256
virtual bool is_ip4mapped()
Definition: mn_basic_ip6_address.cpp:156
uint8_t & operator[](int index)
Definition: mn_basic_ip6_address.hpp:215
virtual uint32_t get_int(int index)
Get the ip section on the given position as int.
Definition: mn_basic_ip6_address.hpp:144
static basic_ip6_address netmask(int mask)
Definition: mn_basic_ip6_address.cpp:205
bool operator!=(const basic_ip6_address &ipOther)
Definition: mn_basic_ip6_address.hpp:217
basic_ip6_address()
construct a ip6 address (any)
Definition: mn_basic_ip6_address.cpp:30
uint8_t operator[](int index) const
Definition: mn_basic_ip6_address.hpp:214
basic_ip6_address(uint8_t address[16]) noexcept
construct a ip6 address from array
basic_ip6_address operator|(const basic_ip6_address &other) const
Definition: mn_basic_ip6_address.cpp:246
static basic_ip4_address to_ip4(const basic_ip6_address &ip6)
Definition: mn_basic_ip6_address.hpp:230
basic_ip6_address & operator=(const basic_ip6_address &ip)
Definition: mn_basic_ip6_address.cpp:193
virtual bool is_multicast()
Definition: mn_basic_ip6_address.hpp:177
basic_ip6_address operator~() const
Definition: mn_basic_ip6_address.cpp:266
virtual bool is_linklocal()
Definition: mn_basic_ip6_address.hpp:184
virtual bool is_broadcast()
Definition: mn_basic_ip6_address.hpp:172
virtual bool is_loopback()
Definition: mn_basic_ip6_address.hpp:168
bool operator==(const basic_ip6_address &ipOther)
Definition: mn_basic_ip6_address.hpp:216
const char * to_string()
Definition: mn_basic_ip6_address.cpp:223
int length() const
Returns the length in bytes of the ip address.
Definition: mn_basic_ip6_address.cpp:149
basic_ip6_address operator&(const basic_ip6_address &other) const
Definition: mn_basic_ip6_address.cpp:236
void set_zero()
set the ip to zero
Definition: mn_basic_ip6_address.hpp:156
virtual bool is_sitelocal()
Definition: mn_basic_ip6_address.hpp:189
virtual bool is_equel(const basic_ip6_address &ipOther)
Definition: mn_basic_ip6_address.cpp:167
void set_loopback()
set the ip to loopback
Definition: mn_basic_ip6_address.hpp:161
static basic_ip6_address from_ip4(const basic_ip4_address &ip4)
Create a new basic_ip6_address from a given IPv4 address.
Definition: mn_basic_ip6_address.hpp:238
Wrapper class around lwip implementation of a ip address.
Definition: mn_basic_ip_address.hpp:65
virtual void swap(basic_ip_address &rhs) noexcept
Definition: mn_basic_ip_address.hpp:108
#define MNNET_IPV6_ADDRESS_LOOPBACK
Definition: mn_basic_ip6_address.hpp:36
Definition: mn_allocator_typetraits.hpp:25