|
INET Framework for OMNeT++/OMNEST
|
Class represents EIGRP Neighbor Table. More...
#include <EigrpNeighborTable.h>
Public Member Functions | |
| EigrpNeighborTable () | |
| virtual | ~EigrpNeighborTable () |
| int | addNeighbor (EigrpNeighbor< IPAddress > *neighbor) |
| Adds neighbor to the table. More... | |
| EigrpNeighbor< IPAddress > * | findNeighbor (const IPAddress &ipAddress) |
| Finds neighbor by IP address. More... | |
| EigrpNeighbor< IPAddress > * | findNeighborById (int id) |
| Finds neighbor by ID. More... | |
| EigrpNeighbor< IPAddress > * | removeNeighbor (EigrpNeighbor< IPAddress > *neighbor) |
| Removes neighbor form the table, but the record still exists. More... | |
| EigrpNeighbor< IPAddress > * | getFirstNeighborOnIf (int ifaceId) |
| Returns first neighbor that resides on specified interface. More... | |
| int | getNumNeighbors () const |
| EigrpNeighbor< IPAddress > * | getNeighbor (int k) const |
| int | setAckOnIface (int ifaceId, uint32_t ackNum) |
| int | getStubCount () const |
| void | incStubCount () |
| void | decStubCount () |
Protected Types | |
| typedef std::vector< EigrpNeighbor< IPAddress > * > | NeighborVector |
Protected Member Functions | |
| virtual void | initialize (int stage) override |
| virtual void | handleMessage (cMessage *msg) override |
| virtual int | numInitStages () const override |
Protected Attributes | |
| NeighborVector | neighborVec |
| Table with neighbors. More... | |
| int | neighborCounter |
| For unique ID of neighbor. More... | |
| int | stubCount |
| Number of stub neighbors for optimization. More... | |
Class represents EIGRP Neighbor Table.
|
protected |
|
inline |
|
virtual |
| int inet::eigrp::EigrpNeighborTable< IPAddress >::addNeighbor | ( | EigrpNeighbor< IPAddress > * | neighbor | ) |
Adds neighbor to the table.
Referenced by inet::eigrp::EigrpIpv4Pdm::createNeighbor(), and inet::eigrp::EigrpIpv6Pdm::createNeighbor().
|
inline |
| EigrpNeighbor< IPAddress > * inet::eigrp::EigrpNeighborTable< IPAddress >::findNeighbor | ( | const IPAddress & | ipAddress | ) |
Finds neighbor by IP address.
Returns null if neighbor is not found.
Referenced by inet::eigrp::EigrpIpv4Pdm::processInterRoute(), inet::eigrp::EigrpIpv6Pdm::processInterRoute(), inet::eigrp::EigrpIpv4Pdm::processMsgFromNetwork(), and inet::eigrp::EigrpIpv6Pdm::processMsgFromNetwork().
| EigrpNeighbor< IPAddress > * inet::eigrp::EigrpNeighborTable< IPAddress >::findNeighborById | ( | int | id | ) |
Finds neighbor by ID.
Referenced by inet::eigrp::EigrpIpv4Pdm::getDestIpAddress(), inet::eigrp::EigrpIpv6Pdm::getDestIpAddress(), inet::eigrp::EigrpIpv4Pdm::sendReply(), inet::eigrp::EigrpIpv6Pdm::sendReply(), inet::eigrp::EigrpIpv4Pdm::setDelayedRemove(), and inet::eigrp::EigrpIpv6Pdm::setDelayedRemove().
| EigrpNeighbor< IPAddress > * inet::eigrp::EigrpNeighborTable< IPAddress >::getFirstNeighborOnIf | ( | int | ifaceId | ) |
Returns first neighbor that resides on specified interface.
Referenced by inet::eigrp::EigrpIpv4Pdm::msgToIface(), and inet::eigrp::EigrpIpv6Pdm::msgToIface().
|
inline |
|
inline |
|
inline |
|
overrideprotectedvirtual |
|
inline |
|
overrideprotectedvirtual |
|
inlineoverrideprotectedvirtual |
| EigrpNeighbor< IPAddress > * inet::eigrp::EigrpNeighborTable< IPAddress >::removeNeighbor | ( | EigrpNeighbor< IPAddress > * | neighbor | ) |
Removes neighbor form the table, but the record still exists.
Referenced by inet::eigrp::EigrpIpv4Pdm::removeNeighbor(), and inet::eigrp::EigrpIpv6Pdm::removeNeighbor().
| int inet::eigrp::EigrpNeighborTable< IPAddress >::setAckOnIface | ( | int | ifaceId, |
| uint32_t | ackNum | ||
| ) |
|
protected |
For unique ID of neighbor.
Referenced by inet::eigrp::EigrpNeighborTable< Ipv4Address >::EigrpNeighborTable().
|
protected |
Table with neighbors.
Referenced by inet::eigrp::EigrpNeighborTable< Ipv4Address >::getNeighbor(), and inet::eigrp::EigrpNeighborTable< Ipv4Address >::getNumNeighbors().
|
protected |
Number of stub neighbors for optimization.
Referenced by inet::eigrp::EigrpNeighborTable< Ipv4Address >::decStubCount(), inet::eigrp::EigrpNeighborTable< Ipv4Address >::EigrpNeighborTable(), inet::eigrp::EigrpNeighborTable< Ipv4Address >::getStubCount(), and inet::eigrp::EigrpNeighborTable< Ipv4Address >::incStubCount().