Kea  2.1.7-git
isc::dhcp::PrefixRange Struct Reference

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. More...
 
 PrefixRange (const asiolink::IOAddress &start, const asiolink::IOAddress &end, const uint8_t delegated)
 Constructor. More...
 

Public Attributes

uint8_t delegated_length_
 Delegated prefix length. More...
 
asiolink::IOAddress end_
 IP address denoting the first address within the last prefix in the prefix range. More...
 
uint8_t prefix_length_
 Prefix length. More...
 
asiolink::IOAddress start_
 IP address denoting the start of the prefix range. More...
 

Detailed Description

Structure representing delegated prefix range.

Definition at line 32 of file ip_range.h.

Constructor & Destructor Documentation

◆ PrefixRange() [1/2]

isc::dhcp::PrefixRange::PrefixRange ( const asiolink::IOAddress prefix,
const uint8_t  length,
const uint8_t  delegated 
)

Constructor.

Parameters
prefixprefix from which prefixes are delegated.
lengthlength of the prefix from which prefixes are delegated.
delegateddelegated prefix length.
Exceptions
BadValueif 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_, isc_throw, isc::asiolink::IOAddress::isV6(), isc::asiolink::offsetAddress(), prefix_length_, isc::asiolink::prefixesInRange(), and start_.

+ Here is the call graph for this function:

◆ PrefixRange() [2/2]

isc::dhcp::PrefixRange::PrefixRange ( const asiolink::IOAddress start,
const asiolink::IOAddress end,
const uint8_t  delegated 
)

Constructor.

Parameters
startbeginning of the prefix range.
endend of the prefix range.
delegateddelegated prefix length.
Exceptions
BadValueif the values provided to the constructor are invalid, e.g. it is not IPv6 prefix.

Definition at line 53 of file ip_range.cc.

References delegated_length_, end_, isc_throw, isc::asiolink::IOAddress::isV6(), and start_.

+ Here is the call graph for this function:

Member Data Documentation

◆ delegated_length_

uint8_t isc::dhcp::PrefixRange::delegated_length_

Delegated prefix length.

Definition at line 41 of file ip_range.h.

Referenced by isc::dhcp::FreeLeaseQueue::addRange(), PrefixRange(), and isc::dhcp::FreeLeaseQueue::use().

◆ end_

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 isc::dhcp::FreeLeaseQueue::addRange(), and PrefixRange().

◆ prefix_length_

uint8_t isc::dhcp::PrefixRange::prefix_length_

Prefix length.

Definition at line 39 of file ip_range.h.

Referenced by PrefixRange().

◆ start_

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 isc::dhcp::FreeLeaseQueue::addRange(), PrefixRange(), and isc::dhcp::FreeLeaseQueue::use().


The documentation for this struct was generated from the following files: