PcapPlusPlus  20.08+
pcpp::BgpUpdateMessageLayer::path_attribute Struct Reference

#include <BgpLayer.h>

Public Member Functions

 path_attribute ()
 
 path_attribute (uint8_t flagsVal, uint8_t typeVal, std::string dataAsHexString)
 

Public Attributes

uint8_t flags
 
uint8_t type
 
uint8_t length
 
uint8_t data [32]
 

Detailed Description

A structure that represents BGP OPEN message Path Attributes information

Constructor & Destructor Documentation

◆ path_attribute() [1/2]

pcpp::BgpUpdateMessageLayer::path_attribute::path_attribute ( )
inline

A default c'tor that zeroes all data

◆ path_attribute() [2/2]

pcpp::BgpUpdateMessageLayer::path_attribute::path_attribute ( uint8_t  flagsVal,
uint8_t  typeVal,
std::string  dataAsHexString 
)

A c'tor that initializes the values of the struct

Parameters
[in]flagsValPath attribute flags value
[in]typeValPath attribute type value
[in]dataAsHexStringPath attribute data as hex string. The path_attribute::length field will be set accordingly. If this parameter is not a valid hex string the data will remain zeroed and length will be also set to zero

Member Data Documentation

◆ data

uint8_t pcpp::BgpUpdateMessageLayer::path_attribute::data[32]

Path attribute data. Max supported data length is 32 bytes

◆ flags

uint8_t pcpp::BgpUpdateMessageLayer::path_attribute::flags

Path attribute flags

◆ length

uint8_t pcpp::BgpUpdateMessageLayer::path_attribute::length

Path attribute length

◆ type

uint8_t pcpp::BgpUpdateMessageLayer::path_attribute::type

Path attribute type