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