--- a/src/netanim/model/animation-interface.cc Sat Mar 31 22:54:27 2012 -0700
+++ b/src/netanim/model/animation-interface.cc Sun Apr 01 06:59:13 2012 -0700
@@ -748,7 +748,19 @@
uint64_t AnimationInterface::GetAnimUidFromPacket (Ptr <const Packet> p)
{
AnimByteTag tag;
- if (p->FindFirstMatchingByteTag (tag))
+ TypeId tid = tag.GetInstanceTypeId ();
+ ByteTagIterator i = p->GetByteTagIterator ();
+ bool found = false;
+ while (i.HasNext ())
+ {
+ ByteTagIterator::Item item = i.Next ();
+ if (tid == item.GetTypeId ())
+ {
+ item.GetTag (tag);
+ found = true;
+ }
+ }
+ if (found)
{
return tag.Get ();
}
@@ -927,7 +939,7 @@
Ptr <Node> n = ndev->GetNode ();
NS_ASSERT (n);
uint64_t AnimUid = GetAnimUidFromPacket (p);
- NS_LOG_INFO ("WimaxRxTrace for packet:" << gAnimUid);
+ NS_LOG_INFO ("WimaxRxTrace for packet:" << AnimUid);
NS_ASSERT (WimaxPacketIsPending (AnimUid) == true);
AnimPacketInfo& pktInfo = pendingWimaxPackets[AnimUid];
pktInfo.ProcessRxBegin (ndev, Simulator::Now ());