Kea 3.3.1
isc::dhcp::ClientHandler::Client Struct Reference

Class (aka static) types, methods and members. More...

#include <client_handler.h>

Public Member Functions

 Client (Pkt4Ptr query, ClientIdPtr client_id, HWAddrPtr hwaddr)
 Constructor.
 Client (Pkt6Ptr query, DuidPtr client_id)
 Constructor.

Public Attributes

std::vector< uint8_t > client_id_
 Cached binary client ID.
ContinuationPtr cont_
 The continuation to process next query for the client.
std::vector< uint8_t > duid_
 Cached binary client ID.
uint16_t htype_
 Cached hardware type.
std::vector< uint8_t > hwaddr_
 Cached binary hardware address.
uint8_t msg_type_
 Cached message type.
Pkt4Ptr next_query_
 The next query.
Pkt6Ptr next_query_
 The next query.
bool relayed_
 Cached relayed flag.
std::thread::id thread_
 The ID of the thread processing the query.
uint32_t transid_
 Cached transaction ID.

Detailed Description

Class (aka static) types, methods and members.

Structure representing a client.

Definition at line 44 of file dhcp4/client_handler.h.

Constructor & Destructor Documentation

◆ Client() [1/2]

isc::dhcp::ClientHandler::Client::Client ( Pkt4Ptr query,
ClientIdPtr client_id,
HWAddrPtr hwaddr )

Constructor.

Parameters
queryThe query.
client_idThe client ID.
hwaddrThe hardware address.
Exceptions
ifthe query is null or client_id and hwaddr are null.

Definition at line 44 of file dhcp4/client_handler.cc.

References client_id_, if(), isc_throw, msg_type_, thread_, and transid_.

Here is the call graph for this function:

◆ Client() [2/2]

isc::dhcp::ClientHandler::Client::Client ( Pkt6Ptr query,
DuidPtr client_id )

Constructor.

Parameters
queryThe query.
client_idThe client ID.
Exceptions
ifthe query is null or has empty client ID.

Definition at line 41 of file dhcp6/client_handler.cc.

References duid_, isc_throw, msg_type_, relayed_, thread_, and transid_.

Member Data Documentation

◆ client_id_

std::vector<uint8_t> isc::dhcp::ClientHandler::Client::client_id_

Cached binary client ID.

Note
No longer keep the query, instead cache some properties.

Definition at line 57 of file dhcp4/client_handler.h.

Referenced by Client().

◆ cont_

ContinuationPtr isc::dhcp::ClientHandler::Client::cont_

The continuation to process next query for the client.

Note
This field can be modified from another handler holding the mutex.

Definition at line 84 of file dhcp4/client_handler.h.

◆ duid_

std::vector<uint8_t> isc::dhcp::ClientHandler::Client::duid_

Cached binary client ID.

Note
No longer keep the query, instead cache some properties.

Definition at line 55 of file dhcp6/client_handler.h.

Referenced by Client().

◆ htype_

uint16_t isc::dhcp::ClientHandler::Client::htype_

Cached hardware type.

Definition at line 60 of file dhcp4/client_handler.h.

◆ hwaddr_

std::vector<uint8_t> isc::dhcp::ClientHandler::Client::hwaddr_

Cached binary hardware address.

Definition at line 63 of file dhcp4/client_handler.h.

◆ msg_type_

uint8_t isc::dhcp::ClientHandler::Client::msg_type_

Cached message type.

Definition at line 66 of file dhcp4/client_handler.h.

Referenced by Client(), and Client().

◆ next_query_ [1/2]

Pkt4Ptr isc::dhcp::ClientHandler::Client::next_query_

The next query.

Note
This field can be modified from another handler holding the mutex.

Definition at line 78 of file dhcp4/client_handler.h.

◆ next_query_ [2/2]

Pkt6Ptr isc::dhcp::ClientHandler::Client::next_query_

The next query.

Note
This field can be modified from another handler holding the mutex.

Definition at line 73 of file dhcp6/client_handler.h.

◆ relayed_

bool isc::dhcp::ClientHandler::Client::relayed_

Cached relayed flag.

Definition at line 64 of file dhcp6/client_handler.h.

Referenced by Client().

◆ thread_

std::thread::id isc::dhcp::ClientHandler::Client::thread_

The ID of the thread processing the query.

Definition at line 72 of file dhcp4/client_handler.h.

Referenced by Client(), and Client().

◆ transid_

uint32_t isc::dhcp::ClientHandler::Client::transid_

Cached transaction ID.

Definition at line 69 of file dhcp4/client_handler.h.

Referenced by Client(), and Client().


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