libbgp
0.6
A C++ BGP Library.
|
IPv4 Route/Prefix related utilities. More...
Go to the source code of this file.
Functions | |
uint32_t | libbgp::cidr_to_mask (uint8_t cidr) |
Convert netmask in CIDR notation to network bytes integer. More... | |
Variables | |
const uint32_t | libbgp::CIDR_MASK_MAP [33] |
IPv4 Route/Prefix related utilities.
Definition in file prefix4.cc.
uint32_t libbgp::cidr_to_mask | ( | uint8_t | cidr | ) |
Convert netmask in CIDR notation to network bytes integer.
cidr | The netmask in CIDR notation. |
bad_route_length | Netmask invalid. |
Definition at line 33 of file prefix4.cc.
References libbgp::cidr_to_mask().
Referenced by libbgp::cidr_to_mask().
const uint32_t libbgp::CIDR_MASK_MAP[33] |
Definition at line 17 of file prefix4.cc.