38 MessageHandler *messageHandler = neighbor->getInterface()->getArea()->getRouter()->getMessageHandler();
40 messageHandler->clearTimer(neighbor->getInactivityTimer());
46 MessageHandler *messageHandler = neighbor->getInterface()->getArea()->getRouter()->getMessageHandler();
47 messageHandler->startTimer(neighbor->getPollTimer(), neighbor->getInterface()->getPollInterval());
56 MessageHandler *messageHandler = neighbor->getInterface()->getArea()->getRouter()->getMessageHandler();
57 messageHandler->clearTimer(neighbor->getInactivityTimer());
58 messageHandler->startTimer(neighbor->getInactivityTimer(), neighbor->getRouterDeadInterval());
61 if (!neighbor->needAdjacency()) {
63 changeState(neighbor,
new NeighborStateTwoWay,
this);
67 MessageHandler *messageHandler = neighbor->getInterface()->getArea()->getRouter()->getMessageHandler();
69 neighbor->incrementDDSequenceNumber();
70 neighbor->sendDatabaseDescriptionPacket(
true);
71 messageHandler->startTimer(neighbor->getDDRetransmissionTimer(), neighbor->getInterface()->getRetransmissionInterval());
72 changeState(neighbor,
new NeighborStateExchangeStart,
this);
75 if (neighbor->isLinkStateRequestListEmpty()) {
76 MessageHandler *messageHandler = neighbor->getInterface()->getArea()->getRouter()->getMessageHandler();
77 messageHandler->startTimer(neighbor->getDDRetransmissionTimer(), neighbor->getRouterDeadInterval());
78 neighbor->clearRequestRetransmissionTimer();
82 MessageHandler *messageHandler = neighbor->getInterface()->getArea()->getRouter()->getMessageHandler();
83 messageHandler->startTimer(neighbor->getDDRetransmissionTimer(), neighbor->getRouterDeadInterval());
84 changeState(neighbor,
new NeighborStateLoading,
this);
88 neighbor->retransmitUpdatePacket();
89 neighbor->startUpdateRetransmissionTimer();
92 neighbor->sendLinkStateRequestPacket();
93 neighbor->startRequestRetransmissionTimer();
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:46
Definition: OSPFNeighbor.h:49
Definition: OSPFNeighbor.h:57