logging
authorGustavo J. A. M. Carneiro <gjc@inescporto.pt>
Thu, 07 May 2009 12:01:13 +0100
changeset 3967 df150a13f318
parent 3966 204570347ea3
child 3968 d767b88155a7
logging
src/contrib/flow-monitor/ipv4-flow-probe.cc
--- a/src/contrib/flow-monitor/ipv4-flow-probe.cc	Thu May 07 12:00:55 2009 +0100
+++ b/src/contrib/flow-monitor/ipv4-flow-probe.cc	Thu May 07 12:01:13 2009 +0100
@@ -95,7 +95,8 @@
   if (m_classifier->Classify (ipHeader, ipPayload, &flowId, &packetId))
     {
       uint32_t size = (ipPayload->GetSize () + ipHeader.GetSerializedSize ());
-      NS_LOG_DEBUG ("ReportFirstTx ("<<this<<", "<<flowId<<", "<<packetId<<", "<<size<<");");
+      NS_LOG_DEBUG ("ReportFirstTx ("<<this<<", "<<flowId<<", "<<packetId<<", "<<size<<"); "
+                    << ipHeader << *ipPayload);
       m_flowMonitor->ReportFirstTx (this, flowId, packetId, size);
     }
 }
@@ -156,7 +157,8 @@
     {
       uint32_t size = (ipPayload->GetSize () + ipHeader.GetSerializedSize ());
       NS_LOG_DEBUG ("Drop ("<<this<<", "<<flowId<<", "<<packetId<<", "<<size<<", " << reason
-                    << ", destIp=" << ipHeader.GetDestination () << ");");
+                    << ", destIp=" << ipHeader.GetDestination () << "); "
+                    << "HDR: " << ipHeader << " PKT: " << *ipPayload);
 
       DropReason myReason;