21 #include "ndn-l3-tracer.h"
23 #include "ns3/packet.h"
24 #include "ns3/config.h"
25 #include "ns3/names.h"
26 #include "ns3/callback.h"
27 #include "ns3/ndn-forwarding-strategy.h"
29 #include <boost/lexical_cast.hpp>
31 #include "ns3/ndn-face.h"
32 #include "ns3/ndn-interest.h"
33 #include "ns3/ndn-data.h"
34 #include "ns3/ndn-pit-entry.h"
41 L3Tracer::L3Tracer (Ptr<Node> node)
44 m_node = boost::lexical_cast<
string> (m_nodePtr->GetId ());
48 string name = Names::FindName (node);
71 fw->TraceConnectWithoutContext (
"OutInterests", MakeCallback (&L3Tracer::OutInterests,
this));
72 fw->TraceConnectWithoutContext (
"InInterests", MakeCallback (&L3Tracer::InInterests,
this));
73 fw->TraceConnectWithoutContext (
"DropInterests", MakeCallback (&L3Tracer::DropInterests,
this));
75 fw->TraceConnectWithoutContext (
"OutData", MakeCallback (&L3Tracer::OutData,
this));
76 fw->TraceConnectWithoutContext (
"InData", MakeCallback (&L3Tracer::InData,
this));
77 fw->TraceConnectWithoutContext (
"DropData", MakeCallback (&L3Tracer::DropData,
this));
80 fw->TraceConnectWithoutContext (
"OutNacks", MakeCallback (&L3Tracer::OutNacks,
this));
81 fw->TraceConnectWithoutContext (
"InNacks", MakeCallback (&L3Tracer::InNacks,
this));
82 fw->TraceConnectWithoutContext (
"DropNacks", MakeCallback (&L3Tracer::DropNacks,
this));
85 fw->TraceConnectWithoutContext (
"SatisfiedInterests", MakeCallback (&L3Tracer::SatisfiedInterests,
this));
86 fw->TraceConnectWithoutContext (
"TimedOutInterests", MakeCallback (&L3Tracer::TimedOutInterests,
this));
L3Tracer(Ptr< Node > node)
Trace constructor that attaches to the node using node pointer.
virtual ~L3Tracer()
Destructor.
Abstract base class for Ndn forwarding strategies.