25 #ifndef IPV6_PACKET_PROBE_H 
   26 #define IPV6_PACKET_PROBE_H 
   28 #include "ns3/object.h" 
   29 #include "ns3/callback.h" 
   30 #include "ns3/boolean.h" 
   31 #include "ns3/nstime.h" 
   32 #include "ns3/packet.h" 
   34 #include "ns3/traced-value.h" 
   35 #include "ns3/simulator.h" 
   36 #include "ns3/probe.h" 
  132 #endif // IPV6_PACKET_PROBE_H 
forward calls to a chain of CallbackAn ns3::TracedCallback has almost exactly the same API as a norma...
TracedCallback< uint32_t, uint32_t > m_outputBytes
Traced Callback: the previous packet's size and the actual packet's size. 
void SetValue(Ptr< const Packet > packet, Ptr< Ipv6 > ipv6, uint32_t interface)
Set a probe value. 
TracedCallback< Ptr< const Packet >, Ptr< Ipv6 >, uint32_t > m_output
Traced Callback: the packet, the Ipv6 object and the interface. 
static TypeId GetTypeId()
Get the type ID. 
virtual bool ConnectByObject(std::string traceSource, Ptr< Object > obj)
connect to a trace source attribute provided by a given object 
uint32_t m_packetSizeOld
The size of the traced packet. 
Ptr< Ipv6 > m_ipv6
The IPv6 object for the traced packet. 
Ptr< const Packet > m_packet
The traced packet. 
void TraceSink(Ptr< const Packet > packet, Ptr< Ipv6 > ipv6, uint32_t interface)
Method to connect to an underlying ns3::TraceSource with arguments of type Ptr...
This class is designed to probe an underlying ns3 TraceSource exporting a packet, an IPv6 object...
a unique identifier for an interface. 
static void SetValueByPath(std::string path, Ptr< const Packet > packet, Ptr< Ipv6 > ipv6, uint32_t interface)
Set a probe value by its name in the Config system. 
virtual ~Ipv6PacketProbe()
virtual void ConnectByPath(std::string path)
connect to a trace source provided by a config path 
uint32_t m_interface
The IPv6 interface for the traced packet.