1.1 --- a/src/contrib/flow-monitor/ipv4-flow-probe.cc Thu Apr 30 14:13:07 2009 +0100
1.2 +++ b/src/contrib/flow-monitor/ipv4-flow-probe.cc Thu Apr 30 14:59:16 2009 +0100
1.3 @@ -24,9 +24,12 @@
1.4 #include "ns3/ipv4-l3-protocol.h"
1.5 #include "ns3/packet.h"
1.6 #include "ns3/flow-monitor.h"
1.7 +#include "ns3/log.h"
1.8
1.9 namespace ns3 {
1.10
1.11 +NS_LOG_COMPONENT_DEFINE ("Ipv4FlowProbe");
1.12 +
1.13
1.14 Ipv4FlowProbe::~Ipv4FlowProbe ()
1.15 {
1.16 @@ -39,6 +42,8 @@
1.17 : FlowProbe (monitor),
1.18 m_classifier (classifier)
1.19 {
1.20 + NS_LOG_FUNCTION (this << node->GetId ());
1.21 +
1.22 Ptr<Ipv4L3Protocol> ipv4 = node->GetObject<Ipv4L3Protocol> ();
1.23
1.24 if (!ipv4->TraceConnectWithoutContext ("SendOutgoing",
1.25 @@ -67,6 +72,7 @@
1.26 if (m_classifier->Classify (ipHeader, ipPayload, &flowId, &packetId))
1.27 {
1.28 uint32_t size = (ipPayload->GetSize () + ipHeader.GetSerializedSize ());
1.29 + NS_LOG_DEBUG ("ReportFirstTx ("<<this<<", "<<flowId<<", "<<packetId<<", "<<size<<");");
1.30 m_flowMonitor->ReportFirstTx (this, flowId, packetId, size);
1.31 }
1.32 }
1.33 @@ -80,6 +86,7 @@
1.34 if (m_classifier->Classify (ipHeader, ipPayload, &flowId, &packetId))
1.35 {
1.36 uint32_t size = (ipPayload->GetSize () + ipHeader.GetSerializedSize ());
1.37 + NS_LOG_DEBUG ("ReportForwarding ("<<this<<", "<<flowId<<", "<<packetId<<", "<<size<<");");
1.38 m_flowMonitor->ReportForwarding (this, flowId, packetId, size);
1.39 }
1.40
1.41 @@ -95,6 +102,7 @@
1.42 if (m_classifier->Classify (ipHeader, ipPayload, &flowId, &packetId))
1.43 {
1.44 uint32_t size = (ipPayload->GetSize () + ipHeader.GetSerializedSize ());
1.45 + NS_LOG_DEBUG ("ReportLastRx ("<<this<<", "<<flowId<<", "<<packetId<<", "<<size<<");");
1.46 m_flowMonitor->ReportLastRx (this, flowId, packetId, size);
1.47 }
1.48 }