This commit is contained in:
Kirill Andreev
2009-08-28 23:15:26 +04:00
parent 87a315ca32
commit 3c972084ee
2 changed files with 3 additions and 4 deletions

View File

@@ -355,8 +355,7 @@ HwmpProtocolMac::ForwardPerr (std::vector<HwmpProtocol::FailedDestination> faile
receivers.push_back (Mac48Address::GetBroadcast ());
}
//Send Management frame
for (std::vector<Mac48Address>::const_iterator i = m_myPerr.receivers.begin (); i
!= m_myPerr.receivers.end (); i++)
for (std::vector<Mac48Address>::const_iterator i = receivers.begin (); i != receivers.end (); i++)
{
hdr.SetAddr1 (*i);
m_stats.txPerr++;

View File

@@ -626,12 +626,12 @@ void
HwmpProtocol::ReceivePerr (std::vector<FailedDestination> destinations, Mac48Address from, uint32_t interface, Mac48Address fromMp)
{
//Acceptance cretirea:
NS_LOG_DEBUG("I am "<<GetAddress ()<<", received PERR from "<<from);
NS_LOG_DEBUG ("I am "<<GetAddress ()<<", received PERR from "<<from);
std::vector<FailedDestination> retval;
HwmpRtable::LookupResult result;
for (unsigned int i = 0; i < destinations.size (); i ++)
{
result = m_rtable->LookupReactive (destinations[i].destination);
result = m_rtable->LookupReactiveExpired (destinations[i].destination);
if (!(
(result.retransmitter != from) ||
(result.ifIndex != interface) ||