equal
deleted
inserted
replaced
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; |