libbgp
0.6
A C++ BGP Library.
|
IPv6 Route/Prefix related utilities. More...
Go to the source code of this file.
Classes | |
class | libbgp::Prefix6 |
IPv6 Route/Prefix related utilities. More... | |
Functions | |
bool | libbgp::cidr_to_mask6 (uint8_t src, uint8_t dst[16]) |
Convert IPv6 mask in CIDR notation to bytes array. More... | |
bool | libbgp::mask_ipv6 (const uint8_t prefix[16], uint8_t mask, uint8_t masked_addr[16]) |
Mask a IPv6 address with given netmask. More... | |
bool | libbgp::v6addr_is_zero (const uint8_t prefix[16]) |
Test if a IPv6 addresss is all zero. More... | |
IPv6 Route/Prefix related utilities.
Definition in file prefix6.h.
bool libbgp::cidr_to_mask6 | ( | uint8_t | src, |
uint8_t | dst[16] | ||
) |
Convert IPv6 mask in CIDR notation to bytes array.
src | IPv6 mask in CIDR notation. |
dst | Bytes array to write to. |
Definition at line 158 of file prefix6.cc.
References libbgp::cidr_to_mask6().
Referenced by libbgp::cidr_to_mask6(), and libbgp::Prefix6::getMask().
bool libbgp::mask_ipv6 | ( | const uint8_t | prefix[16], |
uint8_t | mask, | ||
uint8_t | masked_addr[16] | ||
) |
Mask a IPv6 address with given netmask.
prefix | Prefix to mask. |
mask | IPv6 mask in CIDR notation. |
masked_addr | Bytes array to store masked address. |
Definition at line 173 of file prefix6.cc.
References libbgp::mask_ipv6().
Referenced by libbgp::Prefix6::Includes(), and libbgp::mask_ipv6().
bool libbgp::v6addr_is_zero | ( | const uint8_t | prefix[16] | ) |
Test if a IPv6 addresss is all zero.
prefix | The prefix to test. |
Definition at line 195 of file prefix6.cc.
References libbgp::v6addr_is_zero().
Referenced by libbgp::BgpPathAttribMpReachNlriIpv6::length(), and libbgp::v6addr_is_zero().