43 changeState(intf,
new InterfaceStateLoopback,
this);
50 unsigned long neighborCount = intf->getNeighborCount();
52 for (
unsigned long i = 0; i < neighborCount; i++) {
53 Neighbor *neighbor = intf->getNeighbor(i);
54 if (neighbor->getPriority() > 0) {
55 intf->sendHelloPacket(neighbor->getAddress(),
ttl);
59 intf->getArea()->getRouter()->getMessageHandler()->startTimer(intf->getHelloTimer(), intf->getHelloInterval());
62 intf->sendDelayedAcknowledgements();
#define VIRTUAL_LINK_TTL
Definition: OSPFcommon.h:45
Definition: OSPFInterface.h:60
Definition: OSPFInterface.h:47
Definition: OSPFInterface.h:45
Definition: OSPFInterface.h:46
Definition: OSPFInterface.h:57
Definition: OSPFInterface.h:44
void changeState(Interface *intf, InterfaceState *newState, InterfaceState *currentState)
Definition: OSPFInterfaceState.cc:33
void calculateDesignatedRouter(Interface *intf)
Definition: OSPFInterfaceState.cc:122
Definition: OSPFInterface.h:51
Definition: OSPFInterface.h:49
uint8_t ttl
Definition: TCP_NSC.cc:87
static const IPv4Address ALL_OSPF_ROUTERS_MCAST
224.0.0.5 All OSPF routers (DR Others)
Definition: IPv4Address.h:110