35 MessageHandler *messageHandler = neighbor->getInterface()->getArea()->getRouter()->getMessageHandler();
37 messageHandler->clearTimer(neighbor->getInactivityTimer());
43 MessageHandler *messageHandler = neighbor->getInterface()->getArea()->getRouter()->getMessageHandler();
44 messageHandler->startTimer(neighbor->getPollTimer(), neighbor->getInterface()->getPollInterval());
49 MessageHandler *messageHandler = neighbor->getInterface()->getArea()->getRouter()->getMessageHandler();
50 messageHandler->clearTimer(neighbor->getInactivityTimer());
51 messageHandler->startTimer(neighbor->getInactivityTimer(), neighbor->getRouterDeadInterval());
54 if (neighbor->needAdjacency()) {
55 MessageHandler *messageHandler = neighbor->getInterface()->getArea()->getRouter()->getMessageHandler();
56 if (!(neighbor->isFirstAdjacencyInited())) {
57 neighbor->initFirstAdjacency();
60 neighbor->incrementDDSequenceNumber();
62 neighbor->sendDatabaseDescriptionPacket(
true);
63 messageHandler->startTimer(neighbor->getDDRetransmissionTimer(), neighbor->getInterface()->getRetransmissionInterval());
64 changeState(neighbor,
new NeighborStateExchangeStart,
this);
67 changeState(neighbor,
new NeighborStateTwoWay,
this);
Definition: OSPFNeighbor.h:52
void changeState(Neighbor *neighbor, NeighborState *newState, NeighborState *currentState)
Definition: OSPFNeighborState.cc:28
Definition: OSPFNeighbor.h:42
Definition: OSPFNeighbor.h:53
Definition: OSPFNeighbor.h:44
Definition: OSPFInterface.h:58
Definition: OSPFNeighbor.h:55