ns3::SatAddressE2ETag Class Reference

This class implements a tag that carries the satellite MAC of GW and UT. More...

#include "satellite-mac-tag.h"

+ Inheritance diagram for ns3::SatAddressE2ETag:
+ Collaboration diagram for ns3::SatAddressE2ETag:

Public Member Functions

 SatAddressE2ETag ()
 Default constructor. More...
 
 ~SatAddressE2ETag ()
 Destructor for SatMacTag. More...
 
virtual void Deserialize (TagBuffer i)
 Deserializes information from buffer to this instance of SatMacTag. More...
 
Mac48Address GetE2EDestAddress (void) const
 Get E2E destination MAC address. More...
 
Mac48Address GetE2ESourceAddress (void) const
 Get E2E source MAC address. More...
 
virtual TypeId GetInstanceTypeId (void) const
 Get the type ID of instance. More...
 
virtual uint32_t GetSerializedSize (void) const
 Get serialized size of SatMacTag. More...
 
virtual void Print (std::ostream &os) const
 Print time stamp of this instance of SatMacTag. More...
 
virtual void Serialize (TagBuffer i) const
 Serializes information to buffer from this instance of SatMacTag. More...
 
void SetE2EDestAddress (Mac48Address e2eDestAddress)
 Set E2E destination MAC address. More...
 
void SetE2ESourceAddress (Mac48Address e2eSourceAddress)
 Set E2E source MAC address. More...
 

Static Public Member Functions

static TypeId GetTypeId (void)
 Get the type ID. More...
 

Static Public Attributes

static const uint32_t SIZE = 12
 

Private Attributes

Mac48Address m_e2eDestAddress
 
Mac48Address m_e2eSourceAddress
 

Static Private Attributes

static const uint32_t ADDRESS_LENGHT = 6
 

Detailed Description

This class implements a tag that carries the satellite MAC of GW and UT.

It is used for regenerative cases to update MAC address on satellite when packet is forwarded between uplink and downlink.

Definition at line 122 of file satellite-mac-tag.h.

Constructor & Destructor Documentation

◆ SatAddressE2ETag()

ns3::SatAddressE2ETag::SatAddressE2ETag ( )

Default constructor.

Definition at line 131 of file satellite-mac-tag.cc.

◆ ~SatAddressE2ETag()

ns3::SatAddressE2ETag::~SatAddressE2ETag ( )

Destructor for SatMacTag.

Definition at line 136 of file satellite-mac-tag.cc.

Member Function Documentation

◆ Deserialize()

void ns3::SatAddressE2ETag::Deserialize ( TagBuffer  i)
virtual

Deserializes information from buffer to this instance of SatMacTag.

Parameters
iBuffer from which the information is deserialized

Definition at line 208 of file satellite-mac-tag.cc.

References ADDRESS_LENGHT, m_e2eDestAddress, and m_e2eSourceAddress.

◆ GetE2EDestAddress()

◆ GetE2ESourceAddress()

Mac48Address ns3::SatAddressE2ETag::GetE2ESourceAddress ( void  ) const

◆ GetInstanceTypeId()

TypeId ns3::SatAddressE2ETag::GetInstanceTypeId ( void  ) const
virtual

Get the type ID of instance.

Returns
the object TypeId

Definition at line 150 of file satellite-mac-tag.cc.

References GetTypeId().

+ Here is the call graph for this function:

◆ GetSerializedSize()

uint32_t ns3::SatAddressE2ETag::GetSerializedSize ( void  ) const
virtual

Get serialized size of SatMacTag.

Returns
Serialized size in bytes

Definition at line 186 of file satellite-mac-tag.cc.

References ADDRESS_LENGHT.

◆ GetTypeId()

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

Get the type ID.

Returns
the object TypeId

Definition at line 142 of file satellite-mac-tag.cc.

Referenced by GetInstanceTypeId().

+ Here is the caller graph for this function:

◆ Print()

void ns3::SatAddressE2ETag::Print ( std::ostream &  os) const
virtual

Print time stamp of this instance of SatMacTag.

Parameters
&osOutput stream to which tag timestamp is printed.

Definition at line 222 of file satellite-mac-tag.cc.

References m_e2eDestAddress, and m_e2eSourceAddress.

◆ Serialize()

void ns3::SatAddressE2ETag::Serialize ( TagBuffer  i) const
virtual

Serializes information to buffer from this instance of SatMacTag.

Parameters
iBuffer in which the information is serialized

Definition at line 194 of file satellite-mac-tag.cc.

References ADDRESS_LENGHT, m_e2eDestAddress, and m_e2eSourceAddress.

◆ SetE2EDestAddress()

◆ SetE2ESourceAddress()

Member Data Documentation

◆ ADDRESS_LENGHT

const uint32_t ns3::SatAddressE2ETag::ADDRESS_LENGHT = 6
staticprivate

Definition at line 198 of file satellite-mac-tag.h.

Referenced by Deserialize(), GetSerializedSize(), and Serialize().

◆ m_e2eDestAddress

Mac48Address ns3::SatAddressE2ETag::m_e2eDestAddress
private

◆ m_e2eSourceAddress

Mac48Address ns3::SatAddressE2ETag::m_e2eSourceAddress
private

◆ SIZE

const uint32_t ns3::SatAddressE2ETag::SIZE = 12
static

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