Kea 3.3.1
isc::dhcp::TokenLeaseIA_PDSuboption Class Reference

Filter the IA_PD (25) option containing the OPTION_IAPREFIX (25) option matching the respective lease. More...

Inheritance diagram for isc::dhcp::TokenLeaseIA_PDSuboption:

Public Member Functions

 TokenLeaseIA_PDSuboption (const Lease6Ptr &lease, const RepresentationType &rep_type)
 Constructor.
unsigned evaluate (Pkt &pkt, ValueStack &values)
 Evaluate the expression using the TokenOption implementation.
virtual OptionPtr getOption (Pkt &pkt)
 Get the IA_PD (25) option containing the OPTION_IAPREFIX (25) option matching the respective lease.
Public Member Functions inherited from isc::dhcp::TokenLeaseIA_PD
 TokenLeaseIA_PD (const Lease6Ptr &lease, const RepresentationType &rep_type)
 Constructor.
Public Member Functions inherited from isc::dhcp::TokenOption
 TokenOption (const std::vector< uint16_t > &option_codes, const RepresentationType &rep_type)
 Constructor that takes an option code as a parameter.
std::vector< uint16_t > getOptions () const
 Returns option-code.
RepresentationType getRepresentation () const
 Returns representation-type.
Public Member Functions inherited from isc::dhcp::Token
virtual ~Token ()
 Virtual destructor.
virtual unsigned getLabel () const
 Return the label of this token.

Additional Inherited Members

Public Types inherited from isc::dhcp::TokenOption
enum  RepresentationType { TEXTUAL , HEXADECIMAL , EXISTS }
 Token representation type. More...
Static Public Member Functions inherited from isc::dhcp::Token
static bool toBool (std::string value)
 Coverts a (string) value to a boolean.
Protected Member Functions inherited from isc::dhcp::TokenOption
virtual std::string pushFailure (ValueStack &values)
 Auxiliary method that puts string representing a failure.
Protected Attributes inherited from isc::dhcp::TokenOption
std::vector< uint16_t > option_path_
 The options hierarchy.
RepresentationType representation_type_
 The representation type.

Detailed Description

Filter the IA_PD (25) option containing the OPTION_IAPREFIX (25) option matching the respective lease.

Used when filtering sub-options.

Definition at line 324 of file lease6_callouts.cc.

Constructor & Destructor Documentation

◆ TokenLeaseIA_PDSuboption()

isc::dhcp::TokenLeaseIA_PDSuboption::TokenLeaseIA_PDSuboption ( const Lease6Ptr & lease,
const RepresentationType & rep_type )
inline

Constructor.

Parameters
leaseThe lease used to match any OPTION_IAPREFIX option in the IA_PD packet options.
rep_typeToken representation type.

Definition at line 331 of file lease6_callouts.cc.

References D6O_IA_PD, and D6O_IAPREFIX.

Member Function Documentation

◆ evaluate()

unsigned isc::dhcp::TokenLeaseIA_PDSuboption::evaluate ( Pkt & pkt,
ValueStack & values )
inlinevirtual

Evaluate the expression using the TokenOption implementation.

Parameters
pktspecified parent option will be extracted from this packet
valuesvalue of the sub-option will be pushed here (or "")
Returns
0 which means evaluate next token if any.

Reimplemented from isc::dhcp::TokenOption.

Definition at line 357 of file lease6_callouts.cc.

References isc::dhcp::TokenOption::evaluate().

Here is the call graph for this function:

◆ getOption()

virtual OptionPtr isc::dhcp::TokenLeaseIA_PDSuboption::getOption ( Pkt & pkt)
inlinevirtual

Get the IA_PD (25) option containing the OPTION_IAPREFIX (25) option matching the respective lease.

Parameters
pktThe packet containing options.
Returns
A copy of the IA_PD option containing only one OPTION_IAPREFIX option (but all other options of different type) matching the respective lease or null if none exists.

Reimplemented from isc::dhcp::TokenLeaseIA_PD.

Definition at line 343 of file lease6_callouts.cc.

References D6O_IAPREFIX, and isc::dhcp::TokenLeaseIA_PD::getOption().

Here is the call graph for this function:

The documentation for this class was generated from the following file: