Introspection did not find any typical Config paths. More...
#include "qkd-internal-tag.h"
Public Member Functions | |
virtual void | Deserialize (TagBuffer i) |
virtual TypeId | GetInstanceTypeId (void) const |
Get the most derived TypeId for this Object. More... | |
virtual uint32_t | GetSerializedSize (void) const |
uint8_t | GetTos (void) const |
virtual void | Print (std::ostream &os) const |
virtual void | Serialize (TagBuffer i) const |
void | SetTos (uint8_t tos) |
![]() | |
virtual | ~ObjectBase () |
Virtual destructor. More... | |
void | GetAttribute (std::string name, AttributeValue &value) const |
Get the value of an attribute, raising fatal errors if unsuccessful. More... | |
bool | GetAttributeFailSafe (std::string name, AttributeValue &value) const |
Get the value of an attribute without raising erros. More... | |
void | SetAttribute (std::string name, const AttributeValue &value) |
Set a single attribute, raising fatal errors if unsuccessful. More... | |
bool | SetAttributeFailSafe (std::string name, const AttributeValue &value) |
Set a single attribute without raising errors. More... | |
bool | TraceConnect (std::string name, std::string context, const CallbackBase &cb) |
Connect a TraceSource to a Callback with a context. More... | |
bool | TraceConnectWithoutContext (std::string name, const CallbackBase &cb) |
Connect a TraceSource to a Callback without a context. More... | |
bool | TraceDisconnect (std::string name, std::string context, const CallbackBase &cb) |
Disconnect from a TraceSource a Callback previously connected with a context. More... | |
bool | TraceDisconnectWithoutContext (std::string name, const CallbackBase &cb) |
Disconnect from a TraceSource a Callback previously connected without a context. More... | |
Static Public Member Functions | |
static TypeId | GetTypeId (void) |
Get the TypeId. More... | |
![]() | |
static TypeId | GetTypeId (void) |
Get the type ID. More... | |
![]() | |
static TypeId | GetTypeId (void) |
Get the type ID. More... | |
Private Attributes | |
uint8_t | m_tos |
TOS value. More... | |
Additional Inherited Members | |
![]() | |
void | ConstructSelf (const AttributeConstructionList &attributes) |
Complete construction of ObjectBase; invoked by derived classes. More... | |
virtual void | NotifyConstructionCompleted (void) |
Notifier called once the ObjectBase is fully constructed. More... | |
![]() | |
static TypeId | GetObjectIid (void) |
Ensure the TypeId for ObjectBase gets fully configured to anchor the inheritance tree properly. More... | |
Introspection did not find any typical Config paths.
QKDInternalTOSTag is used to provide info about the TOS/DSCP value to lower (L2) layer.
No Attributes are defined for this type.
No TraceSources are defined for this type.
Size of this type is 16 bytes (on a 64-bit architecture).
Since TOS/DSCP is usually defind on the Application layer, we use QKDInternalTOSTag to carry the information about the TOS/DSCP to lower layers since encryption and authentication is performed on the L2 layer. Therefore, we need to have TOS/DSCP value on L2 to enqueue packet in the approripate queue and to decide wether packet should be transmitted at all (based on priority).
Definition at line 90 of file qkd-internal-tag.h.
|
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.
Implements ns3::Tag.
Definition at line 139 of file qkd-internal-tag.cc.
References ns3::TagBuffer::ReadU8().
|
virtual |
Get the most derived TypeId for this Object.
This method is typically implemented by ns3::Object::GetInstanceTypeId but some classes which derive from ns3::ObjectBase directly have to implement it themselves.
Implements ns3::ObjectBase.
Definition at line 123 of file qkd-internal-tag.cc.
References ns3::QKDCommandTag::GetTypeId().
|
virtual |
This method is typically invoked by Packet::AddPacketTag or Packet::AddByteTag just prior to calling Tag::Serialize.
Implements ns3::Tag.
Definition at line 128 of file qkd-internal-tag.cc.
uint8_t ns3::QKDInternalTOSTag::GetTos | ( | void | ) | const |
Definition at line 156 of file qkd-internal-tag.cc.
References NS_LOG_FUNCTION, and NS_OBJECT_ENSURE_REGISTERED.
Referenced by ns3::QKDManager::FetchPacketTos().
|
static |
Get the TypeId.
Definition at line 114 of file qkd-internal-tag.cc.
References ns3::TypeId::SetParent().
|
virtual |
os | the stream to print to |
This method is typically invoked from the Packet::PrintByteTags or Packet::PrintPacketTags methods.
Implements ns3::Tag.
Definition at line 144 of file qkd-internal-tag.cc.
References NS_LOG_FUNCTION.
|
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.
Implements ns3::Tag.
Definition at line 133 of file qkd-internal-tag.cc.
References ns3::TagBuffer::WriteU8().
void ns3::QKDInternalTOSTag::SetTos | ( | uint8_t | tos | ) |
Definition at line 150 of file qkd-internal-tag.cc.
References NS_LOG_FUNCTION.
Referenced by ns3::VirtualIpv4L3Protocol::IpForward(), ns3::Ipv4L3Protocol::IpForward(), ns3::Ipv4L3Protocol::Send(), and ns3::VirtualIpv4L3Protocol::Send().
|
private |
TOS value.
Definition at line 109 of file qkd-internal-tag.h.