PcapPlusPlus  21.11
pcpp::BgpUpdateMessageLayer::prefix_and_ip Struct Reference

#include <BgpLayer.h>

Public Member Functions

 prefix_and_ip ()
 
 prefix_and_ip (uint8_t prefixVal, const std::string &ipAddrVal)
 

Public Attributes

uint8_t prefix
 
IPv4Address ipAddr
 

Detailed Description

A structure that contains IPv4 address and IP address mask (prefix) information. It's used to represent BGP Withdrawn Routes and Network Layer Reachability Information (NLRI)

Constructor & Destructor Documentation

◆ prefix_and_ip() [1/2]

pcpp::BgpUpdateMessageLayer::prefix_and_ip::prefix_and_ip ( )
inline

A default c'tor that zeroes all data

◆ prefix_and_ip() [2/2]

pcpp::BgpUpdateMessageLayer::prefix_and_ip::prefix_and_ip ( uint8_t  prefixVal,
const std::string &  ipAddrVal 
)
inline

A c'tor that initializes the values of the struct

Parameters
[in]prefixValIPv4 address mask value
[in]ipAddrValIPv4 address

Member Data Documentation

◆ ipAddr

IPv4Address pcpp::BgpUpdateMessageLayer::prefix_and_ip::ipAddr

IPv4 address

◆ prefix

uint8_t pcpp::BgpUpdateMessageLayer::prefix_and_ip::prefix

IPv4 address mask, must contain one of the values: 8, 16, 24, 32