Kea 3.1.1
isc::dhcp::TokenLeaseIA_NASuboption Class Reference

Filter the IA_NA (3) option containing the OPTION_IAADDR (5) option matching the respective lease. More...

+ Inheritance diagram for isc::dhcp::TokenLeaseIA_NASuboption:

Public Member Functions

 TokenLeaseIA_NASuboption (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_NA (3) option containing the OPTION_IAADDR (5) option matching the respective lease.
 
- Public Member Functions inherited from isc::dhcp::TokenLeaseIA_NA
 TokenLeaseIA_NA (const Lease6Ptr &lease, const RepresentationType &rep_type)
 Constructor.
 
- Public Member Functions inherited from isc::dhcp::TokenOption
 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.
 
- Public Member Functions inherited from isc::dhcp::Token
virtual ~Token ()
 Virtual destructor.
 
virtual unsigned getLabel () const
 Return the label of this token.
 
- Public Member Functions inherited from isc::dhcp::TokenSubOption
 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

- 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 Member Functions inherited from isc::dhcp::TokenSubOption
virtual OptionPtr getSubOption (const OptionPtr &parent)
 Attempts to retrieve a sub-option.
 
- Protected Attributes inherited from isc::dhcp::TokenOption
uint16_t option_code_
 Code of the option to be extracted.
 
RepresentationType representation_type_
 Representation type.
 
- Protected Attributes inherited from isc::dhcp::TokenSubOption
uint16_t sub_option_code_
 Code of the sub-option to be extracted.
 

Detailed Description

Filter the IA_NA (3) option containing the OPTION_IAADDR (5) option matching the respective lease.

Used when filtering sub-options.

Definition at line 170 of file lease6_callouts.cc.

Constructor & Destructor Documentation

◆ TokenLeaseIA_NASuboption()

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

Constructor.

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

Definition at line 177 of file lease6_callouts.cc.

References isc::dhcp::TokenLeaseIA_NA::TokenLeaseIA_NA(), isc::dhcp::TokenSubOption::TokenSubOption(), D6O_IA_NA, and D6O_IAADDR.

+ Here is the call graph for this function:

Member Function Documentation

◆ evaluate()

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

Evaluate the expression using the TokenSubOption 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 199 of file lease6_callouts.cc.

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

+ Here is the call graph for this function:

◆ getOption()

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

Get the IA_NA (3) option containing the OPTION_IAADDR (5) option matching the respective lease.

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

Reimplemented from isc::dhcp::TokenLeaseIA_NA.

Definition at line 189 of file lease6_callouts.cc.

References isc::dhcp::TokenLeaseIA_NA::getOption().

+ Here is the call graph for this function:

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