src/devices/mesh/dot11s/ie-dot11s-preq.cc
changeset 5423 79ff6ad1adbb
parent 5184 a109c38131dd
child 5473 3827a2a06b38
equal deleted inserted replaced
5422:21a4f34518ff 5423:79ff6ad1adbb
   371     }
   371     }
   372 }
   372 }
   373 void
   373 void
   374 IePreq::ClearDestinationAddressElements ()
   374 IePreq::ClearDestinationAddressElements ()
   375 {
   375 {
   376   int i;
       
   377   for (std::vector<Ptr<DestinationAddressUnit> >::iterator j = m_destinations.begin (); j
   376   for (std::vector<Ptr<DestinationAddressUnit> >::iterator j = m_destinations.begin (); j
   378       != m_destinations.end (); j++)
   377       != m_destinations.end (); j++)
   379     {
   378     {
   380       (*j) = 0;
   379       (*j) = 0;
   381     }
       
   382   for (i = 0; i < m_destCount; i++)
       
   383     {
       
   384       m_destinations.pop_back ();
       
   385     }
   380     }
   386   m_destinations.clear ();
   381   m_destinations.clear ();
   387   m_destCount = 0;
   382   m_destCount = 0;
   388 }
   383 }
   389 bool
   384 bool