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 (void) const =0 |
virtual void | Print (std::ostream &os) const =0 |
virtual void | Serialize (TagBuffer i) const =0 |
![]() | |
virtual | ~ObjectBase () |
void | GetAttribute (std::string name, AttributeValue &value) const |
bool | GetAttributeFailSafe (std::string name, AttributeValue &attribute) const |
virtual TypeId | GetInstanceTypeId (void) const =0 |
void | SetAttribute (std::string name, const AttributeValue &value) |
bool | SetAttributeFailSafe (std::string name, const AttributeValue &value) |
bool | TraceConnect (std::string name, std::string context, const CallbackBase &cb) |
bool | TraceConnectWithoutContext (std::string name, const CallbackBase &cb) |
bool | TraceDisconnect (std::string name, std::string context, const CallbackBase &cb) |
bool | TraceDisconnectWithoutContext (std::string name, const CallbackBase &cb) |
Static Public Member Functions | |
static TypeId | GetTypeId (void) |
Additional Inherited Members | |
![]() | |
void | ConstructSelf (const AttributeConstructionList &attributes) |
virtual void | NotifyConstructionCompleted (void) |
tag a set of bytes in a packet
New kinds of tags can be created by subclassing this base class.
This type is not accessible from the Config system.
No Attributes are defined for this type.
No TraceSources are defined for this type.
|
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::SocketIpv6TclassTag, ns3::SocketIpTosTag, ns3::SocketSetDontFragmentTag, ns3::SocketIpv6HopLimitTag, ns3::SocketIpTtlTag, ns3::SocketAddressTag, ns3::AnimByteTag, BenchTag< N >, ns3::aodv::DeferredRouteOutputTag, ns3::QosTag, ns3::dsdv::DeferredRouteOutputTag, ns3::LteRadioBearerTag, ns3::PyVizPacketTag, ns3::flame::FlameTag, ns3::Ipv6PacketInfoTag, ns3::Ipv4PacketInfoTag, ns3::dot11s::HwmpTag, anonymous_namespace{packet-test-suite.cc}::ATestTag< N >, ns3::TxModeTag, ns3::PdcpTag, ns3::SnrTag, ns3::RlcTag, ns3::LtePhyTag, ns3::Ipv4FlowProbeTag, ns3::LteRlcSduStatusTag, MyTag, ns3::FlowIdTag, and ns3::DelayJitterEstimationTimestampTag.
Referenced by ns3::ByteTagIterator::Item::GetTag(), ns3::PacketTagIterator::Item::GetTag(), ns3::PacketTagList::Peek(), and ns3::PacketTagList::Remove().
|
pure virtual |
This method is typically invoked by Packet::AddPacketTag or Packet::AddByteTag just prior to calling Tag::Serialize.
Implemented in ns3::SocketIpv6TclassTag, ns3::SocketIpTosTag, ns3::SocketSetDontFragmentTag, ns3::SocketIpv6HopLimitTag, ns3::SocketIpTtlTag, ns3::SocketAddressTag, ns3::AnimByteTag, BenchTag< N >, ns3::QosTag, ns3::aodv::DeferredRouteOutputTag, ns3::dsdv::DeferredRouteOutputTag, ns3::LteRadioBearerTag, ns3::PyVizPacketTag, ns3::flame::FlameTag, ns3::Ipv6PacketInfoTag, ns3::Ipv4PacketInfoTag, ns3::dot11s::HwmpTag, anonymous_namespace{packet-test-suite.cc}::ATestTag< N >, ns3::PdcpTag, ns3::RlcTag, ns3::TxModeTag, ns3::LtePhyTag, ns3::SnrTag, ns3::Ipv4FlowProbeTag, ns3::LteRlcSduStatusTag, MyTag, ns3::FlowIdTag, and ns3::DelayJitterEstimationTimestampTag.
Referenced by ns3::PacketTagList::Add(), and ns3::Packet::AddByteTag().
|
static |
Reimplemented from ns3::ObjectBase.
Reimplemented in ns3::SocketIpv6TclassTag, ns3::SocketIpTosTag, ns3::SocketSetDontFragmentTag, ns3::SocketIpv6HopLimitTag, ns3::SocketIpTtlTag, ns3::SocketAddressTag, ns3::AnimByteTag, BenchTag< N >, ns3::PyVizPacketTag, ns3::flame::FlameTag, ns3::aodv::DeferredRouteOutputTag, ns3::dsdv::DeferredRouteOutputTag, ns3::Ipv6PacketInfoTag, ns3::QosTag, ns3::Ipv4PacketInfoTag, ns3::dot11s::HwmpTag, ns3::TxModeTag, ns3::SnrTag, anonymous_namespace{packet-test-suite.cc}::ATestTag< N >, ns3::Ipv4FlowProbeTag, ns3::LteRlcSduStatusTag, ns3::PdcpTag, ns3::RlcTag, ns3::LteRadioBearerTag, ns3::LtePhyTag, MyTag, ns3::FlowIdTag, and ns3::DelayJitterEstimationTimestampTag.
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::SocketIpv6TclassTag, ns3::SocketIpTosTag, ns3::SocketSetDontFragmentTag, ns3::SocketIpv6HopLimitTag, ns3::SocketIpTtlTag, ns3::SocketAddressTag, ns3::AnimByteTag, BenchTag< N >, ns3::aodv::DeferredRouteOutputTag, ns3::QosTag, ns3::dsdv::DeferredRouteOutputTag, ns3::LteRadioBearerTag, anonymous_namespace{packet-test-suite.cc}::ATestTag< N >, ns3::PyVizPacketTag, ns3::flame::FlameTag, ns3::Ipv6PacketInfoTag, ns3::Ipv4PacketInfoTag, ns3::dot11s::HwmpTag, ns3::TxModeTag, ns3::PdcpTag, ns3::RlcTag, ns3::SnrTag, ns3::LtePhyTag, ns3::Ipv4FlowProbeTag, ns3::LteRlcSduStatusTag, MyTag, ns3::FlowIdTag, and ns3::DelayJitterEstimationTimestampTag.
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::SocketIpv6TclassTag, ns3::SocketIpTosTag, ns3::SocketSetDontFragmentTag, ns3::SocketIpv6HopLimitTag, ns3::SocketIpTtlTag, ns3::SocketAddressTag, ns3::AnimByteTag, BenchTag< N >, ns3::QosTag, ns3::aodv::DeferredRouteOutputTag, ns3::dsdv::DeferredRouteOutputTag, ns3::LteRadioBearerTag, ns3::PyVizPacketTag, ns3::flame::FlameTag, ns3::Ipv6PacketInfoTag, ns3::Ipv4PacketInfoTag, ns3::dot11s::HwmpTag, anonymous_namespace{packet-test-suite.cc}::ATestTag< N >, ns3::TxModeTag, ns3::PdcpTag, ns3::SnrTag, ns3::RlcTag, ns3::LtePhyTag, ns3::Ipv4FlowProbeTag, ns3::LteRlcSduStatusTag, MyTag, ns3::FlowIdTag, and ns3::DelayJitterEstimationTimestampTag.
Referenced by ns3::PacketTagList::Add(), and ns3::Packet::AddByteTag().