37 MessageHandler *messageHandler = neighbor->getInterface()->getArea()->getRouter()->getMessageHandler();
39 messageHandler->clearTimer(neighbor->getInactivityTimer());
45 MessageHandler *messageHandler = neighbor->getInterface()->getArea()->getRouter()->getMessageHandler();
46 messageHandler->startTimer(neighbor->getPollTimer(), neighbor->getInterface()->getPollInterval());
55 MessageHandler *messageHandler = neighbor->getInterface()->getArea()->getRouter()->getMessageHandler();
56 messageHandler->clearTimer(neighbor->getInactivityTimer());
57 messageHandler->startTimer(neighbor->getInactivityTimer(), neighbor->getRouterDeadInterval());
60 neighbor->clearRequestRetransmissionTimer();
64 if (!neighbor->needAdjacency()) {
66 changeState(neighbor,
new NeighborStateTwoWay,
this);
70 MessageHandler *messageHandler = neighbor->getInterface()->getArea()->getRouter()->getMessageHandler();
72 neighbor->incrementDDSequenceNumber();
73 neighbor->sendDatabaseDescriptionPacket(
true);
74 messageHandler->startTimer(neighbor->getDDRetransmissionTimer(), neighbor->getInterface()->getRetransmissionInterval());
75 changeState(neighbor,
new NeighborStateExchangeStart,
this);
78 neighbor->sendLinkStateRequestPacket();
79 neighbor->startRequestRetransmissionTimer();
82 neighbor->retransmitUpdatePacket();
83 neighbor->startUpdateRetransmissionTimer();
86 neighbor->deleteLastSentDDPacket();
Definition: OSPFNeighbor.h:52
Definition: OSPFNeighbor.h:58
void changeState(Neighbor *neighbor, NeighborState *newState, NeighborState *currentState)
Definition: OSPFNeighborState.cc:28
Definition: OSPFNeighbor.h:51
Definition: OSPFNeighbor.h:42
Definition: OSPFNeighbor.h:53
Definition: OSPFNeighbor.h:47
Definition: OSPFNeighbor.h:50
Definition: OSPFInterface.h:58
Definition: OSPFNeighbor.h:55
Definition: OSPFNeighbor.h:56
Definition: OSPFNeighbor.h:48
Definition: OSPFNeighbor.h:49
Definition: OSPFNeighbor.h:57