A Discrete-Event Network Simulator
API
ns3::QKDInternalTOSTag Class Reference

Introspection did not find any typical Config paths. More...

#include "qkd-internal-tag.h"

+ Inheritance diagram for ns3::QKDInternalTOSTag:
+ Collaboration diagram for ns3::QKDInternalTOSTag:

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)
 
- Public Member Functions inherited from ns3::ObjectBase
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 Public Member Functions inherited from ns3::Tag
static TypeId GetTypeId (void)
 Get the type ID. More...
 
- Static Public Member Functions inherited from ns3::ObjectBase
static TypeId GetTypeId (void)
 Get the type ID. More...
 

Private Attributes

uint8_t m_tos
 TOS value. More...
 

Additional Inherited Members

- Protected Member Functions inherited from ns3::ObjectBase
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...
 

Detailed Description

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.

Member Function Documentation

void ns3::QKDInternalTOSTag::Deserialize ( TagBuffer  i)
virtual
Parameters
ithe 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().

+ Here is the call graph for this function:

TypeId ns3::QKDInternalTOSTag::GetInstanceTypeId ( void  ) const
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.

Returns
The TypeId associated to the most-derived type of this instance.

Implements ns3::ObjectBase.

Definition at line 123 of file qkd-internal-tag.cc.

References ns3::QKDCommandTag::GetTypeId().

+ Here is the call graph for this function:

uint32_t ns3::QKDInternalTOSTag::GetSerializedSize ( void  ) const
virtual
Returns
the number of bytes required to serialize the data of the tag.

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().

+ Here is the caller graph for this function:

TypeId ns3::QKDInternalTOSTag::GetTypeId ( void  )
static

Get the TypeId.

Returns
The TypeId for this class

Definition at line 114 of file qkd-internal-tag.cc.

References ns3::TypeId::SetParent().

+ Here is the call graph for this function:

void ns3::QKDInternalTOSTag::Print ( std::ostream &  os) const
virtual
Parameters
osthe 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.

void ns3::QKDInternalTOSTag::Serialize ( TagBuffer  i) const
virtual
Parameters
ithe 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().

+ Here is the call graph for this function:

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().

+ Here is the caller graph for this function:

Member Data Documentation

uint8_t ns3::QKDInternalTOSTag::m_tos
private

TOS value.

Definition at line 109 of file qkd-internal-tag.h.


The documentation for this class was generated from the following files: