![]() |
Kea 3.1.1
|
Filter the IA_PD (25) option containing the OPTION_IAPREFIX (25) option matching the respective lease. More...
Public Member Functions | |
TokenLeaseIA_PDSuboption (const Lease6Ptr &lease, const RepresentationType &rep_type) | |
Constructor. | |
unsigned | evaluate (Pkt &pkt, ValueStack &values) |
Evaluate the expression using the TokenSubOption implementation. | |
virtual OptionPtr | getOption (Pkt &pkt) |
Get the IA_PD (25) option containing the OPTION_IAPREFIX (25) option matching the respective lease. | |
![]() | |
TokenLeaseIA_PD (const Lease6Ptr &lease, const RepresentationType &rep_type) | |
Constructor. | |
![]() | |
TokenOption (const uint16_t option_code, const RepresentationType &rep_type) | |
Constructor that takes an option code as a parameter. | |
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. | |
![]() | |
TokenSubOption (const uint16_t option_code, const uint16_t sub_option_code, const RepresentationType &rep_type) | |
Constructor that takes an option and sub-option codes as parameter. | |
uint16_t | getSubCode () const |
Returns sub-option-code. | |
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. | |
![]() | |
virtual OptionPtr | getSubOption (const OptionPtr &parent) |
Attempts to retrieve a sub-option. | |
![]() | |
uint16_t | option_code_ |
Code of the option to be extracted. | |
RepresentationType | representation_type_ |
Representation type. | |
![]() | |
uint16_t | sub_option_code_ |
Code of the sub-option to be extracted. | |
Filter the IA_PD (25) option containing the OPTION_IAPREFIX (25) option matching the respective lease.
Used when filtering sub-options.
Definition at line 319 of file lease6_callouts.cc.
|
inline |
Constructor.
lease | The lease used to match any OPTION_IAPREFIX option in the IA_PD packet options. |
rep_type | Token representation type. |
Definition at line 326 of file lease6_callouts.cc.
References isc::dhcp::TokenLeaseIA_PD::TokenLeaseIA_PD(), isc::dhcp::TokenSubOption::TokenSubOption(), D6O_IA_PD, and D6O_IAPREFIX.
|
inlinevirtual |
Evaluate the expression using the TokenSubOption implementation.
pkt | specified parent option will be extracted from this packet |
values | value of the sub-option will be pushed here (or "") |
Reimplemented from isc::dhcp::TokenOption.
Definition at line 348 of file lease6_callouts.cc.
References isc::dhcp::TokenSubOption::evaluate().
Get the IA_PD (25) option containing the OPTION_IAPREFIX (25) option matching the respective lease.
pkt | The packet containing options. |
Reimplemented from isc::dhcp::TokenLeaseIA_PD.
Definition at line 338 of file lease6_callouts.cc.
References isc::dhcp::TokenLeaseIA_PD::getOption().