Namespace inet
BpduBase
classRepresents a BPDU (Bridge PDU) used by the STP and RSTP protocols, as defined in the 802.1D-1998 specification.
Extends
Name | Type | Description |
---|---|---|
FieldsChunk | (unknown -- not in documented files) |
Fields
Name | Type | Description |
---|---|---|
protocolIdentifier | BpduProtocolIdentifier |
2 bytes, 0 for STP, 1 for RSTP (TODO use them) |
protocolVersionIdentifier | BpduProtocolVersionIdentifier |
1 byte, version ID, currently 0, // 3:MultipleSpanningTree |
bpduType | BpduType |
1 byte, 0 for Configuration BPDU, 1 for Topology Change Notification BPDU |
Packet operations (observed)
action | module |
---|---|
peekAtFront | Stp |
Source code
// // Represents a BPDU (Bridge PDU) used by the STP and RSTP protocols, // as defined in the 802.1D-1998 specification. // class BpduBase extends FieldsChunk { BpduProtocolIdentifier protocolIdentifier = static_cast<BpduProtocolIdentifier>(-1); // 2 bytes, 0 for STP, 1 for RSTP (TODO use them) BpduProtocolVersionIdentifier protocolVersionIdentifier = static_cast<BpduProtocolVersionIdentifier>(-1); // 1 byte, version ID, currently 0, // 3:MultipleSpanningTree BpduType bpduType = static_cast<BpduType>(-1); // 1 byte, 0 for Configuration BPDU, 1 for Topology Change Notification BPDU }File: src/inet/linklayer/ieee8021d/common/Ieee8021dBpdu.msg