Kea 2.7.5
isc::dhcp::Pkt6::RelayInfo Struct Reference

structure that describes a single relay information More...

#include <pkt6.h>

Public Member Functions

 RelayInfo ()
 default constructor
 
std::string toText () const
 Returns printable representation of the relay information.
 

Public Attributes

uint8_t hop_count_
 number of traversed relays (up to 32)
 
isc::asiolink::IOAddress linkaddr_
 fixed field in relay-forw/relay-reply
 
uint8_t msg_type_
 message type (RELAY-FORW oro RELAY-REPL)
 
isc::dhcp::OptionCollection options_
 options received from a specified relay, except relay-msg option
 
isc::asiolink::IOAddress peeraddr_
 fixed field in relay-forw/relay-reply
 
uint16_t relay_msg_len_
 length of the relay_msg_len Used when calculating length during pack/unpack
 

Detailed Description

structure that describes a single relay information

Client sends messages. Each relay along its way will encapsulate the message. This structure represents all information added by a single relay.

Definition at line 85 of file pkt6.h.

Constructor & Destructor Documentation

◆ RelayInfo()

isc::dhcp::Pkt6::RelayInfo::RelayInfo ( )

default constructor

Definition at line 35 of file pkt6.cc.

Member Function Documentation

◆ toText()

std::string isc::dhcp::Pkt6::RelayInfo::toText ( ) const

Returns printable representation of the relay information.

Returns
text representation of the structure (used in debug logging)

Definition at line 40 of file pkt6.cc.

References isc::dhcp::Pkt6::getName(), isc::dhcp::Pkt6::msg_type_, and isc::dhcp::Pkt::options_.

+ Here is the call graph for this function:

Member Data Documentation

◆ hop_count_

uint8_t isc::dhcp::Pkt6::RelayInfo::hop_count_

number of traversed relays (up to 32)

Definition at line 95 of file pkt6.h.

◆ linkaddr_

isc::asiolink::IOAddress isc::dhcp::Pkt6::RelayInfo::linkaddr_

fixed field in relay-forw/relay-reply

Definition at line 96 of file pkt6.h.

◆ msg_type_

uint8_t isc::dhcp::Pkt6::RelayInfo::msg_type_

message type (RELAY-FORW oro RELAY-REPL)

Definition at line 94 of file pkt6.h.

Referenced by isc::dhcp::Pkt6::copyRelayInfo(), isc::perfdhcp::TestControl::setDefaults6(), and isc::dhcp::Pkt6::unpackRelayMsg().

◆ options_

isc::dhcp::OptionCollection isc::dhcp::Pkt6::RelayInfo::options_

options received from a specified relay, except relay-msg option

Definition at line 104 of file pkt6.h.

◆ peeraddr_

isc::asiolink::IOAddress isc::dhcp::Pkt6::RelayInfo::peeraddr_

fixed field in relay-forw/relay-reply

Definition at line 97 of file pkt6.h.

◆ relay_msg_len_

uint16_t isc::dhcp::Pkt6::RelayInfo::relay_msg_len_

length of the relay_msg_len Used when calculating length during pack/unpack

Definition at line 101 of file pkt6.h.


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