This class implements a tag that carries the MAC address of the sender of the packet. More...
#include "satellite-address-tag.h"
 Inheritance diagram for ns3::SatAddressTag:
 Inheritance diagram for ns3::SatAddressTag: Collaboration diagram for ns3::SatAddressTag:
 Collaboration diagram for ns3::SatAddressTag:| Public Member Functions | |
| SatAddressTag () | |
| / Creates a SatAddressTag instance with an invalid source address.  More... | |
| SatAddressTag (Address addr) | |
| Creates a SatAddressTag instance with the given source address.  More... | |
| virtual void | Deserialize (TagBuffer buf) | 
| Deserializes information from buffer to this instance of Inherited.  More... | |
| virtual TypeId | GetInstanceTypeId () const | 
| Get the type ID of instance.  More... | |
| virtual uint32_t | GetSerializedSize () const | 
| Inherited from Tag base class.  More... | |
| Address | GetSourceAddress () const | 
| Get the source address.  More... | |
| virtual void | Print (std::ostream &os) const | 
| Print time stamp of this instance of Inherited.  More... | |
| virtual void | Serialize (TagBuffer buf) const | 
| Serializes information to buffer from this instance of Inherited.  More... | |
| void | SetSourceAddress (Address addr) | 
| Set the source address.  More... | |
| Static Public Member Functions | |
| static TypeId | GetTypeId () | 
| Inherited from ObjectBase base class.  More... | |
| Private Attributes | |
| Address | m_sourceAddress | 
| The source address.  More... | |
This class implements a tag that carries the MAC address of the sender of the packet.
Address tag is used for statistics purposes.
Definition at line 38 of file satellite-address-tag.h.
| ns3::SatAddressTag::SatAddressTag | ( | ) | 
/ Creates a SatAddressTag instance with an invalid source address.
Definition at line 34 of file satellite-address-tag.cc.
| ns3::SatAddressTag::SatAddressTag | ( | Address | addr | ) | 
Creates a SatAddressTag instance with the given source address.
| addr | the source address. | 
Definition at line 40 of file satellite-address-tag.cc.
| 
 | virtual | 
Deserializes information from buffer to this instance of Inherited.
| buf | Buffer from which the information is deserialized | 
Definition at line 76 of file satellite-address-tag.cc.
References m_sourceAddress.
| 
 | virtual | 
Get the type ID of instance.
Definition at line 56 of file satellite-address-tag.cc.
References GetTypeId().
 Here is the call graph for this function:
 Here is the call graph for this function:| 
 | virtual | 
Inherited from Tag base class.
Definition at line 62 of file satellite-address-tag.cc.
References m_sourceAddress.
| Address ns3::SatAddressTag::GetSourceAddress | ( | ) | const | 
Get the source address.
Definition at line 98 of file satellite-address-tag.cc.
References m_sourceAddress.
Referenced by ns3::SatOrbiterFeederPhy::GetE2ESourceAddress(), ns3::SatLorawanNetDevice::Receive(), ns3::SatNetDevice::Receive(), ns3::SatMac::RxTraces(), ns3::SatOrbiterUserPhy::RxTraces(), ns3::SatPhy::RxTraces(), and ns3::SatLorawanNetDevice::Send().
 Here is the caller graph for this function:
 Here is the caller graph for this function:| 
 | static | 
Inherited from ObjectBase base class.
Definition at line 48 of file satellite-address-tag.cc.
Referenced by ns3::SatOrbiterFeederPhy::GetE2ESourceAddress(), GetInstanceTypeId(), ns3::SatLorawanNetDevice::Receive(), ns3::SatNetDevice::Receive(), ns3::SatMac::RxTraces(), ns3::SatOrbiterUserPhy::RxTraces(), ns3::SatPhy::RxTraces(), and ns3::SatLorawanNetDevice::Send().
 Here is the caller graph for this function:
 Here is the caller graph for this function:| 
 | virtual | 
Print time stamp of this instance of Inherited.
| &os | Output stream to which tag timestamp is printed. | 
Definition at line 84 of file satellite-address-tag.cc.
References m_sourceAddress.
| 
 | virtual | 
Serializes information to buffer from this instance of Inherited.
| buf | Buffer in which the information is serialized | 
Definition at line 68 of file satellite-address-tag.cc.
References m_sourceAddress.
| void ns3::SatAddressTag::SetSourceAddress | ( | Address | addr | ) | 
Set the source address.
| addr | the source address. | 
Definition at line 91 of file satellite-address-tag.cc.
References m_sourceAddress.
| 
 | private | 
The source address.
Definition at line 99 of file satellite-address-tag.h.
Referenced by Deserialize(), GetSerializedSize(), GetSourceAddress(), Print(), Serialize(), and SetSourceAddress().