View | Details | Raw Unified | Return to bug 2650
Collapse All | Expand All

(-)/home/gs/ns3/ns-allinone-3.25/ns-3.25/src/lbmaodv/model/lbmaodv-routing-protocol.cc (-6 / +1 lines)
 Lines 1743-1749    Link Here 
1743
  std::map<Ipv4Address, uint32_t> unreachable;
1743
  std::map<Ipv4Address, uint32_t> unreachable;
1744
                                           
1744
                                           
1745
  RoutingTableEntry toNextHop;                                        //OBJECT OF ROUTING TABLE
1745
  RoutingTableEntry toNextHop;                                        //OBJECT OF ROUTING TABLE
1746
  rerrHeader.SetDestCount(0);   
1747
  
1746
  
1748
  if (!m_routingTable.LookupRoute (nextHop, toNextHop))               /**
1747
  if (!m_routingTable.LookupRoute (nextHop, toNextHop))               /**
1749
                                                                        * Lookup routing table entry with destination address dst
1748
                                                                        * Lookup routing table entry with destination address dst
 Lines 1752-1762    Link Here 
1752
                                                                        * \return true on success
1751
                                                                        * \return true on success
1753
                                                                      */   
1752
                                                                      */   
1754
    return;
1753
    return;
1755
        if (toNextHop.GetValidSeqNo ())    
1754
       
1756
            toNextHop.SetSeqNo(toNextHop.GetSeqNo()+1);  
1757
1758
1759
        
1760
  toNextHop.GetPrecursors (precursors);                    /* Inserts precursors in vector prec if they does not yet exist in vector*/
1755
  toNextHop.GetPrecursors (precursors);                    /* Inserts precursors in vector prec if they does not yet exist in vector*/
1761
  rerrHeader.AddUnDestination (nextHop, toNextHop.GetSeqNo ()); /**
1756
  rerrHeader.AddUnDestination (nextHop, toNextHop.GetSeqNo ()); /**
1762
                                                                 * Add unreachable node address and its sequence number in RERR header
1757
                                                                 * Add unreachable node address and its sequence number in RERR header

Return to bug 2650