Index: src/helper/point-to-point-helper.cc |
=================================================================== |
--- a/src/helper/point-to-point-helper.cc |
+++ b/src/helper/point-to-point-helper.cc |
@@ -171,6 +171,9 @@ |
asciiTraceHelper.HookDefaultDropSinkWithoutContext<Queue> (queue, "Drop", theStream); |
asciiTraceHelper.HookDefaultDequeueSinkWithoutContext<Queue> (queue, "Dequeue", theStream); |
+ // PhyRxDrop trace source for "d" event |
+ asciiTraceHelper.HookDefaultDropSinkWithoutContext<PointToPointNetDevice> (device, "PhyRxDrop", theStream); |
+ |
return; |
} |
@@ -204,6 +207,10 @@ |
oss.str (""); |
oss << "/NodeList/" << nodeid << "/DeviceList/" << deviceid << "/$ns3::PointToPointNetDevice/TxQueue/Drop"; |
Config::Connect (oss.str (), MakeBoundCallback (&AsciiTraceHelper::DefaultDropSinkWithContext, stream)); |
+ |
+ oss.str (""); |
+ oss << "/NodeList/" << nodeid << "/DeviceList/" << deviceid << "/$ns3::PointToPointNetDevice/PhyRxDrop"; |
+ Config::Connect (oss.str (), MakeBoundCallback (&AsciiTraceHelper::DefaultDropSinkWithContext, stream)); |
} |
NetDeviceContainer |