PcapPlusPlus  Next
pcpp::BgpUpdateMessageLayer::path_attribute Struct Reference

#include <BgpLayer.h>

Public Member Functions

 path_attribute ()
 A default c'tor that zeroes all data.
 
 path_attribute (uint8_t flagsVal, uint8_t typeVal, const std::string &dataAsHexString)
 

Public Attributes

uint8_t flags
 Path attribute flags.
 
uint8_t type
 Path attribute type.
 
uint8_t length
 Path attribute length.
 
uint8_t data [32]
 Path attribute data. Max supported data length is 32 bytes.
 

Detailed Description

A structure that represents BGP OPEN message Path Attributes information

Constructor & Destructor Documentation

◆ path_attribute()

pcpp::BgpUpdateMessageLayer::path_attribute::path_attribute ( uint8_t  flagsVal,
uint8_t  typeVal,
const 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