ip_impl¶
Warning
doxygenfile: Cannot find file “eos/ip_impl.h
Type definitions in ip_impl¶
-
namespace
eos -
class
ip_addr_mask_impl_t¶ - #include <ip_impl.h>
An IP address with a subnet mask.
This allows for contiguous subnet masks only for IPv4 and IPv6 addresses.
IPv6 addresses in EOS only support contiguous masks, so for IPv6 addresses mask() provides the same value as mask_length().
Public Functions
-
ip_addr_mask_impl_t()¶
-
uint8_t
mask_length() const¶ Getter for ‘mask_length’: the bit mask length, e.g., 24.
-
uint32_be_t
mask() const¶ The bit mask itself, e.g., 0xFFFFFF00 (IPv4). For IPv6, same as mask_length().
-
bool
operator==(ip_addr_mask_impl_t const &other) const¶
-
bool
operator!=(ip_addr_mask_impl_t const &other) const¶
-
bool
operator<(ip_addr_mask_impl_t const &other) const¶
-
uint32_t
hash() const¶ The hash function for type ip_addr_mask_t.
-
void
mix_me(hash_mix &h) const¶ The hash mix function for type ip_addr_mask_t.
Friends
-
std::ostream &
operator<<(std::ostream &os, const ip_addr_mask_impl_t &obj)¶ A utility stream operator that adds a string representation of ip_addr_mask_t to the ostream.
-
-
class