src/devices/mesh/dot11s/hwmp-mac-plugin.cc
changeset 5083 5b154b30a8a1
parent 5063 97b947e83640
equal deleted inserted replaced
5082:528da3d1e5a4 5083:5b154b30a8a1
    76     default:
    76     default:
    77       NS_FATAL_ERROR ("6-address scheme is not yet supported and 4-address extension is not supposed to be used for data frames.");
    77       NS_FATAL_ERROR ("6-address scheme is not yet supported and 4-address extension is not supposed to be used for data frames.");
    78   };
    78   };
    79   tag.SetSeqno (meshHdr.GetMeshSeqno ());
    79   tag.SetSeqno (meshHdr.GetMeshSeqno ());
    80   tag.SetTtl (meshHdr.GetMeshTtl ());
    80   tag.SetTtl (meshHdr.GetMeshTtl ());
    81   if(m_protocol->GetAddress() != destination)
    81   packet->AddPacketTag(tag);
    82     packet->AddPacketTag(tag);
    82  
    83   
       
    84   if (destination == Mac48Address::GetBroadcast ())
    83   if (destination == Mac48Address::GetBroadcast ())
    85     if(m_protocol->DropDataFrame (meshHdr.GetMeshSeqno (), source))
    84     if(m_protocol->DropDataFrame (meshHdr.GetMeshSeqno (), source))
    86       return false;
    85       return false;
    87   
    86   
    88   return true;
    87   return true;