tag a set of bytes in a packet More...
#include "tag.h"
Inheritance diagram for ns3::Tag:
Collaboration diagram for ns3::Tag: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, bool permissive=false) 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 Symbols 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
No Attributes are defined for this type
No TraceSources are defined for this type
Group: Network
Size of this type is 8 bytes (on a 64-bit architecture).
New kinds of tags can be created by subclassing from this abstract base class.
|
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 anonymous_namespace{packet-test-suite.cc}::ALargeTestTag, anonymous_namespace{packet-test-suite.cc}::ATestTag< N >, BenchTag< N >, IPv4TestTag, IPv6TestTag, MyTag, ns3::AmpduTag, ns3::AnimByteTag, ns3::aodv::DeferredRouteOutputTag, ns3::DeviceNameTag, ns3::dot11s::HwmpTag, ns3::dsdv::DeferredRouteOutputTag, ns3::EpsBearerTag, ns3::flame::FlameTag, ns3::FlowIdTag, ns3::Ipv4FlowProbeTag, ns3::Ipv4PacketInfoTag, ns3::Ipv6FlowProbeTag, ns3::Ipv6PacketInfoTag, ns3::lrwpan::LrWpanLqiTag, ns3::LtePhyTag, ns3::LteRadioBearerTag, ns3::LteRlcSduStatusTag, ns3::MuSnrTag, ns3::PacketSocketTag, ns3::PdcpTag, ns3::PyVizPacketTag, ns3::RlcTag, ns3::SimpleTag, ns3::SnrTag, ns3::SocketIpTosTag, ns3::SocketIpTtlTag, ns3::SocketIpv6HopLimitTag, ns3::SocketIpv6TclassTag, ns3::SocketPriorityTag, ns3::SocketSetDontFragmentTag, and ns3::TimestampTag.
Referenced by ns3::ByteTagIterator::Item::GetTag(), ns3::PacketTagIterator::Item::GetTag(), ns3::PacketTagList::Peek(), and ns3::PacketTagList::RemoveWriter().
Here is the caller graph for this function:
|
pure virtual |
This method is typically invoked by Packet::AddPacketTag or Packet::AddByteTag just prior to calling Tag::Serialize.
Implemented in anonymous_namespace{packet-test-suite.cc}::ALargeTestTag, anonymous_namespace{packet-test-suite.cc}::ATestTag< N >, BenchTag< N >, IPv4TestTag, IPv6TestTag, MyTag, ns3::AmpduTag, ns3::AnimByteTag, ns3::aodv::DeferredRouteOutputTag, ns3::DeviceNameTag, ns3::dot11s::HwmpTag, ns3::dsdv::DeferredRouteOutputTag, ns3::EpsBearerTag, ns3::flame::FlameTag, ns3::FlowIdTag, ns3::Ipv4FlowProbeTag, ns3::Ipv4PacketInfoTag, ns3::Ipv6FlowProbeTag, ns3::Ipv6PacketInfoTag, ns3::lrwpan::LrWpanLqiTag, ns3::LtePhyTag, ns3::LteRadioBearerTag, ns3::LteRlcSduStatusTag, ns3::MuSnrTag, ns3::PacketSocketTag, ns3::PdcpTag, ns3::PyVizPacketTag, ns3::RlcTag, ns3::SimpleTag, ns3::SnrTag, ns3::SocketIpTosTag, ns3::SocketIpTtlTag, ns3::SocketIpv6HopLimitTag, ns3::SocketIpv6TclassTag, ns3::SocketPriorityTag, ns3::SocketSetDontFragmentTag, and ns3::TimestampTag.
Referenced by ns3::PacketTagList::Add(), ns3::Packet::AddByteTag(), ns3::Packet::AddByteTag(), ns3::Packet::AddPacketTag(), ns3::Packet::RemovePacketTag(), ns3::Packet::ReplacePacketTag(), and ns3::PacketTagList::ReplaceWriter().
Here is the caller graph for this function:
|
static |
Get the type ID.
Definition at line 16 of file tag.cc.
References ns3::TypeId::SetParent().
Here is the call graph for this function:
|
pure virtual |
| os | the stream to print to |
This method is typically invoked from the Packet::PrintByteTags or Packet::PrintPacketTags methods.
Implemented in anonymous_namespace{packet-test-suite.cc}::ALargeTestTag, anonymous_namespace{packet-test-suite.cc}::ATestTag< N >, BenchTag< N >, IPv4TestTag, IPv6TestTag, MyTag, ns3::AmpduTag, ns3::AnimByteTag, ns3::aodv::DeferredRouteOutputTag, ns3::DeviceNameTag, ns3::dot11s::HwmpTag, ns3::dsdv::DeferredRouteOutputTag, ns3::EpsBearerTag, ns3::flame::FlameTag, ns3::FlowIdTag, ns3::Ipv4FlowProbeTag, ns3::Ipv4PacketInfoTag, ns3::Ipv6FlowProbeTag, ns3::Ipv6PacketInfoTag, ns3::lrwpan::LrWpanLqiTag, ns3::LtePhyTag, ns3::LteRadioBearerTag, ns3::LteRlcSduStatusTag, ns3::MuSnrTag, ns3::PacketSocketTag, ns3::PdcpTag, ns3::PyVizPacketTag, ns3::RlcTag, ns3::SimpleTag, ns3::SnrTag, ns3::SocketIpTosTag, ns3::SocketIpTtlTag, ns3::SocketIpv6HopLimitTag, ns3::SocketIpv6TclassTag, ns3::SocketPriorityTag, ns3::SocketSetDontFragmentTag, and ns3::TimestampTag.
Referenced by ns3::Packet::PrintByteTags(), and ns3::Packet::PrintPacketTags().
Here is the caller graph for this function:
|
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 anonymous_namespace{packet-test-suite.cc}::ALargeTestTag, anonymous_namespace{packet-test-suite.cc}::ATestTag< N >, BenchTag< N >, IPv4TestTag, IPv6TestTag, MyTag, ns3::AmpduTag, ns3::AnimByteTag, ns3::aodv::DeferredRouteOutputTag, ns3::DeviceNameTag, ns3::dot11s::HwmpTag, ns3::dsdv::DeferredRouteOutputTag, ns3::EpsBearerTag, ns3::flame::FlameTag, ns3::FlowIdTag, ns3::Ipv4FlowProbeTag, ns3::Ipv4PacketInfoTag, ns3::Ipv6FlowProbeTag, ns3::Ipv6PacketInfoTag, ns3::lrwpan::LrWpanLqiTag, ns3::LtePhyTag, ns3::LteRadioBearerTag, ns3::LteRlcSduStatusTag, ns3::MuSnrTag, ns3::PacketSocketTag, ns3::PdcpTag, ns3::PyVizPacketTag, ns3::RlcTag, ns3::SimpleTag, ns3::SnrTag, ns3::SocketIpTosTag, ns3::SocketIpTtlTag, ns3::SocketIpv6HopLimitTag, ns3::SocketIpv6TclassTag, ns3::SocketPriorityTag, ns3::SocketSetDontFragmentTag, and ns3::TimestampTag.
Referenced by ns3::PacketTagList::Add(), ns3::Packet::AddByteTag(), ns3::Packet::AddByteTag(), and ns3::PacketTagList::ReplaceWriter().
Here is the caller graph for this function: