A Discrete-Event Network Simulator
Home
Tutorials ▼
English
Documentation ▼
Installation
Manual
Models
Contributing
Wiki
Development ▼
API Docs
Issue Tracker
Merge Requests
API
lte-pdcp-header.h
Go to the documentation of this file.
1
/*
2
* Copyright (c) 2011 Centre Tecnologic de Telecomunicacions de Catalunya (CTTC)
3
*
4
* This program is free software; you can redistribute it and/or modify
5
* it under the terms of the GNU General Public License version 2 as
6
* published by the Free Software Foundation;
7
*
8
* This program is distributed in the hope that it will be useful,
9
* but WITHOUT ANY WARRANTY; without even the implied warranty of
10
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
11
* GNU General Public License for more details.
12
*
13
* You should have received a copy of the GNU General Public License
14
* along with this program; if not, write to the Free Software
15
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
16
*
17
* Author: Manuel Requena <manuel.requena@cttc.es>
18
*/
19
20
#ifndef LTE_PDCP_HEADER_H
21
#define LTE_PDCP_HEADER_H
22
23
#include "ns3/header.h"
24
25
#include <list>
26
27
namespace
ns3
28
{
29
38
class
LtePdcpHeader
:
public
Header
39
{
40
public
:
46
LtePdcpHeader
();
47
~LtePdcpHeader
()
override
;
48
54
void
SetDcBit
(uint8_t dcBit);
60
void
SetSequenceNumber
(uint16_t sequenceNumber);
61
67
uint8_t
GetDcBit
()
const
;
73
uint16_t
GetSequenceNumber
()
const
;
74
76
enum
77
{
78
CONTROL_PDU
= 0,
79
DATA_PDU
= 1
80
}
DcBit_t
;
81
86
static
TypeId
GetTypeId
();
87
TypeId
GetInstanceTypeId
()
const override
;
88
void
Print
(std::ostream& os)
const override
;
89
uint32_t
GetSerializedSize
()
const override
;
90
void
Serialize
(
Buffer::Iterator
start
)
const override
;
91
uint32_t
Deserialize
(
Buffer::Iterator
start
)
override
;
92
93
private
:
94
uint8_t
m_dcBit
;
95
uint16_t
m_sequenceNumber
;
96
};
97
98
}
// namespace ns3
99
100
#endif
// LTE_PDCP_HEADER_H
ns3::Buffer::Iterator
iterator in a Buffer instance
Definition:
buffer.h:100
ns3::Header
Protocol header serialization and deserialization.
Definition:
header.h:44
ns3::Header::Deserialize
virtual uint32_t Deserialize(Buffer::Iterator start)=0
Deserialize the object from a buffer iterator.
ns3::LtePdcpHeader
The packet header for the Packet Data Convergence Protocol (PDCP) packets.
Definition:
lte-pdcp-header.h:39
ns3::LtePdcpHeader::GetSequenceNumber
uint16_t GetSequenceNumber() const
Get sequence number.
Definition:
lte-pdcp-header.cc:62
ns3::LtePdcpHeader::SetDcBit
void SetDcBit(uint8_t dcBit)
Set DC bit.
Definition:
lte-pdcp-header.cc:44
ns3::LtePdcpHeader::Print
void Print(std::ostream &os) const override
Definition:
lte-pdcp-header.cc:84
ns3::LtePdcpHeader::m_dcBit
uint8_t m_dcBit
the DC bit
Definition:
lte-pdcp-header.h:94
ns3::LtePdcpHeader::GetTypeId
static TypeId GetTypeId()
Get the type ID.
Definition:
lte-pdcp-header.cc:68
ns3::LtePdcpHeader::CONTROL_PDU
@ CONTROL_PDU
Definition:
lte-pdcp-header.h:78
ns3::LtePdcpHeader::DATA_PDU
@ DATA_PDU
Definition:
lte-pdcp-header.h:79
ns3::LtePdcpHeader::GetSerializedSize
uint32_t GetSerializedSize() const override
Definition:
lte-pdcp-header.cc:91
ns3::LtePdcpHeader::LtePdcpHeader
LtePdcpHeader()
Constructor.
Definition:
lte-pdcp-header.cc:31
ns3::LtePdcpHeader::SetSequenceNumber
void SetSequenceNumber(uint16_t sequenceNumber)
Set sequence number.
Definition:
lte-pdcp-header.cc:50
ns3::LtePdcpHeader::~LtePdcpHeader
~LtePdcpHeader() override
Definition:
lte-pdcp-header.cc:37
ns3::LtePdcpHeader::m_sequenceNumber
uint16_t m_sequenceNumber
the sequence number
Definition:
lte-pdcp-header.h:95
ns3::LtePdcpHeader::GetInstanceTypeId
TypeId GetInstanceTypeId() const override
Get the most derived TypeId for this Object.
Definition:
lte-pdcp-header.cc:78
ns3::LtePdcpHeader::Serialize
void Serialize(Buffer::Iterator start) const override
Definition:
lte-pdcp-header.cc:97
ns3::LtePdcpHeader::GetDcBit
uint8_t GetDcBit() const
Get DC bit.
Definition:
lte-pdcp-header.cc:56
ns3::LtePdcpHeader::DcBit_t
enum ns3::LtePdcpHeader::@60 DcBit_t
DcBit_t typedef.
ns3::TypeId
a unique identifier for an interface.
Definition:
type-id.h:59
ns3
Every class exported by the ns3 library is enclosed in the ns3 namespace.
two-ray-to-three-gpp-ch-calibration.start
start
Definition:
two-ray-to-three-gpp-ch-calibration.py:520
src
lte
model
lte-pdcp-header.h
Generated on Sun Mar 3 2024 17:11:02 for ns-3 by
1.9.1