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

(-)a/src/common/packet.cc (-2 / +2 lines)
 Lines 629-638    Link Here 
629
  m_packetTagList.Add (tag);
629
  m_packetTagList.Add (tag);
630
}
630
}
631
bool 
631
bool 
632
Packet::RemovePacketTag (Tag &tag)
632
Packet::RemovePacketTag (Tag &tag) const
633
{
633
{
634
  NS_LOG_FUNCTION (this << tag.GetInstanceTypeId ().GetName () << tag.GetSerializedSize ());
634
  NS_LOG_FUNCTION (this << tag.GetInstanceTypeId ().GetName () << tag.GetSerializedSize ());
635
  bool found = m_packetTagList.Remove (tag);
635
  bool found = const_cast<PacketTagList*>(&m_packetTagList)->Remove (tag);
636
  return found;
636
  return found;
637
}
637
}
638
bool 
638
bool 
(-)a/src/common/packet.h (-1 / +1 lines)
 Lines 490-496    Link Here 
490
   * Remove a tag from this packet. This method calls
490
   * Remove a tag from this packet. This method calls
491
   * Tag::Deserialize if the tag is found.
491
   * Tag::Deserialize if the tag is found.
492
   */
492
   */
493
  bool RemovePacketTag (Tag &tag);
493
  bool RemovePacketTag (Tag &tag) const;
494
  /**
494
  /**
495
   * \param tag the tag to search in this packet
495
   * \param tag the tag to search in this packet
496
   * \returns true if the requested tag is found, false
496
   * \returns true if the requested tag is found, false

Return to bug 624