--- /home/gs/ns3/ns-allinone-3.25/ns-3.25/src/lbmaodv/model/lbmaodv-routing-protocol.cc 2017-03-16 12:50:06.869302418 +0530 +++ /home/gs/lbmaodv-routing-protocol.cc 2017-03-16 12:58:11.517308816 +0530 @@ -1743,7 +1743,6 @@ std::map unreachable; RoutingTableEntry toNextHop; //OBJECT OF ROUTING TABLE - rerrHeader.SetDestCount(0); if (!m_routingTable.LookupRoute (nextHop, toNextHop)) /** * Lookup routing table entry with destination address dst @@ -1752,11 +1751,7 @@ * \return true on success */ return; - if (toNextHop.GetValidSeqNo ()) - toNextHop.SetSeqNo(toNextHop.GetSeqNo()+1); - - - + toNextHop.GetPrecursors (precursors); /* Inserts precursors in vector prec if they does not yet exist in vector*/ rerrHeader.AddUnDestination (nextHop, toNextHop.GetSeqNo ()); /** * Add unreachable node address and its sequence number in RERR header