point-to-point, netanim: Adding ChannelID to PointToPointChannel trace

This commit is contained in:
Alexander Afanasyev committed 2013-07-27 15:30:39 -07:00
1 parent 25da81b588
commit 48fc3e384f
4 files changed
+8 -4

No files matched your search

+3 -1
View File
@@ -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<const Packet> p,
void AnimationInterface::DevTxTrace (std::string context,
uint32_t channel,
Ptr<const Packet> p,
Ptr<NetDevice> tx, Ptr<NetDevice> rx,
Time txTime, Time rxTime)
{
+2 -1
View File
@@ -479,7 +479,8 @@ private:
void StopAnimation (bool onlyAnimation = false);
void DevTxTrace (std::string context,
Ptr<const Packet> p,
uint32_t,
Ptr<const Packet> p,
Ptr<NetDevice> tx,
Ptr<NetDevice> rx,
Time txTime,
@@ -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;
}
@@ -137,7 +137,8 @@ private:
*
* @see class CallBackTraceSource
*/
TracedCallback<Ptr<const Packet>, // Packet being transmitted
TracedCallback<uint32_t, // channel ID
Ptr<const Packet>, // Packet being transmitted
Ptr<NetDevice>, // Transmitting NetDevice
Ptr<NetDevice>, // Receiving NetDevice
Time, // Amount of time to transmit the pkt