From 48fc3e384fae0acdf9ca2c4d4263f71ff1f14b12 Mon Sep 17 00:00:00 2001 From: Alexander Afanasyev Date: Mon, 23 Apr 2012 13:49:37 -0700 Subject: [PATCH] point-to-point, netanim: Adding ChannelID to PointToPointChannel trace --- src/netanim/model/animation-interface.cc | 4 +++- src/netanim/model/animation-interface.h | 3 ++- src/point-to-point/model/point-to-point-channel.cc | 2 +- src/point-to-point/model/point-to-point-channel.h | 3 ++- 4 files changed, 8 insertions(+), 4 deletions(-) diff --git a/src/netanim/model/animation-interface.cc b/src/netanim/model/animation-interface.cc index 9d6dea582..c5c2ebff5 100644 --- a/src/netanim/model/animation-interface.cc +++ b/src/netanim/model/animation-interface.cc @@ -976,7 +976,9 @@ void AnimationInterface::WriteNonP2pLinkProperties (uint32_t id, std::string ipv WriteN (oss.str (), m_f); } -void AnimationInterface::DevTxTrace (std::string context, Ptr p, +void AnimationInterface::DevTxTrace (std::string context, + uint32_t channel, + Ptr p, Ptr tx, Ptr rx, Time txTime, Time rxTime) { diff --git a/src/netanim/model/animation-interface.h b/src/netanim/model/animation-interface.h index f49a10440..23e89c20f 100644 --- a/src/netanim/model/animation-interface.h +++ b/src/netanim/model/animation-interface.h @@ -479,7 +479,8 @@ private: void StopAnimation (bool onlyAnimation = false); void DevTxTrace (std::string context, - Ptr p, + uint32_t, + Ptr p, Ptr tx, Ptr rx, Time txTime, diff --git a/src/point-to-point/model/point-to-point-channel.cc b/src/point-to-point/model/point-to-point-channel.cc index d6a69386a..5bc4c9c0a 100644 --- a/src/point-to-point/model/point-to-point-channel.cc +++ b/src/point-to-point/model/point-to-point-channel.cc @@ -98,7 +98,7 @@ PointToPointChannel::TransmitStart ( m_link[wire].m_dst, p); // Call the tx anim callback on the net device - m_txrxPointToPoint (p, src, m_link[wire].m_dst, txTime, txTime + m_delay); + m_txrxPointToPoint (GetId (), p, src, m_link[wire].m_dst, txTime, txTime + m_delay); return true; } diff --git a/src/point-to-point/model/point-to-point-channel.h b/src/point-to-point/model/point-to-point-channel.h index 4b0b7776e..a364ab9f2 100644 --- a/src/point-to-point/model/point-to-point-channel.h +++ b/src/point-to-point/model/point-to-point-channel.h @@ -137,7 +137,8 @@ private: * * @see class CallBackTraceSource */ - TracedCallback, // Packet being transmitted + TracedCallback, // Packet being transmitted Ptr, // Transmitting NetDevice Ptr, // Receiving NetDevice Time, // Amount of time to transmit the pkt