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

(-)a/src/aodv/model/aodv-routing-protocol.cc (-13 / +8 lines)
 Lines 1412-1430    Link Here 
1412
  std::pair<Ipv4Address, uint32_t> un;
1418
  std::pair<Ipv4Address, uint32_t> un;
1413
  while (rerrHeader.RemoveUnDestination (un))
1419
  while (rerrHeader.RemoveUnDestination (un))
1414
    {
1420
    {
1415
      if (m_nb.IsNeighbor (un.first))
1421
      for (std::map<Ipv4Address, uint32_t>::const_iterator i =
1416
        SendRerrWhenBreaksLinkToNextHop (un.first);
1422
           dstWithNextHopSrc.begin (); i != dstWithNextHopSrc.end (); ++i)
1417
      else
1423
      {
1418
        {
1424
        if (i->first == un.first)
1419
          for (std::map<Ipv4Address, uint32_t>::const_iterator i =
1425
          {
1420
                 dstWithNextHopSrc.begin (); i != dstWithNextHopSrc.end (); ++i)
1426
            unreachable.insert (un);
1421
            {
1427
          }
1422
              if (i->first == un.first)
1428
      }
1423
                {
1424
                  unreachable.insert (un);
1425
                }
1426
            }
1427
        }
1428
    }
1429
    }
1429
1430
1430
  std::vector<Ipv4Address> precursors;
1431
  std::vector<Ipv4Address> precursors;

Return to bug 1194