![]() |
5G-LENA nr-v4.0
The 5G/NR module for the ns-3 simulator
|
The packet header for the Packet Data Convergence Protocol (PDCP) packets. More...
#include "nr-pdcp-header.h"
Public Types | |
enum | { CONTROL_PDU = 0 , DATA_PDU = 1 } |
DcBit_t typedef. More... | |
Public Member Functions | |
NrPdcpHeader () | |
Constructor. | |
uint32_t | Deserialize (Buffer::Iterator start) override |
uint8_t | GetDcBit () const |
Get DC bit. | |
TypeId | GetInstanceTypeId () const override |
uint16_t | GetSequenceNumber () const |
Get sequence number. | |
uint32_t | GetSerializedSize () const override |
void | Print (std::ostream &os) const override |
void | Serialize (Buffer::Iterator start) const override |
void | SetDcBit (uint8_t dcBit) |
Set DC bit. | |
void | SetSequenceNumber (uint16_t sequenceNumber) |
Set sequence number. | |
Static Public Member Functions | |
static TypeId | GetTypeId () |
Get the type ID. | |
Public Attributes | |
enum ns3::NrPdcpHeader:: { ... } | DcBit_t |
DcBit_t typedef. | |
The packet header for the Packet Data Convergence Protocol (PDCP) packets.
This class has fields corresponding to those in an PDCP header as well as methods for serialization to and deserialization from a byte buffer. It follows 3GPP TS 36.323 Packet Data Convergence Protocol (PDCP) specification.
Introspection did not find any typical Config paths.
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).
Definition at line 25 of file nr-pdcp-header.h.
anonymous enum |
DcBit_t typedef.
Definition at line 63 of file nr-pdcp-header.h.
ns3::NrPdcpHeader::NrPdcpHeader | ( | ) |
|
override |
Definition at line 24 of file nr-pdcp-header.cc.
|
override |
Definition at line 93 of file nr-pdcp-header.cc.
uint8_t ns3::NrPdcpHeader::GetDcBit | ( | ) | const |
|
override |
Definition at line 65 of file nr-pdcp-header.cc.
uint16_t ns3::NrPdcpHeader::GetSequenceNumber | ( | ) | const |
Get sequence number.
Definition at line 49 of file nr-pdcp-header.cc.
Referenced by ns3::NrPdcp::DoReceivePdu().
|
override |
Definition at line 78 of file nr-pdcp-header.cc.
|
static |
|
override |
Definition at line 71 of file nr-pdcp-header.cc.
|
override |
Definition at line 84 of file nr-pdcp-header.cc.
void ns3::NrPdcpHeader::SetDcBit | ( | uint8_t | dcBit | ) |
Set DC bit.
dcBit | DC bit to set |
Definition at line 31 of file nr-pdcp-header.cc.
Referenced by ns3::NrPdcp::DoTransmitPdcpSdu().
void ns3::NrPdcpHeader::SetSequenceNumber | ( | uint16_t | sequenceNumber | ) |
Set sequence number.
sequenceNumber | sequence number |
Definition at line 37 of file nr-pdcp-header.cc.
Referenced by ns3::NrPdcp::DoTransmitPdcpSdu().
enum { ... } ns3::NrPdcpHeader::DcBit_t |
DcBit_t typedef.
DcBit_t typedef