Config::Connect
("/NodeList/2/DeviceList/*/$ns3::PointToPointNetDevice/TxQueue/Drop",
MakeCallback(&TxDrop));
and then declare
static void TxDrop(std::string path, Ptr<const Packet> packet)
{
// print something, the packet for example
packet->Print(std::cout);
}
This trace source for packet drops is defined in node/queue.cc, so it
should be usable on almost any type of link. Hope this helps.
Regards
Andrea
> --
> You received this message because you are subscribed to the Google Groups "ns-3-users" group.
> To post to this group, send email to ns-3-...@googlegroups.com.
> To unsubscribe from this group, send email to ns-3-users+...@googlegroups.com.
> For more options, visit this group at http://groups.google.com/group/ns-3-users?hl=en.
>
>