Kea  1.5.0
isc::dhcp::AllocEngine::ClientContext6::IAContext Struct Reference

Parameters pertaining to individual IAs. More...

#include <alloc_engine.h>

Public Member Functions

 IAContext ()
 Default constructor. More...
 
void addHint (const asiolink::IOAddress &prefix, const uint8_t prefix_len=128)
 Convenience method adding new hint. More...
 

Public Attributes

Lease6Collection changed_leases_
 A pointer to any leases that have changed FQDN information. More...
 
HintContainer hints_
 client's hints More...
 
Option6IAPtr ia_rsp_
 A pointer to the IA_NA/IA_PD option to be sent in response. More...
 
uint32_t iaid_
 iaid IAID field from IA_NA or IA_PD that is being processed More...
 
Lease6Collection old_leases_
 A pointer to any old leases that the client had before update but are no longer valid after the update/allocation. More...
 
Lease::Type type_
 Lease type (IA or PD) More...
 

Detailed Description

Parameters pertaining to individual IAs.

Definition at line 386 of file alloc_engine.h.

Constructor & Destructor Documentation

◆ IAContext()

isc::dhcp::AllocEngine::ClientContext6::IAContext::IAContext ( )

Default constructor.

Initializes type_ to Lease::TYPE_NA and iaid_ to 0.

Definition at line 455 of file alloc_engine.cc.

Member Function Documentation

◆ addHint()

void isc::dhcp::AllocEngine::ClientContext6::IAContext::addHint ( const asiolink::IOAddress prefix,
const uint8_t  prefix_len = 128 
)

Convenience method adding new hint.

Parameters
prefixPrefix or address.
prefix_lenPrefix length. Default is 128 for addresses.

Definition at line 461 of file alloc_engine.cc.

Referenced by isc::dhcp::Dhcpv6Srv::assignIA_NA(), isc::dhcp::Dhcpv6Srv::assignIA_PD(), isc::dhcp::Dhcpv6Srv::extendIA_NA(), and isc::dhcp::Dhcpv6Srv::extendIA_PD().

Member Data Documentation

◆ changed_leases_

Lease6Collection isc::dhcp::AllocEngine::ClientContext6::IAContext::changed_leases_

A pointer to any leases that have changed FQDN information.

This list may contain old versions of the leases that are still valid. In particular, it will contain a lease if the client's FQDN has changed.

Definition at line 416 of file alloc_engine.h.

Referenced by isc::dhcp::Dhcpv6Srv::createNameChangeRequests().

◆ hints_

HintContainer isc::dhcp::AllocEngine::ClientContext6::IAContext::hints_

client's hints

There will typically be just one address, but the protocol allows more than one address or prefix for each IA container.

Definition at line 399 of file alloc_engine.h.

Referenced by isc::dhcp::Dhcpv6Srv::extendIA_NA(), and isc::dhcp::Dhcpv6Srv::extendIA_PD().

◆ ia_rsp_

Option6IAPtr isc::dhcp::AllocEngine::ClientContext6::IAContext::ia_rsp_

A pointer to the IA_NA/IA_PD option to be sent in response.

Definition at line 420 of file alloc_engine.h.

Referenced by isc::dhcp::Dhcpv6Srv::extendIA_NA(), and isc::dhcp::Dhcpv6Srv::extendIA_PD().

◆ iaid_

uint32_t isc::dhcp::AllocEngine::ClientContext6::IAContext::iaid_

◆ old_leases_

Lease6Collection isc::dhcp::AllocEngine::ClientContext6::IAContext::old_leases_

A pointer to any old leases that the client had before update but are no longer valid after the update/allocation.

This collection is typically empty, except cases when we are doing address reassignment, e.g. because there is a host reservation that gives this address to someone else, so we had to return the address, and give a new one to this client.

Definition at line 408 of file alloc_engine.h.

Referenced by isc::dhcp::Dhcpv6Srv::extendIA_NA(), isc::dhcp::Dhcpv6Srv::extendIA_PD(), and isc::dhcp::Dhcpv6Srv::releaseLeases().

◆ type_


The documentation for this struct was generated from the following files: