Kea 2.7.6
|
Structure representing delegated prefix range. More...
#include <ip_range.h>
Public Member Functions | |
PrefixRange (const asiolink::IOAddress &prefix, const uint8_t length, const uint8_t delegated) | |
Constructor. | |
PrefixRange (const asiolink::IOAddress &start, const asiolink::IOAddress &end, const uint8_t delegated) | |
Constructor. | |
Public Attributes | |
uint8_t | delegated_length_ |
Delegated prefix length. | |
asiolink::IOAddress | end_ |
IP address denoting the first address within the last prefix in the prefix range. | |
uint8_t | prefix_length_ |
Prefix length. | |
asiolink::IOAddress | start_ |
IP address denoting the start of the prefix range. | |
Structure representing delegated prefix range.
Definition at line 32 of file ip_range.h.
isc::dhcp::PrefixRange::PrefixRange | ( | const asiolink::IOAddress & | prefix, |
const uint8_t | length, | ||
const uint8_t | delegated ) |
Constructor.
prefix | prefix from which prefixes are delegated. |
length | length of the prefix from which prefixes are delegated. |
delegated | delegated prefix length. |
BadValue | if the values provided to the constructor are invalid, e.g. it is not IPv6 prefix, delegated length is lower than prefix length etc. |
Definition at line 31 of file ip_range.cc.
References delegated_length_, end_, if(), isc_throw, isc::asiolink::IOAddress::isV6(), isc::asiolink::lastAddrInPrefix(), prefix_length_, and start_.
isc::dhcp::PrefixRange::PrefixRange | ( | const asiolink::IOAddress & | start, |
const asiolink::IOAddress & | end, | ||
const uint8_t | delegated ) |
Constructor.
start | beginning of the prefix range. |
end | end of the prefix range. |
delegated | delegated prefix length. |
BadValue | if the values provided to the constructor are invalid, e.g. it is not IPv6 prefix. |
Definition at line 51 of file ip_range.cc.
References delegated_length_, end_, if(), isc_throw, isc::asiolink::IOAddress::isV6(), prefix_length_, and start_.
uint8_t isc::dhcp::PrefixRange::delegated_length_ |
Delegated prefix length.
Definition at line 41 of file ip_range.h.
Referenced by PrefixRange(), and PrefixRange().
asiolink::IOAddress isc::dhcp::PrefixRange::end_ |
IP address denoting the first address within the last prefix in the prefix range.
Definition at line 37 of file ip_range.h.
Referenced by PrefixRange(), and PrefixRange().
uint8_t isc::dhcp::PrefixRange::prefix_length_ |
Prefix length.
Definition at line 39 of file ip_range.h.
Referenced by PrefixRange(), and PrefixRange().
asiolink::IOAddress isc::dhcp::PrefixRange::start_ |
IP address denoting the start of the prefix range.
Definition at line 34 of file ip_range.h.
Referenced by PrefixRange(), and PrefixRange().