Kea  2.1.7-git
isc::dhcp::Pkt6::RelayInfo Struct Reference

structure that describes a single relay information More...

#include <pkt6.h>

Public Member Functions

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

Public Attributes

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

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(), hop_count_, linkaddr_, msg_type_, options_, peeraddr_, and isc::asiolink::IOAddress::toText().

Referenced by isc::dhcp::Pkt6::setProto().

+ 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.

Referenced by isc::dhcp::Pkt6::copyRelayInfo(), toText(), and isc::dhcp::Pkt6::unpackRelayMsg().

◆ linkaddr_

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

◆ 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::dhcp::Pkt6::getType(), isc::dhcp::Pkt6::setType(), toText(), 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.

Referenced by isc::dhcp::Pkt6::copyRelayInfo(), isc::dhcp::Pkt6::getRelayOverhead(), toText(), and isc::dhcp::Pkt6::unpackRelayMsg().

◆ peeraddr_

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

fixed field in relay-forw/relay-reply

Definition at line 97 of file pkt6.h.

Referenced by isc::dhcp::Pkt6::copyRelayInfo(), toText(), and isc::dhcp::Pkt6::unpackRelayMsg().

◆ 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: