INET Framework for OMNeT++/OMNEST
|
Per-interface data needed by the STP and RSTP protocols. More...
#include <Ieee8021dInterfaceData.h>
Classes | |
class | PortInfo |
Public Types | |
enum | PortRole { ALTERNATE, NOTASSIGNED, DISABLED, DESIGNATED, BACKUP, ROOT } |
enum | PortState { DISCARDING, LEARNING, FORWARDING } |
Public Member Functions | |
Ieee8021dInterfaceData () | |
virtual std::string | info () const override |
virtual std::string | detailedInfo () const override |
bool | isLearning () const |
bool | isForwarding () const |
simtime_t | getAge () const |
void | setAge (simtime_t age) |
const MACAddress & | getBridgeAddress () const |
void | setBridgeAddress (const MACAddress &bridgeAddress) |
unsigned int | getBridgePriority () const |
void | setBridgePriority (unsigned int bridgePriority) |
simtime_t | getFdWhile () const |
void | setFdWhile (simtime_t fdWhile) |
simtime_t | getFwdDelay () const |
void | setFwdDelay (simtime_t fwdDelay) |
simtime_t | getHelloTime () const |
void | setHelloTime (simtime_t helloTime) |
unsigned int | getLinkCost () const |
void | setLinkCost (unsigned int linkCost) |
simtime_t | getMaxAge () const |
void | setMaxAge (simtime_t maxAge) |
unsigned int | getPortNum () const |
void | setPortNum (unsigned int portNum) |
unsigned int | getPortPriority () const |
void | setPortPriority (unsigned int portPriority) |
unsigned int | getPriority () const |
void | setPriority (unsigned int priority) |
PortRole | getRole () const |
void | setRole (PortRole role) |
const MACAddress & | getRootAddress () const |
void | setRootAddress (const MACAddress &rootAddress) |
unsigned int | getRootPathCost () const |
void | setRootPathCost (unsigned int rootPathCost) |
unsigned int | getRootPriority () const |
void | setRootPriority (unsigned int rootPriority) |
PortState | getState () const |
void | setState (PortState state) |
bool | isEdge () const |
void | setEdge (bool edge) |
simtime_t | getTCWhile () const |
void | setTCWhile (simtime_t TCWhile) |
unsigned int | getLostBPDU () const |
void | setLostBPDU (unsigned int lostBPDU) |
const char * | getRoleName () const |
const char * | getStateName () const |
simtime_t | getNextUpgrade () const |
void | setNextUpgrade (simtime_t nextUpgrade) |
Public Member Functions inherited from inet::InterfaceProtocolData | |
InterfaceProtocolData () | |
InterfaceEntry * | getInterfaceEntry () const |
Returns the InterfaceEntry that contains this data object, or nullptr. More... | |
Static Public Member Functions | |
static const char * | getRoleName (PortRole role) |
static const char * | getStateName (PortState state) |
Protected Attributes | |
PortInfo | portData |
Protected Attributes inherited from inet::InterfaceProtocolData | |
InterfaceEntry * | ownerp = nullptr |
Additional Inherited Members | |
Protected Member Functions inherited from inet::InterfaceProtocolData | |
virtual void | changed (simsignal_t signalID, int fieldId) |
Enumerator | |
---|---|
ALTERNATE | |
NOTASSIGNED | |
DISABLED | |
DESIGNATED | |
BACKUP | |
ROOT |
|
overridevirtual |
|
inline |
|
inline |
Referenced by inet::RSTP::compareInterfacedata(), inet::STP::comparePorts(), inet::RSTP::contestInterfacedata(), inet::RSTP::getBestAlternate(), inet::RSTP::printState(), and inet::RSTP::processBPDU().
|
inline |
Referenced by inet::RSTP::compareInterfacedata(), inet::STP::comparePorts(), inet::RSTP::contestInterfacedata(), inet::RSTP::getBestAlternate(), and inet::RSTP::printState().
|
inline |
Referenced by inet::STP::checkTimers(), and inet::STP::handleTick().
|
inline |
Referenced by inet::STP::selectRootPort().
|
inline |
Referenced by inet::STP::selectRootPort().
|
inline |
Referenced by inet::RSTP::contestInterfacedata(), detailedInfo(), inet::STP::isSuperiorBPDU(), inet::operator<<(), inet::RSTP::processBetterSource(), inet::RSTP::processBPDU(), inet::RSTP::processSameSource(), inet::STP::selectDesignatedPorts(), inet::STP::setSuperiorBPDU(), and inet::RSTP::updateInterfacedata().
|
inline |
Referenced by inet::RSTP::handleHelloTime().
|
inline |
Referenced by inet::STP::selectRootPort().
|
inline |
Referenced by inet::RSTP::handleUpgrade(), and inet::RSTP::scheduleNextUpgrade().
|
inline |
Referenced by inet::RSTP::compareInterfacedata(), inet::STP::comparePorts(), inet::RSTP::contestInterfacedata(), inet::RSTP::getBestAlternate(), and inet::RSTP::printState().
|
inline |
Referenced by inet::RSTP::compareInterfacedata(), inet::STP::comparePorts(), inet::RSTP::contestInterfacedata(), inet::RSTP::getBestAlternate(), inet::RSTP::handleBackup(), inet::RSTP::printState(), and inet::RSTP::processBetterSource().
|
inline |
Referenced by detailedInfo(), inet::operator<<(), inet::STP::selectDesignatedPorts(), and inet::STP::selectRootPort().
|
inline |
Referenced by inet::STP::checkTimers(), inet::RSTP::getBestAlternate(), inet::Ieee8021dRelay::handleAndDispatchFrame(), inet::STP::handleBPDU(), inet::RSTP::handleHelloTime(), inet::STP::handleTick(), inet::RSTP::handleUpgrade(), inet::operator<<(), inet::RSTP::processSameSource(), inet::RSTP::receiveSignal(), inet::RSTP::scheduleNextUpgrade(), inet::STP::selectDesignatedPorts(), inet::RSTP::sendBPDU(), inet::RSTP::sendBPDUs(), inet::RSTP::sendTCNtoRoot(), and inet::STP::setAllDesignated().
|
inline |
Referenced by detailedInfo(), getRoleName(), info(), inet::RSTP::printState(), and inet::STPBase::refreshDisplay().
|
static |
|
inline |
Referenced by inet::STP::checkRootEligibility(), inet::RSTP::compareInterfacedata(), inet::STP::comparePorts(), inet::RSTP::contestInterfacedata(), inet::RSTP::getBestAlternate(), inet::RSTP::printState(), inet::STP::selectRootPort(), inet::RSTP::sendBPDU(), and inet::RSTP::sendTCNtoRoot().
|
inline |
Referenced by inet::RSTP::compareInterfacedata(), inet::STP::comparePorts(), inet::RSTP::contestInterfacedata(), inet::RSTP::getBestAlternate(), inet::RSTP::printState(), inet::STP::selectRootPort(), inet::RSTP::sendBPDU(), and inet::RSTP::sendTCNtoRoot().
|
inline |
Referenced by inet::STP::checkRootEligibility(), inet::RSTP::compareInterfacedata(), inet::STP::comparePorts(), inet::RSTP::contestInterfacedata(), inet::RSTP::getBestAlternate(), inet::RSTP::printState(), inet::STP::selectRootPort(), inet::RSTP::sendBPDU(), and inet::RSTP::sendTCNtoRoot().
|
inline |
|
inline |
Referenced by detailedInfo(), getStateName(), info(), inet::RSTP::printState(), and inet::STPBase::refreshDisplay().
|
static |
|
inline |
Referenced by inet::RSTP::sendBPDU(), and inet::RSTP::sendTCNtoRoot().
|
overridevirtual |
|
inline |
|
inline |
Referenced by inet::Ieee8021dRelay::handleAndDispatchFrame(), inet::STPTester::isForwarding(), and inet::operator<<().
|
inline |
Referenced by inet::Ieee8021dRelay::learn(), and inet::operator<<().
|
inline |
|
inline |
Referenced by inet::RSTP::initInterfacedata(), inet::STP::initInterfacedata(), inet::STP::isSuperiorBPDU(), inet::STP::selectDesignatedPorts(), inet::STP::setSuperiorBPDU(), and inet::RSTP::updateInterfacedata().
|
inline |
Referenced by inet::RSTP::initInterfacedata(), inet::STP::initInterfacedata(), inet::STP::isSuperiorBPDU(), inet::STP::selectDesignatedPorts(), inet::STP::setSuperiorBPDU(), and inet::RSTP::updateInterfacedata().
|
inline |
Referenced by inet::L2NetworkConfigurator::configureInterface().
|
inline |
Referenced by inet::STP::checkTimers(), inet::STP::handleTick(), and inet::STP::isSuperiorBPDU().
|
inline |
Referenced by inet::STP::setSuperiorBPDU().
|
inline |
Referenced by inet::STP::setSuperiorBPDU().
|
inline |
Referenced by inet::L2NetworkConfigurator::configureInterface().
|
inline |
Referenced by inet::RSTP::handleBackup(), inet::RSTP::handleHelloTime(), inet::RSTP::initInterfacedata(), inet::STP::initInterfacedata(), inet::RSTP::processBetterSource(), inet::RSTP::processSameSource(), and inet::RSTP::updateInterfacedata().
|
inline |
Referenced by inet::STP::setSuperiorBPDU().
|
inline |
Referenced by inet::RSTP::handleHelloTime(), inet::RSTP::handleUpgrade(), inet::RSTP::initPorts(), inet::RSTP::processBetterSource(), inet::RSTP::processSameSource(), and inet::RSTP::receiveSignal().
|
inline |
Referenced by inet::RSTP::initInterfacedata(), inet::STP::initInterfacedata(), inet::STP::isSuperiorBPDU(), inet::STP::selectDesignatedPorts(), inet::STP::setSuperiorBPDU(), and inet::RSTP::updateInterfacedata().
|
inline |
Referenced by inet::RSTP::initInterfacedata(), inet::STP::initInterfacedata(), inet::STP::isSuperiorBPDU(), inet::STP::selectDesignatedPorts(), inet::STP::setSuperiorBPDU(), and inet::RSTP::updateInterfacedata().
|
inline |
Referenced by inet::L2NetworkConfigurator::configureInterface().
|
inline |
Referenced by inet::RSTP::handleBackup(), inet::RSTP::handleHelloTime(), inet::RSTP::handleUpgrade(), inet::STP::initInterfacedata(), inet::RSTP::initPorts(), inet::RSTP::processBetterSource(), inet::RSTP::processSameSource(), inet::STP::selectDesignatedPorts(), inet::STP::selectRootPort(), and inet::STP::setAllDesignated().
|
inline |
Referenced by inet::RSTP::initInterfacedata(), inet::STP::initInterfacedata(), inet::STP::isSuperiorBPDU(), inet::STP::selectDesignatedPorts(), inet::STP::setSuperiorBPDU(), and inet::RSTP::updateInterfacedata().
|
inline |
Referenced by inet::RSTP::initInterfacedata(), inet::STP::initInterfacedata(), inet::STP::isSuperiorBPDU(), inet::STP::selectDesignatedPorts(), inet::STP::setSuperiorBPDU(), and inet::RSTP::updateInterfacedata().
|
inline |
Referenced by inet::RSTP::initInterfacedata(), inet::STP::initInterfacedata(), inet::STP::isSuperiorBPDU(), inet::STP::selectDesignatedPorts(), inet::STP::setSuperiorBPDU(), and inet::RSTP::updateInterfacedata().
|
inline |
|
inline |
Referenced by inet::RSTP::checkTC(), inet::RSTP::flushOtherPorts(), and inet::RSTP::processBetterSource().
|
protected |