llarp::net::detail
Functions
| Name | |
|---|---|
| constexpr huint128_t | ExpandV4(huint32_t x) |
| constexpr huint128_t | ExpandV4Lan(huint32_t x) |
| constexpr huint32_t | TruncateV6(huint128_t x) |
| constexpr huint128_t | _netmask_ipv6_bits(uint32_t numset) get a netmask with the higest numset bits set |
| constexpr huint128_t | netmask_ipv6_bits(uint32_t numset) |
| constexpr uint32_t | _netmask_ipv4_bits(uint32_t numset) get a netmask with the higest numset bits set |
| constexpr huint32_t | netmask_ipv4_bits(uint32_t num) get a netmask given some /N range |
| constexpr huint32_t | ipaddr_ipv4_bits(uint32_t a, uint32_t b, uint32_t c, uint32_t d) |
Functions Documentation
function ExpandV4
constexpr huint128_t ExpandV4(
huint32_t x
)
function ExpandV4Lan
constexpr huint128_t ExpandV4Lan(
huint32_t x
)
function TruncateV6
constexpr huint32_t TruncateV6(
huint128_t x
)
function _netmask_ipv6_bits
constexpr huint128_t _netmask_ipv6_bits(
uint32_t numset
)
get a netmask with the higest numset bits set
function netmask_ipv6_bits
constexpr huint128_t netmask_ipv6_bits(
uint32_t numset
)
function _netmask_ipv4_bits
constexpr uint32_t _netmask_ipv4_bits(
uint32_t numset
)
get a netmask with the higest numset bits set
function netmask_ipv4_bits
constexpr huint32_t netmask_ipv4_bits(
uint32_t num
)
get a netmask given some /N range
function ipaddr_ipv4_bits
constexpr huint32_t ipaddr_ipv4_bits(
uint32_t a,
uint32_t b,
uint32_t c,
uint32_t d
)
Updated on 2026-01-10 at 22:49:45 +0000