The packet header for the Radio Link Control (RLC) protocol packets. More...
#include <lte-rlc-header.h>
Public Types | |
enum | ExtensionBit_t { DATA_FIELD_FOLLOWS = 0, E_LI_FIELDS_FOLLOWS = 1 } |
enum | FramingInfoFirstByte_t { FIRST_BYTE = 0x00, NO_FIRST_BYTE = 0x02 } |
enum | FramingInfoLastByte_t { LAST_BYTE = 0x00, NO_LAST_BYTE = 0x01 } |
Public Member Functions | |
LteRlcHeader () | |
Constructor. More... | |
~LteRlcHeader () | |
virtual uint32_t | Deserialize (Buffer::Iterator start) |
uint8_t | GetFramingInfo () const |
virtual TypeId | GetInstanceTypeId (void) const |
SequenceNumber10 | GetSequenceNumber () const |
virtual uint32_t | GetSerializedSize (void) const |
uint8_t | PopExtensionBit (void) |
uint16_t | PopLengthIndicator (void) |
virtual void | Print (std::ostream &os) const |
void | PushExtensionBit (uint8_t extensionBit) |
void | PushLengthIndicator (uint16_t lengthIndicator) |
virtual void | Serialize (Buffer::Iterator start) const |
void | SetFramingInfo (uint8_t framingInfo) |
void | SetSequenceNumber (SequenceNumber10 sequenceNumber) |
![]() | |
virtual | ~Header () |
![]() | |
virtual | ~ObjectBase () |
Virtual destructor. More... | |
void | GetAttribute (std::string name, AttributeValue &value) const |
bool | GetAttributeFailSafe (std::string name, AttributeValue &attribute) const |
void | SetAttribute (std::string name, const AttributeValue &value) |
bool | SetAttributeFailSafe (std::string name, const AttributeValue &value) |
bool | TraceConnect (std::string name, std::string context, const CallbackBase &cb) |
bool | TraceConnectWithoutContext (std::string name, const CallbackBase &cb) |
bool | TraceDisconnect (std::string name, std::string context, const CallbackBase &cb) |
bool | TraceDisconnectWithoutContext (std::string name, const CallbackBase &cb) |
Static Public Member Functions | |
static TypeId | GetTypeId (void) |
![]() | |
static TypeId | GetTypeId (void) |
![]() | |
static TypeId | GetTypeId (void) |
![]() | |
static TypeId | GetTypeId (void) |
Get the type ID. More... | |
Private Attributes | |
std::list< uint8_t > | m_extensionBits |
uint8_t | m_framingInfo |
uint16_t | m_headerLength |
std::list< uint16_t > | m_lengthIndicators |
SequenceNumber10 | m_sequenceNumber |
Additional Inherited Members | |
![]() | |
void | ConstructSelf (const AttributeConstructionList &attributes) |
virtual void | NotifyConstructionCompleted (void) |
This method is invoked once all member attributes have been initialized. More... | |
The packet header for the Radio Link Control (RLC) protocol packets.
Doxygen introspection did not find any typical Config paths.
This class has fields corresponding to those in an RLC header as well as methods for serialization to and deserialization from a byte buffer. It follows 3GPP TS 36.322 Radio Link Control (RLC) protocol specification.
No Attributes are defined for this type.
No TraceSources are defined for this type.
Definition at line 39 of file lte-rlc-header.h.
Enumerator | |
---|---|
DATA_FIELD_FOLLOWS | |
E_LI_FIELDS_FOLLOWS |
Definition at line 63 of file lte-rlc-header.h.
Enumerator | |
---|---|
FIRST_BYTE | |
NO_FIRST_BYTE |
Definition at line 68 of file lte-rlc-header.h.
Enumerator | |
---|---|
LAST_BYTE | |
NO_LAST_BYTE |
Definition at line 73 of file lte-rlc-header.h.
ns3::LteRlcHeader::LteRlcHeader | ( | ) |
ns3::LteRlcHeader::~LteRlcHeader | ( | ) |
Definition at line 39 of file lte-rlc-header.cc.
References m_framingInfo, m_headerLength, and m_sequenceNumber.
|
virtual |
start | an iterator which points to where the header should written. |
This method is used by Packet::RemoveHeader to re-create a header from the byte buffer of a packet. The data read is expected to match bit-for-bit the representation of this header in real networks.
Implements ns3::Header.
Definition at line 214 of file lte-rlc-header.cc.
References DATA_FIELD_FOLLOWS, E_LI_FIELDS_FOLLOWS, GetSerializedSize(), m_extensionBits, m_framingInfo, m_headerLength, m_lengthIndicators, m_sequenceNumber, ns3::Buffer::Iterator::ReadU8(), and visualizer.core::start().
uint8_t ns3::LteRlcHeader::GetFramingInfo | ( | ) | const |
Definition at line 59 of file lte-rlc-header.cc.
References m_framingInfo.
Referenced by ns3::LteRlcUm::ReassembleAndDeliver().
|
virtual |
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 126 of file lte-rlc-header.cc.
References GetTypeId().
SequenceNumber10 ns3::LteRlcHeader::GetSequenceNumber | ( | void | ) | const |
Definition at line 65 of file lte-rlc-header.cc.
References m_sequenceNumber.
Referenced by ns3::LteRlcUm::ReassembleAndDeliver().
|
virtual |
This method is used by Packet::AddHeader to store a header into the byte buffer of a packet. This method should return the number of bytes which are needed to store the full header data by Serialize.
Implements ns3::Header.
Definition at line 163 of file lte-rlc-header.cc.
References m_headerLength.
Referenced by Deserialize().
|
static |
Definition at line 116 of file lte-rlc-header.cc.
References ns3::TypeId::SetParent().
Referenced by GetInstanceTypeId().
uint8_t ns3::LteRlcHeader::PopExtensionBit | ( | void | ) |
Definition at line 97 of file lte-rlc-header.cc.
References m_extensionBits.
Referenced by ns3::LteRlcUm::ReassembleAndDeliver().
uint16_t ns3::LteRlcHeader::PopLengthIndicator | ( | void | ) |
Definition at line 106 of file lte-rlc-header.cc.
References m_lengthIndicators.
Referenced by ns3::LteRlcUm::ReassembleAndDeliver().
|
virtual |
os | output stream This method is used by Packet::Print to print the content of a trailer as ascii data to a c++ output stream. Although the trailer is free to format its output as it wishes, it is recommended to follow a few rules to integrate with the packet pretty printer: start with flags, small field values located between a pair of parens. Values should be separated by whitespace. Follow the parens with the important fields, separated by whitespace. i.e.: (field1 val1 field2 val2 field3 val3) field4 val4 field5 val5 |
Implements ns3::Header.
Definition at line 131 of file lte-rlc-header.cc.
References m_extensionBits, m_framingInfo, m_headerLength, m_lengthIndicators, and m_sequenceNumber.
void ns3::LteRlcHeader::PushExtensionBit | ( | uint8_t | extensionBit | ) |
Definition at line 72 of file lte-rlc-header.cc.
References m_extensionBits, and m_headerLength.
void ns3::LteRlcHeader::PushLengthIndicator | ( | uint16_t | lengthIndicator | ) |
Definition at line 90 of file lte-rlc-header.cc.
References m_lengthIndicators.
|
virtual |
start | an iterator which points to where the header should be written. |
This method is used by Packet::AddHeader to store a header into the byte buffer of a packet. The data written is expected to match bit-for-bit the representation of this header in a real network.
Implements ns3::Header.
Definition at line 168 of file lte-rlc-header.cc.
References ns3::SequenceNumber10::GetValue(), m_extensionBits, m_framingInfo, m_lengthIndicators, m_sequenceNumber, visualizer.core::start(), and ns3::Buffer::Iterator::WriteU8().
void ns3::LteRlcHeader::SetFramingInfo | ( | uint8_t | framingInfo | ) |
Definition at line 47 of file lte-rlc-header.cc.
References m_framingInfo.
void ns3::LteRlcHeader::SetSequenceNumber | ( | SequenceNumber10 | sequenceNumber | ) |
Definition at line 53 of file lte-rlc-header.cc.
References m_sequenceNumber.
|
private |
Definition at line 91 of file lte-rlc-header.h.
Referenced by Deserialize(), PopExtensionBit(), Print(), PushExtensionBit(), and Serialize().
|
private |
Definition at line 88 of file lte-rlc-header.h.
Referenced by Deserialize(), GetFramingInfo(), Print(), Serialize(), SetFramingInfo(), and ~LteRlcHeader().
|
private |
Definition at line 87 of file lte-rlc-header.h.
Referenced by Deserialize(), GetSerializedSize(), Print(), PushExtensionBit(), and ~LteRlcHeader().
|
private |
Definition at line 92 of file lte-rlc-header.h.
Referenced by Deserialize(), PopLengthIndicator(), Print(), PushLengthIndicator(), and Serialize().
|
private |
Definition at line 89 of file lte-rlc-header.h.
Referenced by Deserialize(), GetSequenceNumber(), Print(), Serialize(), SetSequenceNumber(), and ~LteRlcHeader().