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

(-)a/src/common/packet.cc (-2 / +2 lines)
 Lines 835-844    Link Here 
835
  m_packetTagList.Add (tag);
835
  m_packetTagList.Add (tag);
836
}
836
}
837
bool 
837
bool 
838
Packet::RemovePacketTag (Tag &tag)
838
Packet::RemovePacketTag (Tag &tag) const
839
{
839
{
840
  NS_LOG_FUNCTION (this << tag.GetInstanceTypeId ().GetName () << tag.GetSerializedSize ());
840
  NS_LOG_FUNCTION (this << tag.GetInstanceTypeId ().GetName () << tag.GetSerializedSize ());
841
  bool found = m_packetTagList.Remove (tag);
841
  bool found = const_cast<PacketTagList&> (m_packetTagList).Remove (tag);
842
  return found;
842
  return found;
843
}
843
}
844
bool 
844
bool 
(-)a/src/common/packet.h (-1 / +1 lines)
 Lines 513-519    Link Here 
513
   * Remove a tag from this packet. This method calls
513
   * Remove a tag from this packet. This method calls
514
   * Tag::Deserialize if the tag is found.
514
   * Tag::Deserialize if the tag is found.
515
   */
515
   */
516
  bool RemovePacketTag (Tag &tag);
516
  bool RemovePacketTag (Tag &tag) const;
517
  /**
517
  /**
518
   * \param tag the tag to search in this packet
518
   * \param tag the tag to search in this packet
519
   * \returns true if the requested tag is found, false
519
   * \returns true if the requested tag is found, false

Return to bug 904