tag a set of bytes in a packet More...
#include "tag.h"
Public Member Functions | |
virtual void | Deserialize (TagBuffer i)=0 |
virtual uint32_t | GetSerializedSize () const =0 |
virtual void | Print (std::ostream &os) const =0 |
virtual void | Serialize (TagBuffer i) const =0 |
Public Member Functions inherited from ns3::ObjectBase | |
virtual | ~ObjectBase () |
Virtual destructor. | |
void | GetAttribute (std::string name, AttributeValue &value) const |
Get the value of an attribute, raising fatal errors if unsuccessful. | |
bool | GetAttributeFailSafe (std::string name, AttributeValue &value) const |
Get the value of an attribute without raising errors. | |
virtual TypeId | GetInstanceTypeId () const =0 |
Get the most derived TypeId for this Object. | |
void | SetAttribute (std::string name, const AttributeValue &value) |
Set a single attribute, raising fatal errors if unsuccessful. | |
bool | SetAttributeFailSafe (std::string name, const AttributeValue &value) |
Set a single attribute without raising errors. | |
bool | TraceConnect (std::string name, std::string context, const CallbackBase &cb) |
Connect a TraceSource to a Callback with a context. | |
bool | TraceConnectWithoutContext (std::string name, const CallbackBase &cb) |
Connect a TraceSource to a Callback without a context. | |
bool | TraceDisconnect (std::string name, std::string context, const CallbackBase &cb) |
Disconnect from a TraceSource a Callback previously connected with a context. | |
bool | TraceDisconnectWithoutContext (std::string name, const CallbackBase &cb) |
Disconnect from a TraceSource a Callback previously connected without a context. | |
Static Public Member Functions | |
static TypeId | GetTypeId () |
Get the type ID. | |
Static Public Member Functions inherited from ns3::ObjectBase | |
static TypeId | GetTypeId () |
Get the type ID. | |
Additional Inherited Members | |
Protected Member Functions inherited from ns3::ObjectBase | |
void | ConstructSelf (const AttributeConstructionList &attributes) |
Complete construction of ObjectBase; invoked by derived classes. | |
virtual void | NotifyConstructionCompleted () |
Notifier called once the ObjectBase is fully constructed. | |
Related Functions inherited from ns3::ObjectBase | |
static TypeId | GetObjectIid () |
Ensure the TypeId for ObjectBase gets fully configured to anchor the inheritance tree properly. | |
tag a set of bytes in a packet
Introspection did not find any typical Config paths.
New kinds of tags can be created by subclassing from this abstract base class.
No Attributes are defined for this type.
No TraceSources are defined for this type.
Size of this type is 8 bytes (on a 64-bit architecture).
|
pure virtual |
i | the buffer to read data from. |
Read the content of the tag from the provided tag buffer. DO NOT attempt to read more bytes than you wrote with Tag::Serialize.
Implemented in ns3::Ipv4FlowProbeTag, ns3::Ipv6FlowProbeTag, anonymous_namespace{packet-test-suite.cc}::ATestTag< N >, anonymous_namespace{packet-test-suite.cc}::ALargeTestTag, ns3::FlowIdTag, ns3::PyVizPacketTag, BenchTag< N >, IPv4TestTag, IPv6TestTag, ns3::aodv::DeferredRouteOutputTag, ns3::dsdv::DeferredRouteOutputTag, ns3::Ipv4PacketInfoTag, ns3::Ipv6PacketInfoTag, ns3::LrWpanLqiTag, ns3::EpsBearerTag, ns3::PdcpTag, ns3::LtePhyTag, ns3::LteRadioBearerTag, ns3::LteRlcSduStatusTag, ns3::RlcTag, ns3::dot11s::HwmpTag, ns3::flame::FlameTag, ns3::AnimByteTag, MyTag, ns3::SocketIpTtlTag, ns3::SocketIpv6HopLimitTag, ns3::SocketSetDontFragmentTag, ns3::SocketIpTosTag, ns3::SocketPriorityTag, ns3::SocketIpv6TclassTag, ns3::PacketSocketTag, ns3::DeviceNameTag, ns3::SimpleTag, ns3::TimestampTag, ns3::AmpduTag, ns3::MuSnrTag, and ns3::SnrTag.
Referenced by ns3::ByteTagIterator::Item::GetTag(), ns3::PacketTagIterator::Item::GetTag(), ns3::PacketTagList::Peek(), and ns3::PacketTagList::RemoveWriter().
|
pure virtual |
This method is typically invoked by Packet::AddPacketTag or Packet::AddByteTag just prior to calling Tag::Serialize.
Implemented in ns3::aodv::DeferredRouteOutputTag, ns3::dsdv::DeferredRouteOutputTag, ns3::Ipv4FlowProbeTag, ns3::Ipv6FlowProbeTag, ns3::Ipv4PacketInfoTag, ns3::Ipv6PacketInfoTag, IPv4TestTag, IPv6TestTag, ns3::LrWpanLqiTag, ns3::EpsBearerTag, ns3::PdcpTag, ns3::LtePhyTag, ns3::LteRadioBearerTag, ns3::LteRlcSduStatusTag, ns3::RlcTag, ns3::dot11s::HwmpTag, ns3::flame::FlameTag, ns3::AnimByteTag, MyTag, ns3::SocketIpTtlTag, ns3::SocketIpv6HopLimitTag, ns3::SocketSetDontFragmentTag, ns3::SocketIpTosTag, ns3::SocketPriorityTag, ns3::SocketIpv6TclassTag, anonymous_namespace{packet-test-suite.cc}::ATestTag< N >, anonymous_namespace{packet-test-suite.cc}::ALargeTestTag, ns3::FlowIdTag, ns3::PacketSocketTag, ns3::DeviceNameTag, ns3::SimpleTag, ns3::TimestampTag, ns3::PyVizPacketTag, ns3::AmpduTag, ns3::MuSnrTag, ns3::SnrTag, and BenchTag< N >.
Referenced by ns3::PacketTagList::Add(), ns3::Packet::AddByteTag(), ns3::Packet::AddPacketTag(), ns3::Packet::RemovePacketTag(), ns3::Packet::ReplacePacketTag(), and ns3::PacketTagList::ReplaceWriter().
|
static |
Get the type ID.
Definition at line 27 of file tag.cc.
References ns3::TypeId::SetParent().
|
pure virtual |
os | the stream to print to |
This method is typically invoked from the Packet::PrintByteTags or Packet::PrintPacketTags methods.
Implemented in ns3::aodv::DeferredRouteOutputTag, ns3::dsdv::DeferredRouteOutputTag, ns3::Ipv4FlowProbeTag, ns3::Ipv6FlowProbeTag, ns3::Ipv4PacketInfoTag, ns3::Ipv6PacketInfoTag, IPv4TestTag, IPv6TestTag, ns3::LrWpanLqiTag, ns3::EpsBearerTag, ns3::PdcpTag, ns3::LtePhyTag, ns3::LteRadioBearerTag, ns3::LteRlcSduStatusTag, ns3::RlcTag, ns3::dot11s::HwmpTag, ns3::flame::FlameTag, ns3::AnimByteTag, MyTag, ns3::SocketIpTtlTag, ns3::SocketIpv6HopLimitTag, ns3::SocketSetDontFragmentTag, ns3::SocketIpTosTag, ns3::SocketPriorityTag, ns3::SocketIpv6TclassTag, anonymous_namespace{packet-test-suite.cc}::ATestTag< N >, anonymous_namespace{packet-test-suite.cc}::ALargeTestTag, ns3::FlowIdTag, ns3::PacketSocketTag, ns3::DeviceNameTag, ns3::SimpleTag, ns3::TimestampTag, ns3::PyVizPacketTag, ns3::AmpduTag, ns3::MuSnrTag, ns3::SnrTag, and BenchTag< N >.
Referenced by ns3::Packet::PrintByteTags(), and ns3::Packet::PrintPacketTags().
|
pure virtual |
i | the buffer to write data into. |
Write the content of the tag in the provided tag buffer. DO NOT attempt to write more bytes than you requested with Tag::GetSerializedSize.
Implemented in ns3::Ipv4FlowProbeTag, ns3::Ipv6FlowProbeTag, anonymous_namespace{packet-test-suite.cc}::ATestTag< N >, anonymous_namespace{packet-test-suite.cc}::ALargeTestTag, ns3::FlowIdTag, ns3::PyVizPacketTag, BenchTag< N >, IPv4TestTag, IPv6TestTag, ns3::aodv::DeferredRouteOutputTag, ns3::dsdv::DeferredRouteOutputTag, ns3::Ipv4PacketInfoTag, ns3::Ipv6PacketInfoTag, ns3::LrWpanLqiTag, ns3::EpsBearerTag, ns3::PdcpTag, ns3::LtePhyTag, ns3::LteRadioBearerTag, ns3::LteRlcSduStatusTag, ns3::RlcTag, ns3::dot11s::HwmpTag, ns3::flame::FlameTag, ns3::AnimByteTag, MyTag, ns3::SocketIpTtlTag, ns3::SocketIpv6HopLimitTag, ns3::SocketSetDontFragmentTag, ns3::SocketIpTosTag, ns3::SocketPriorityTag, ns3::SocketIpv6TclassTag, ns3::PacketSocketTag, ns3::DeviceNameTag, ns3::SimpleTag, ns3::TimestampTag, ns3::AmpduTag, ns3::MuSnrTag, and ns3::SnrTag.
Referenced by ns3::PacketTagList::Add(), ns3::Packet::AddByteTag(), and ns3::PacketTagList::ReplaceWriter().