INET Framework for OMNeT++/OMNEST
inet::IMACAddressTable Class Referenceabstract

#include <IMACAddressTable.h>

Inheritance diagram for inet::IMACAddressTable:
inet::MACAddressTable

Public Member Functions

virtual int getPortForAddress (MACAddress &address, unsigned int vid=0)=0
 For a known arriving port, V-TAG and destination MAC. More...
 
virtual bool updateTableWithAddress (int portno, MACAddress &address, unsigned int vid=0)=0
 Register a new MAC address at AddressTable. More...
 
virtual void flush (int portno)=0
 Clears portno cache. More...
 
virtual void printState ()=0
 Prints cached data. More...
 
virtual void copyTable (int portA, int portB)=0
 Copy cache from portA to portB port. More...
 
virtual void removeAgedEntriesFromVlan (unsigned int vid=0)=0
 Remove aged entries from a specified VLAN. More...
 
virtual void removeAgedEntriesFromAllVlans ()=0
 Remove aged entries from all VLANs. More...
 
virtual void removeAgedEntriesIfNeeded ()=0
 
virtual void readAddressTable (const char *fileName)=0
 Pre-reads in entries for Address Table during initialization. More...
 
virtual void clearTable ()=0
 For lifecycle: clears all entries from the vlanAddressTable. More...
 
virtual void setAgingTime (simtime_t agingTime)=0
 
virtual void resetDefaultAging ()=0
 

Member Function Documentation

virtual void inet::IMACAddressTable::clearTable ( )
pure virtual

For lifecycle: clears all entries from the vlanAddressTable.

Implemented in inet::MACAddressTable.

Referenced by inet::MACRelayUnit::start(), inet::Ieee8021dRelay::start(), inet::MACRelayUnit::stop(), and inet::Ieee8021dRelay::stop().

virtual void inet::IMACAddressTable::copyTable ( int  portA,
int  portB 
)
pure virtual

Copy cache from portA to portB port.

Implemented in inet::MACAddressTable.

Referenced by inet::RSTP::handleHelloTime(), inet::RSTP::processBetterSource(), and inet::RSTP::processSameSource().

virtual void inet::IMACAddressTable::flush ( int  portno)
pure virtual
virtual int inet::IMACAddressTable::getPortForAddress ( MACAddress address,
unsigned int  vid = 0 
)
pure virtual

For a known arriving port, V-TAG and destination MAC.

It finds out the port where relay component should deliver the message

Parameters
addressMAC destination
vidVLAN ID
Returns
Output port for address, or -1 if unknown.

Implemented in inet::MACAddressTable.

Referenced by inet::MACRelayUnit::handleAndDispatchFrame(), and inet::Ieee8021dRelay::handleAndDispatchFrame().

virtual void inet::IMACAddressTable::printState ( )
pure virtual

Prints cached data.

Implemented in inet::MACAddressTable.

virtual void inet::IMACAddressTable::readAddressTable ( const char *  fileName)
pure virtual

Pre-reads in entries for Address Table during initialization.

Implemented in inet::MACAddressTable.

virtual void inet::IMACAddressTable::removeAgedEntriesFromAllVlans ( )
pure virtual

Remove aged entries from all VLANs.

Implemented in inet::MACAddressTable.

virtual void inet::IMACAddressTable::removeAgedEntriesFromVlan ( unsigned int  vid = 0)
pure virtual

Remove aged entries from a specified VLAN.

Implemented in inet::MACAddressTable.

virtual void inet::IMACAddressTable::removeAgedEntriesIfNeeded ( )
pure virtual

Implemented in inet::MACAddressTable.

virtual void inet::IMACAddressTable::resetDefaultAging ( )
pure virtual

Implemented in inet::MACAddressTable.

Referenced by inet::STP::handleBPDU().

virtual void inet::IMACAddressTable::setAgingTime ( simtime_t  agingTime)
pure virtual

Implemented in inet::MACAddressTable.

Referenced by inet::STP::handleBPDU().

virtual bool inet::IMACAddressTable::updateTableWithAddress ( int  portno,
MACAddress address,
unsigned int  vid = 0 
)
pure virtual

Register a new MAC address at AddressTable.

Returns
True if refreshed. False if it is new.

Implemented in inet::MACAddressTable.

Referenced by inet::MACRelayUnit::handleAndDispatchFrame(), and inet::Ieee8021dRelay::learn().


The documentation for this class was generated from the following file: