#include <ipv6.hpp>
Definition at line 38 of file ipv6.hpp.
◆ anonymous enum
◆ add()
◆ all_ones()
bool openvpn::IPv6::Addr::all_ones |
( |
| ) |
const |
|
inline |
◆ all_zeros()
bool openvpn::IPv6::Addr::all_zeros |
( |
| ) |
const |
|
inline |
◆ arpa()
static std::string openvpn::IPv6::Addr::arpa |
( |
| ) |
|
|
inlinestatic |
◆ bit()
bool openvpn::IPv6::Addr::bit |
( |
unsigned int |
pos | ) |
const |
|
inline |
◆ byte_string_is_v4()
static bool openvpn::IPv6::Addr::byte_string_is_v4 |
( |
const unsigned char * |
bytestr | ) |
|
|
inlinestatic |
◆ compare()
template<typename Comparator >
bool openvpn::IPv6::Addr::compare |
( |
const Addr & |
other, |
|
|
Comparator |
comp |
|
) |
| const |
|
inlineprivate |
◆ defined()
static constexpr bool openvpn::IPv6::Addr::defined |
( |
| ) |
|
|
inlinestaticconstexpr |
◆ div()
static void openvpn::IPv6::Addr::div |
( |
const Addr & |
numerator, |
|
|
const Addr & |
denominator, |
|
|
Addr & |
quotient, |
|
|
Addr & |
remainder |
|
) |
| |
|
inlinestatic |
◆ extent_from_netmask()
Addr openvpn::IPv6::Addr::extent_from_netmask |
( |
| ) |
const |
|
inline |
◆ from_addr()
static Addr openvpn::IPv6::Addr::from_addr |
( |
const Addr & |
addr | ) |
|
|
inlinestatic |
◆ from_asio()
static Addr openvpn::IPv6::Addr::from_asio |
( |
const openvpn_io::ip::address_v6 & |
asio_addr | ) |
|
|
inlinestatic |
◆ from_byte_string()
static Addr openvpn::IPv6::Addr::from_byte_string |
( |
const unsigned char * |
bytestr | ) |
|
|
inlinestatic |
◆ from_hex()
static Addr openvpn::IPv6::Addr::from_hex |
( |
const std::string & |
s | ) |
|
|
inlinestatic |
◆ from_in6_addr()
static Addr openvpn::IPv6::Addr::from_in6_addr |
( |
const in6_addr * |
in6 | ) |
|
|
inlinestatic |
◆ from_long()
static Addr openvpn::IPv6::Addr::from_long |
( |
long |
ul | ) |
|
|
inlinestatic |
◆ from_one()
static Addr openvpn::IPv6::Addr::from_one |
( |
| ) |
|
|
inlinestatic |
◆ from_sockaddr()
static Addr openvpn::IPv6::Addr::from_sockaddr |
( |
const sockaddr_in6 * |
sa | ) |
|
|
inlinestatic |
◆ from_string() [1/2]
static Addr openvpn::IPv6::Addr::from_string |
( |
const std::string & |
ipstr | ) |
|
|
inlinestatic |
◆ from_string() [2/2]
template<typename TITLE >
static Addr openvpn::IPv6::Addr::from_string |
( |
const std::string & |
ipstr, |
|
|
const TITLE & |
title |
|
) |
| |
|
inlinestatic |
◆ from_ulong()
static Addr openvpn::IPv6::Addr::from_ulong |
( |
unsigned long |
ul | ) |
|
|
inlinestatic |
◆ from_zero()
static Addr openvpn::IPv6::Addr::from_zero |
( |
| ) |
|
|
inlinestatic |
◆ from_zero_complement()
static Addr openvpn::IPv6::Addr::from_zero_complement |
( |
| ) |
|
|
inlinestatic |
◆ get_mapped_ipv4_address()
std::uint32_t openvpn::IPv6::Addr::get_mapped_ipv4_address |
( |
| ) |
const |
|
inline |
◆ hash()
template<typename HASH >
void openvpn::IPv6::Addr::hash |
( |
HASH & |
h | ) |
const |
|
inline |
◆ host_len()
unsigned int openvpn::IPv6::Addr::host_len |
( |
| ) |
const |
|
inline |
◆ host_to_network_order()
static void openvpn::IPv6::Addr::host_to_network_order |
( |
ipv6addr * |
dest, |
|
|
const ipv6addr * |
src |
|
) |
| |
|
inlinestaticprivate |
◆ ip_version()
static constexpr int openvpn::IPv6::Addr::ip_version |
( |
| ) |
|
|
inlinestaticconstexpr |
◆ is_loopback()
bool openvpn::IPv6::Addr::is_loopback |
( |
| ) |
const |
|
inline |
◆ is_mapped_address()
bool openvpn::IPv6::Addr::is_mapped_address |
( |
| ) |
const |
|
inline |
◆ negate()
void openvpn::IPv6::Addr::negate |
( |
| ) |
|
|
inline |
◆ netmask_from_prefix_len()
static Addr openvpn::IPv6::Addr::netmask_from_prefix_len |
( |
const unsigned int |
prefix_len | ) |
|
|
inlinestatic |
◆ netmask_from_this_as_extent()
Addr openvpn::IPv6::Addr::netmask_from_this_as_extent |
( |
| ) |
const |
|
inline |
◆ network_addr()
Addr openvpn::IPv6::Addr::network_addr |
( |
const unsigned int |
prefix_len | ) |
const |
|
inline |
◆ network_to_host_order()
static void openvpn::IPv6::Addr::network_to_host_order |
( |
ipv6addr * |
dest, |
|
|
const ipv6addr * |
src |
|
) |
| |
|
inlinestaticprivate |
◆ one()
void openvpn::IPv6::Addr::one |
( |
| ) |
|
|
inline |
◆ operator!=()
bool openvpn::IPv6::Addr::operator!= |
( |
const Addr & |
other | ) |
const |
|
inline |
◆ operator%()
Addr openvpn::IPv6::Addr::operator% |
( |
const Addr & |
d | ) |
const |
|
inline |
◆ operator&()
Addr openvpn::IPv6::Addr::operator& |
( |
const Addr & |
other | ) |
const |
|
inline |
◆ operator*()
Addr openvpn::IPv6::Addr::operator* |
( |
const Addr & |
d | ) |
const |
|
inline |
◆ operator+() [1/2]
Addr openvpn::IPv6::Addr::operator+ |
( |
const Addr & |
other | ) |
const |
|
inline |
◆ operator+() [2/2]
Addr openvpn::IPv6::Addr::operator+ |
( |
const long |
delta | ) |
const |
|
inline |
◆ operator++()
Addr & openvpn::IPv6::Addr::operator++ |
( |
| ) |
|
|
inline |
◆ operator+=() [1/2]
Addr & openvpn::IPv6::Addr::operator+= |
( |
const Addr & |
other | ) |
|
|
inline |
◆ operator+=() [2/2]
Addr & openvpn::IPv6::Addr::operator+= |
( |
const long |
delta | ) |
|
|
inline |
◆ operator-() [1/2]
Addr openvpn::IPv6::Addr::operator- |
( |
const Addr & |
other | ) |
const |
|
inline |
◆ operator-() [2/2]
Addr openvpn::IPv6::Addr::operator- |
( |
const long |
delta | ) |
const |
|
inline |
◆ operator-=() [1/2]
Addr & openvpn::IPv6::Addr::operator-= |
( |
const Addr & |
other | ) |
|
|
inline |
◆ operator-=() [2/2]
Addr & openvpn::IPv6::Addr::operator-= |
( |
const long |
delta | ) |
|
|
inline |
◆ operator/()
Addr openvpn::IPv6::Addr::operator/ |
( |
const Addr & |
d | ) |
const |
|
inline |
◆ operator<()
bool openvpn::IPv6::Addr::operator< |
( |
const Addr & |
other | ) |
const |
|
inline |
◆ operator<<()
Addr openvpn::IPv6::Addr::operator<< |
( |
const unsigned int |
shift | ) |
const |
|
inline |
◆ operator<<=()
Addr & openvpn::IPv6::Addr::operator<<= |
( |
const unsigned int |
shift | ) |
|
|
inline |
◆ operator<=()
bool openvpn::IPv6::Addr::operator<= |
( |
const Addr & |
other | ) |
const |
|
inline |
◆ operator==()
bool openvpn::IPv6::Addr::operator== |
( |
const Addr & |
other | ) |
const |
|
inline |
◆ operator>()
bool openvpn::IPv6::Addr::operator> |
( |
const Addr & |
other | ) |
const |
|
inline |
◆ operator>=()
bool openvpn::IPv6::Addr::operator>= |
( |
const Addr & |
other | ) |
const |
|
inline |
◆ operator>>()
Addr openvpn::IPv6::Addr::operator>> |
( |
const unsigned int |
shift | ) |
const |
|
inline |
◆ operator>>=()
Addr & openvpn::IPv6::Addr::operator>>= |
( |
const unsigned int |
shift | ) |
|
|
inline |
◆ operator|()
Addr openvpn::IPv6::Addr::operator| |
( |
const Addr & |
other | ) |
const |
|
inline |
◆ operator~()
Addr openvpn::IPv6::Addr::operator~ |
( |
| ) |
const |
|
inline |
◆ prefix_len()
unsigned int openvpn::IPv6::Addr::prefix_len |
( |
| ) |
const |
|
inline |
◆ prefix_len_to_netmask()
void openvpn::IPv6::Addr::prefix_len_to_netmask |
( |
const unsigned int |
prefix_len | ) |
|
|
inlineprivate |
◆ prefix_len_to_netmask_unchecked()
void openvpn::IPv6::Addr::prefix_len_to_netmask_unchecked |
( |
const unsigned int |
prefix_len | ) |
|
|
inlineprivate |
◆ scope_id()
int openvpn::IPv6::Addr::scope_id |
( |
| ) |
const |
|
inline |
◆ set_bit()
void openvpn::IPv6::Addr::set_bit |
( |
unsigned int |
pos, |
|
|
bool |
value |
|
) |
| |
|
inline |
◆ set_clear_bit()
void openvpn::IPv6::Addr::set_clear_bit |
( |
unsigned int |
pos, |
|
|
bool |
value |
|
) |
| |
|
inline |
◆ shiftl128()
static void openvpn::IPv6::Addr::shiftl128 |
( |
std::uint64_t & |
low, |
|
|
std::uint64_t & |
high, |
|
|
unsigned int |
shift |
|
) |
| |
|
inlinestaticprivate |
◆ shiftr128()
static void openvpn::IPv6::Addr::shiftr128 |
( |
std::uint64_t & |
low, |
|
|
std::uint64_t & |
high, |
|
|
unsigned int |
shift |
|
) |
| |
|
inlinestaticprivate |
◆ size()
static unsigned int openvpn::IPv6::Addr::size |
( |
| ) |
|
|
inlinestatic |
◆ specified()
bool openvpn::IPv6::Addr::specified |
( |
| ) |
const |
|
inline |
◆ sub()
◆ to_asio()
openvpn_io::ip::address_v6 openvpn::IPv6::Addr::to_asio |
( |
| ) |
const |
|
inline |
◆ to_byte_string()
void openvpn::IPv6::Addr::to_byte_string |
( |
unsigned char * |
bytestr | ) |
const |
|
inline |
◆ to_hex()
std::string openvpn::IPv6::Addr::to_hex |
( |
| ) |
const |
|
inline |
◆ to_in6_addr()
in6_addr openvpn::IPv6::Addr::to_in6_addr |
( |
| ) |
const |
|
inline |
◆ to_long()
long openvpn::IPv6::Addr::to_long |
( |
| ) |
const |
|
inline |
◆ to_sockaddr()
sockaddr_in6 openvpn::IPv6::Addr::to_sockaddr |
( |
const unsigned short |
port = 0 | ) |
const |
|
inline |
◆ to_string()
std::string openvpn::IPv6::Addr::to_string |
( |
| ) |
const |
|
inline |
◆ to_ulong()
unsigned long openvpn::IPv6::Addr::to_ulong |
( |
| ) |
const |
|
inline |
◆ unspecified()
bool openvpn::IPv6::Addr::unspecified |
( |
| ) |
const |
|
inline |
◆ v4_from_byte_string()
static std::uint32_t openvpn::IPv6::Addr::v4_from_byte_string |
( |
const unsigned char * |
bytestr | ) |
|
|
inlinestatic |
◆ v4_to_byte_string()
static void openvpn::IPv6::Addr::v4_to_byte_string |
( |
unsigned char * |
bytestr, |
|
|
const std::uint32_t |
v4addr |
|
) |
| |
|
inlinestatic |
◆ zero()
void openvpn::IPv6::Addr::zero |
( |
| ) |
|
|
inline |
◆ zero_complement()
void openvpn::IPv6::Addr::zero_complement |
( |
| ) |
|
|
inline |
◆ IP::Addr
◆ scope_id_
unsigned int openvpn::IPv6::Addr::scope_id_ = 0 |
|
private |
The documentation for this class was generated from the following file: