Kea 2.7.6
|
Encapsulates prefix length. More...
#include <option_data_types.h>
Public Member Functions | |
PrefixLen () | |
Default constructor. | |
PrefixLen (const uint8_t prefix_len) | |
Constructor. | |
uint8_t | asUint8 () const |
Returns prefix length as uint8_t value. | |
unsigned int | asUnsigned () const |
Returns prefix length as unsigned int. | |
Encapsulates prefix length.
Definition at line 280 of file option_data_types.h.
|
inline |
Default constructor.
Definition at line 284 of file option_data_types.h.
|
inlineexplicit |
Constructor.
This constructor checks if the specified prefix length is in the range of 0 to 128.
prefix_len | Prefix length value. |
isc::OutOfRange | If specified prefix length is greater than 128. |
Definition at line 293 of file option_data_types.h.
|
inline |
Returns prefix length as uint8_t value.
Definition at line 298 of file option_data_types.h.
Referenced by isc::dhcp::OptionDataTypeUtil::readPrefix(), and isc::dhcp::OptionDataTypeUtil::writePrefix().
|
inline |
Returns prefix length as unsigned int.
This is useful to convert the value to a numeric type which can be logged directly. See PSIDLen::asUnsigned for the use cases of this accessor.
Definition at line 307 of file option_data_types.h.
Referenced by isc::dhcp::OptionDataTypeUtil::readPrefix().