![]() |
Kea 3.1.1
|
Filter the IA_NA (3) option containing the OPTION_IAADDR (5) option matching the respective lease. More...
Public Member Functions | |
TokenLeaseIA_NA (const Lease6Ptr &lease, const RepresentationType &rep_type) | |
Constructor. | |
virtual OptionPtr | getOption (Pkt &pkt) |
Get the IA_NA (3) option containing the OPTION_IAADDR (5) option matching the respective lease. | |
![]() | |
TokenOption (const uint16_t option_code, const RepresentationType &rep_type) | |
Constructor that takes an option code as a parameter. | |
virtual unsigned | evaluate (Pkt &pkt, ValueStack &values) |
Evaluates the values of the option. | |
uint16_t | getCode () const |
Returns option-code. | |
RepresentationType | getRepresentation () const |
Returns representation-type. | |
![]() | |
virtual | ~Token () |
Virtual destructor. | |
virtual unsigned | getLabel () const |
Return the label of this token. | |
Additional Inherited Members | |
![]() | |
enum | RepresentationType { TEXTUAL , HEXADECIMAL , EXISTS } |
Token representation type. More... | |
![]() | |
static bool | toBool (std::string value) |
Coverts a (string) value to a boolean. | |
![]() | |
virtual std::string | pushFailure (ValueStack &values) |
Auxiliary method that puts string representing a failure. | |
![]() | |
uint16_t | option_code_ |
Code of the option to be extracted. | |
RepresentationType | representation_type_ |
Representation type. | |
Filter the IA_NA (3) option containing the OPTION_IAADDR (5) option matching the respective lease.
Used when filtering options.
Definition at line 88 of file lease6_callouts.cc.
|
inline |
Constructor.
lease | The lease used to match any OPTION_IAADDR option in the IA_NA packet options. |
rep_type | Token representation type. |
Definition at line 95 of file lease6_callouts.cc.
References isc::dhcp::TokenOption::TokenOption(), D6O_IA_NA, and isc::dhcp::Lease::TYPE_NA.
Referenced by isc::dhcp::TokenLeaseIA_NASuboption::TokenLeaseIA_NASuboption().
Get the IA_NA (3) option containing the OPTION_IAADDR (5) option matching the respective lease.
pkt | The packet containing options. |
Reimplemented from isc::dhcp::TokenOption.
Reimplemented in isc::dhcp::TokenLeaseIA_NASuboption.
Definition at line 109 of file lease6_callouts.cc.
References D6O_IA_NA, D6O_IAADDR, D6O_IAPREFIX, and isc::dhcp::Pkt::getOptions().
Referenced by isc::dhcp::TokenLeaseIA_NASuboption::getOption().