28 NS_LOG_COMPONENT_DEFINE(
"SatMacTag");
33 NS_OBJECT_ENSURE_REGISTERED(SatMacTag);
37 NS_LOG_FUNCTION(
this);
42 NS_LOG_FUNCTION(
this);
48 static TypeId tid = TypeId(
"ns3::SatMacTag").SetParent<Tag>().AddConstructor<SatMacTag>();
55 NS_LOG_FUNCTION(
this);
63 NS_LOG_FUNCTION(
this << dest);
70 NS_LOG_FUNCTION(
this);
77 NS_LOG_FUNCTION(
this << source);
84 NS_LOG_FUNCTION(
this);
91 NS_LOG_FUNCTION(
this);
99 NS_LOG_FUNCTION(
this << &i);
113 NS_LOG_FUNCTION(
this << &i);
127 NS_LOG_FUNCTION(
this << &os);
135 NS_LOG_FUNCTION(
this);
140 NS_LOG_FUNCTION(
this);
147 TypeId(
"ns3::SatAddressE2ETag").SetParent<Tag>().AddConstructor<SatAddressE2ETag>();
154 NS_LOG_FUNCTION(
this);
162 NS_LOG_FUNCTION(
this << e2eDestAddress);
169 NS_LOG_FUNCTION(
this);
176 NS_LOG_FUNCTION(
this << e2eSourceAddress);
183 NS_LOG_FUNCTION(
this);
190 NS_LOG_FUNCTION(
this);
198 NS_LOG_FUNCTION(
this << &i);
212 NS_LOG_FUNCTION(
this << &i);
226 NS_LOG_FUNCTION(
this << &os);
235 NS_LOG_FUNCTION(
this);
240 NS_LOG_FUNCTION(
this);
246 static TypeId tid = TypeId(
"ns3::SatFlowIdTag").SetParent<Tag>().AddConstructor<SatFlowIdTag>();
253 NS_LOG_FUNCTION(
this);
261 NS_LOG_FUNCTION(
this << (uint32_t)flowId);
268 NS_LOG_FUNCTION(
this);
275 NS_LOG_FUNCTION(
this);
277 return sizeof(uint8_t);
283 NS_LOG_FUNCTION(
this << &i);
291 NS_LOG_FUNCTION(
this << &i);
299 NS_LOG_FUNCTION(
this << &os);
This class implements a tag that carries the satellite MAC of GW and UT.
static const uint32_t ADDRESS_LENGHT
virtual void Deserialize(TagBuffer i)
Deserializes information from buffer to this instance of SatMacTag.
~SatAddressE2ETag()
Destructor for SatMacTag.
void SetE2ESourceAddress(Mac48Address e2eSourceAddress)
Set E2E source MAC address.
virtual uint32_t GetSerializedSize(void) const
Get serialized size of SatMacTag.
virtual void Serialize(TagBuffer i) const
Serializes information to buffer from this instance of SatMacTag.
SatAddressE2ETag()
Default constructor.
static TypeId GetTypeId(void)
Get the type ID.
virtual TypeId GetInstanceTypeId(void) const
Get the type ID of instance.
Mac48Address GetE2ESourceAddress(void) const
Get E2E source MAC address.
Mac48Address m_e2eDestAddress
void SetE2EDestAddress(Mac48Address e2eDestAddress)
Set E2E destination MAC address.
Mac48Address GetE2EDestAddress(void) const
Get E2E destination MAC address.
Mac48Address m_e2eSourceAddress
virtual void Print(std::ostream &os) const
Print time stamp of this instance of SatMacTag.
SatFlowIdTag implements a tag which carries the flow identifier of a packet.
void SetFlowId(uint8_t flowId)
Set flow id.
virtual uint32_t GetSerializedSize(void) const
Get serialized size of SatFlowIdTag.
SatFlowIdTag()
Default constructor.
virtual void Print(std::ostream &os) const
Print time stamp of this instance of SatFlowIdTag.
virtual TypeId GetInstanceTypeId(void) const
Get the type ID of instance.
uint8_t GetFlowId() const
Get flow identifier.
static TypeId GetTypeId(void)
Get the type ID.
~SatFlowIdTag()
Destructor for SatFlowIdTag.
virtual void Deserialize(TagBuffer i)
Deserializes information from buffer to this instance of SatFlowIdTag.
virtual void Serialize(TagBuffer i) const
Serializes information to buffer from this instance of SatFlowIdTag.
SatMacTag()
Default constructor.
static const uint32_t ADDRESS_LENGHT
static TypeId GetTypeId(void)
Get the type ID.
Mac48Address m_sourceAddress
virtual uint32_t GetSerializedSize(void) const
Get serialized size of SatMacTag.
~SatMacTag()
Destructor for SatMacTag.
virtual void Print(std::ostream &os) const
Print time stamp of this instance of SatMacTag.
void SetDestAddress(Mac48Address dest)
Set destination MAC address.
virtual void Deserialize(TagBuffer i)
Deserializes information from buffer to this instance of SatMacTag.
Mac48Address m_destAddress
Mac48Address GetSourceAddress(void) const
Get source MAC address.
Mac48Address GetDestAddress(void) const
Get destination MAC address.
void SetSourceAddress(Mac48Address source)
Set source MAC address.
virtual TypeId GetInstanceTypeId(void) const
Get the type ID of instance.
virtual void Serialize(TagBuffer i) const
Serializes information to buffer from this instance of SatMacTag.
SatArqSequenceNumber is handling the sequence numbers for the ARQ process.