#include <Ospfv3InterfaceStateDr.h>
◆ ~Ospfv3InterfaceStateDr()
| inet::ospfv3::Ospfv3InterfaceStateDr::~Ospfv3InterfaceStateDr |
( |
| ) |
|
|
inline |
◆ getInterfaceStateString()
| virtual std::string inet::ospfv3::Ospfv3InterfaceStateDr::getInterfaceStateString |
( |
| ) |
const |
|
inlineoverridevirtual |
◆ getState()
◆ processEvent()
Implements inet::ospfv3::Ospfv3InterfaceState.
28 changeState(interface,
new Ospfv3InterfaceStateDown,
this);
32 changeState(interface,
new Ospfv3InterfaceStateLoopback,
this);
37 Packet *hello = interface->prepareHello();
42 unsigned long neighborCount = interface->getNeighborCount();
44 for (
unsigned long i = 0; i < neighborCount; i++) {
45 Packet *hello = interface->prepareHello();
46 Ipv6Address dest = interface->getNeighbor(i)->getNeighborIP();
47 interface->getArea()->getInstance()->getProcess()->sendPacket(hello, dest, interface->getIntName().c_str(), hopLimit);
50 interface->getArea()->getInstance()->getProcess()->setTimer(interface->getHelloTimer(), interface->getHelloInterval());
54 interface->sendDelayedAcknowledgements();
57 changeState(interface,
new Ospfv3InterfaceStateWaiting,
this);
58 interface->getArea()->getInstance()->getProcess()->setTimer(interface->getWaitTimer(), interface->getDeadInterval());
The documentation for this class was generated from the following files: