PcapPlusPlus  Next
pcpp::BgpOpenMessageLayer::optional_parameter Struct Reference

#include <BgpLayer.h>

Public Member Functions

 optional_parameter ()=default
 A default c'tor that zeroes all data.
 
 optional_parameter (uint8_t typeVal, const std::string &valueAsHexString)
 

Public Attributes

uint8_t type = 0
 Parameter type.
 
uint8_t length = 0
 Parameter length.
 
uint8_t value [32] = {}
 Parameter data.
 

Detailed Description

A structure that represents BGP OPEN message optional parameters

Constructor & Destructor Documentation

◆ optional_parameter()

pcpp::BgpOpenMessageLayer::optional_parameter::optional_parameter ( uint8_t  typeVal,
const std::string &  valueAsHexString 
)

A c'tor that initializes the values of the struct

Parameters
[in]typeValParameter type value
[in]valueAsHexStringParameter data as hex string. The 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 zero