INET Framework for OMNeT++/OMNEST
|
Class generated from inet/linklayer/ieee8021d/common/Ieee8021dBPDU.msg:30
by nedtool.
More...
#include <Ieee8021dBPDU_m.h>
Public Member Functions | |
BPDU (const char *name=nullptr, short kind=0) | |
BPDU (const BPDU &other) | |
virtual | ~BPDU () |
BPDU & | operator= (const BPDU &other) |
virtual BPDU * | dup () const override |
virtual void | parsimPack (omnetpp::cCommBuffer *b) const override |
virtual void | parsimUnpack (omnetpp::cCommBuffer *b) override |
virtual unsigned int | getProtocolIdentifier () const |
virtual void | setProtocolIdentifier (unsigned int protocolIdentifier) |
virtual unsigned int | getProtocolVersionIdentifier () const |
virtual void | setProtocolVersionIdentifier (unsigned int protocolVersionIdentifier) |
virtual unsigned int | getBpduType () const |
virtual void | setBpduType (unsigned int bpduType) |
virtual bool | getTcaFlag () const |
virtual void | setTcaFlag (bool tcaFlag) |
virtual bool | getTcFlag () const |
virtual void | setTcFlag (bool tcFlag) |
virtual MACAddress & | getRootAddress () |
virtual const MACAddress & | getRootAddress () const |
virtual void | setRootAddress (const MACAddress &rootAddress) |
virtual unsigned int | getRootPriority () const |
virtual void | setRootPriority (unsigned int rootPriority) |
virtual unsigned int | getRootPathCost () const |
virtual void | setRootPathCost (unsigned int rootPathCost) |
virtual MACAddress & | getBridgeAddress () |
virtual const MACAddress & | getBridgeAddress () const |
virtual void | setBridgeAddress (const MACAddress &bridgeAddress) |
virtual unsigned int | getBridgePriority () const |
virtual void | setBridgePriority (unsigned int bridgePriority) |
virtual unsigned int | getPortNum () const |
virtual void | setPortNum (unsigned int portNum) |
virtual unsigned int | getPortPriority () const |
virtual void | setPortPriority (unsigned int portPriority) |
virtual ::omnetpp::simtime_t | getMessageAge () const |
virtual void | setMessageAge (::omnetpp::simtime_t messageAge) |
virtual ::omnetpp::simtime_t | getMaxAge () const |
virtual void | setMaxAge (::omnetpp::simtime_t maxAge) |
virtual ::omnetpp::simtime_t | getHelloTime () const |
virtual void | setHelloTime (::omnetpp::simtime_t helloTime) |
virtual ::omnetpp::simtime_t | getForwardDelay () const |
virtual void | setForwardDelay (::omnetpp::simtime_t forwardDelay) |
Protected Member Functions | |
bool | operator== (const BPDU &) |
Protected Attributes | |
unsigned int | protocolIdentifier |
unsigned int | protocolVersionIdentifier |
unsigned int | bpduType |
bool | tcaFlag |
bool | tcFlag |
MACAddress | rootAddress |
unsigned int | rootPriority |
unsigned int | rootPathCost |
MACAddress | bridgeAddress |
unsigned int | bridgePriority |
unsigned int | portNum |
unsigned int | portPriority |
::omnetpp::simtime_t | messageAge |
::omnetpp::simtime_t | maxAge |
::omnetpp::simtime_t | helloTime |
::omnetpp::simtime_t | forwardDelay |
Private Member Functions | |
void | copy (const BPDU &other) |
Class generated from inet/linklayer/ieee8021d/common/Ieee8021dBPDU.msg:30
by nedtool.
// // Represents a BPDU (Bridge PDU) used by the STP and RSTP protocols, // as defined in the 802.1D-1998 specification. // packet BPDU { byteLength = 35; unsigned int protocolIdentifier; // 0 for STP, 1 for RSTP (TODO use them) unsigned int protocolVersionIdentifier; // currently 0
unsigned int bpduType; // 0 for Configuration BPDU, 1 for Topology Change Notification BPDU bool tcaFlag; // Topology Change Acknowledgment flag bool tcFlag; // Topology Change flag
MACAddress rootAddress; // address of the tree root (first part of Root Identifier) unsigned int rootPriority; // priority of the tree root (second part of Root Identifier) unsigned int rootPathCost; // cost to the root
MACAddress bridgeAddress; // address of sender bridge (first part of Bridge Identifier) unsigned int bridgePriority; // priority of sender bridge (second part of Bridge Identifier)
unsigned int portNum; // port number (ethg[] gate index) of sender port (first part of Port Identifier) unsigned int portPriority; // priority of sender port (second part of Port Identifier)
simtime_t messageAge; // Message Age in seconds simtime_t maxAge; // maximum lifetime of the BPDU (seconds) simtime_t helloTime; // Hello Time of the sender bridge simtime_t forwardDelay; // Forward Delay timer of the sender bridge }
inet::BPDU::BPDU | ( | const char * | name = nullptr , |
short | kind = 0 |
||
) |
inet::BPDU::BPDU | ( | const BPDU & | other | ) |
|
virtual |
|
private |
|
inlineoverridevirtual |
|
virtual |
Referenced by inet::STP::handleMessage().
|
virtual |
|
inlinevirtual |
Referenced by getBridgeAddress().
|
virtual |
virtual ::omnetpp::simtime_t inet::BPDU::getForwardDelay | ( | ) | const |
Referenced by inet::STP::setSuperiorBPDU().
virtual ::omnetpp::simtime_t inet::BPDU::getHelloTime | ( | ) | const |
Referenced by inet::STP::setSuperiorBPDU().
virtual ::omnetpp::simtime_t inet::BPDU::getMaxAge | ( | ) | const |
Referenced by inet::STP::setSuperiorBPDU().
virtual ::omnetpp::simtime_t inet::BPDU::getMessageAge | ( | ) | const |
|
virtual |
|
virtual |
|
virtual |
|
virtual |
|
virtual |
|
inlinevirtual |
Referenced by getRootAddress().
|
virtual |
|
virtual |
|
virtual |
Referenced by inet::STP::handleBPDU().
|
virtual |
Referenced by inet::RSTP::checkTC(), and inet::STP::handleBPDU().
|
protected |
|
overridevirtual |
Referenced by inet::doParsimPacking().
|
overridevirtual |
Referenced by inet::doParsimUnpacking().
|
virtual |
Referenced by inet::STP::generateBPDU(), and inet::STP::generateTCN().
|
virtual |
Referenced by inet::STP::generateBPDU(), inet::RSTP::sendBPDU(), and inet::RSTP::sendTCNtoRoot().
|
virtual |
Referenced by inet::STP::generateBPDU(), inet::RSTP::sendBPDU(), and inet::RSTP::sendTCNtoRoot().
|
virtual |
Referenced by inet::STP::generateBPDU(), inet::RSTP::sendBPDU(), and inet::RSTP::sendTCNtoRoot().
|
virtual |
Referenced by inet::STP::generateBPDU(), inet::RSTP::sendBPDU(), and inet::RSTP::sendTCNtoRoot().
|
virtual |
Referenced by inet::STP::generateBPDU(), inet::RSTP::sendBPDU(), and inet::RSTP::sendTCNtoRoot().
|
virtual |
Referenced by inet::STP::generateBPDU(), inet::RSTP::sendBPDU(), and inet::RSTP::sendTCNtoRoot().
|
virtual |
Referenced by inet::STP::generateBPDU(), inet::RSTP::sendBPDU(), and inet::RSTP::sendTCNtoRoot().
|
virtual |
Referenced by inet::STP::generateBPDU().
|
virtual |
Referenced by inet::STP::generateBPDU(), and inet::STP::generateTCN().
|
virtual |
Referenced by inet::STP::generateBPDU(), and inet::STP::generateTCN().
|
virtual |
Referenced by inet::STP::generateBPDU(), inet::RSTP::sendBPDU(), and inet::RSTP::sendTCNtoRoot().
|
virtual |
Referenced by inet::STP::generateBPDU(), inet::RSTP::sendBPDU(), and inet::RSTP::sendTCNtoRoot().
|
virtual |
Referenced by inet::STP::generateBPDU(), inet::RSTP::sendBPDU(), and inet::RSTP::sendTCNtoRoot().
|
virtual |
Referenced by inet::STP::generateBPDU(), inet::RSTP::sendBPDU(), and inet::RSTP::sendTCNtoRoot().
|
virtual |
Referenced by inet::STP::generateBPDU(), inet::RSTP::sendBPDU(), and inet::RSTP::sendTCNtoRoot().
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |