PcapPlusPlus
22.11
|
#include <StpLayer.h>
Public Member Functions | |
StpConfigurationBPDULayer (uint8_t *data, size_t dataLen, Layer *prevLayer, Packet *packet) | |
stp_conf_bpdu * | getStpConfHeader () const |
uint8_t | getFlag () const |
uint64_t | getRootId () const |
uint16_t | getRootPriority () const |
uint16_t | getRootSystemIDExtension () const |
pcpp::MacAddress | getRootSystemID () const |
uint32_t | getPathCost () const |
uint64_t | getBridgeId () const |
uint16_t | getBridgePriority () const |
uint16_t | getBridgeSystemIDExtension () const |
pcpp::MacAddress | getBridgeSystemID () const |
uint16_t | getPortId () const |
double | getMessageAge () const |
double | getMaximumAge () const |
double | getTransmissionInterval () const |
double | getForwardDelay () const |
std::string | toString () const |
Public Member Functions inherited from pcpp::StpTopologyChangeBPDULayer | |
StpTopologyChangeBPDULayer (uint8_t *data, size_t dataLen, Layer *prevLayer, Packet *packet) | |
stp_tcn_bpdu * | getStpTcnHeader () |
Public Member Functions inherited from pcpp::StpLayer | |
stp_header * | getStpHeader () const |
uint16_t | getProtoId () const |
uint8_t | getVersion () const |
uint8_t | getType () const |
size_t | getHeaderLen () const |
void | parseNextLayer () |
Parses the next layer. STP is the always last so does nothing for this layer. | |
void | computeCalculateFields () |
Does nothing for this layer. | |
OsiModelLayer | getOsiModelLayer () const |
Public Member Functions inherited from pcpp::Layer | |
virtual | ~Layer () |
Layer * | getNextLayer () const |
Layer * | getPrevLayer () const |
ProtocolType | getProtocol () const |
uint8_t * | getData () const |
size_t | getDataLen () const |
uint8_t * | getLayerPayload () const |
size_t | getLayerPayloadSize () const |
bool | isAllocatedToPacket () const |
void | copyData (uint8_t *toArr) const |
uint8_t * | getDataPtr (size_t offset=0) const |
Static Public Member Functions | |
static bool | isDataValid (const uint8_t *data, size_t dataLen) |
Static Public Member Functions inherited from pcpp::StpTopologyChangeBPDULayer | |
static bool | isDataValid (const uint8_t *data, size_t dataLen) |
Static Public Member Functions inherited from pcpp::StpLayer | |
static bool | isDataValid (const uint8_t *data, size_t dataLen) |
static StpLayer * | parseStpLayer (uint8_t *data, size_t dataLen, Layer *prevLayer, Packet *packet) |
Additional Inherited Members | |
Static Public Attributes inherited from pcpp::StpLayer | |
static pcpp::MacAddress | StpMulticastDstMAC |
STP protocol uses "01:80:C2:00:00:00" multicast address as destination MAC. | |
static pcpp::MacAddress | StpUplinkFastMulticastDstMAC |
STP Uplink Fast protocol uses "01:00:0C:CD:CD:CD" as destination MAC. | |
Represents configuration BPDU message of Spanning Tree Protocol
|
inline |
A constructor that creates the layer from an existing packet raw data
[in] | data | A pointer to the raw data |
[in] | dataLen | Size of the data in bytes |
[in] | prevLayer | A pointer to the previous layer |
[in] | packet | A pointer to the Packet instance where layer will be stored in |
uint64_t pcpp::StpConfigurationBPDULayer::getBridgeId | ( | ) | const |
Returns the bridge identifier
uint16_t pcpp::StpConfigurationBPDULayer::getBridgePriority | ( | ) | const |
Returns the priority of bridge
|
inline |
Returns the system identifier of bridge
uint16_t pcpp::StpConfigurationBPDULayer::getBridgeSystemIDExtension | ( | ) | const |
Returns the system identifier extension of bridge
|
inline |
Returns the flags of configuration message which indicates purpose of BPDU
double pcpp::StpConfigurationBPDULayer::getForwardDelay | ( | ) | const |
Returns the delay for STP message
double pcpp::StpConfigurationBPDULayer::getMaximumAge | ( | ) | const |
Returns maximum age of the BPDU message
double pcpp::StpConfigurationBPDULayer::getMessageAge | ( | ) | const |
Returns age of the BPDU message
uint32_t pcpp::StpConfigurationBPDULayer::getPathCost | ( | ) | const |
Returns the value of the cost of path
uint16_t pcpp::StpConfigurationBPDULayer::getPortId | ( | ) | const |
Returns the port identifier
uint64_t pcpp::StpConfigurationBPDULayer::getRootId | ( | ) | const |
Returns the root bridge identifier
uint16_t pcpp::StpConfigurationBPDULayer::getRootPriority | ( | ) | const |
Returns the priority of root bridge
|
inline |
Returns the system identifier of root bridge
uint16_t pcpp::StpConfigurationBPDULayer::getRootSystemIDExtension | ( | ) | const |
Returns the system identifier extension of root bridge
|
inline |
Get a pointer to configuration BPDU message
double pcpp::StpConfigurationBPDULayer::getTransmissionInterval | ( | ) | const |
Returns the BPDU transmission interval
|
inlinestatic |
A static method that validates the input data
[in] | data | The pointer to the beginning of a byte stream of an Spanning Tree Configuration BPDU packet |
[in] | dataLen | The length of the byte stream |
|
inlinevirtual |
Reimplemented from pcpp::StpTopologyChangeBPDULayer.
Reimplemented in pcpp::MultipleStpLayer, and pcpp::RapidStpLayer.