A Discrete-Event Network Simulator
Home
Tutorials ▼
English
Documentation ▼
Installation
Manual
Models
Contributing
Wiki
Development ▼
API Docs
Issue Tracker
Merge Requests
API
lte-rlc-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_RLC_HEADER_H
21
#define LTE_RLC_HEADER_H
22
23
#include "
lte-rlc-sequence-number.h
"
24
25
#include "ns3/header.h"
26
27
#include <list>
28
29
namespace
ns3
30
{
31
40
class
LteRlcHeader
:
public
Header
41
{
42
public
:
48
LteRlcHeader
();
49
~LteRlcHeader
()
override
;
50
56
void
SetFramingInfo
(uint8_t framingInfo);
62
void
SetSequenceNumber
(
SequenceNumber10
sequenceNumber);
63
69
uint8_t
GetFramingInfo
()
const
;
75
SequenceNumber10
GetSequenceNumber
()
const
;
76
82
void
PushExtensionBit
(uint8_t extensionBit);
88
void
PushLengthIndicator
(uint16_t lengthIndicator);
89
95
uint8_t
PopExtensionBit
();
101
uint16_t
PopLengthIndicator
();
102
104
enum
ExtensionBit_t
105
{
106
DATA_FIELD_FOLLOWS
= 0,
107
E_LI_FIELDS_FOLLOWS
= 1
108
};
109
111
enum
FramingInfoByte_t
112
{
113
FIRST_BYTE
= 0x00,
114
NO_FIRST_BYTE
= 0x02,
115
LAST_BYTE
= 0x00,
116
NO_LAST_BYTE
= 0x01
117
};
118
123
static
TypeId
GetTypeId
();
124
TypeId
GetInstanceTypeId
()
const override
;
125
void
Print
(std::ostream& os)
const override
;
126
uint32_t
GetSerializedSize
()
const override
;
127
void
Serialize
(
Buffer::Iterator
start
)
const override
;
128
uint32_t
Deserialize
(
Buffer::Iterator
start
)
override
;
129
130
private
:
131
uint16_t
m_headerLength
;
132
uint8_t
m_framingInfo
;
133
SequenceNumber10
m_sequenceNumber
;
134
135
std::list<uint8_t>
m_extensionBits
;
136
std::list<uint16_t>
m_lengthIndicators
;
137
};
138
139
};
// namespace ns3
140
141
#endif
// LTE_RLC_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::LteRlcHeader
The packet header for the Radio Link Control (RLC) protocol packets.
Definition:
lte-rlc-header.h:41
ns3::LteRlcHeader::Serialize
void Serialize(Buffer::Iterator start) const override
Definition:
lte-rlc-header.cc:167
ns3::LteRlcHeader::m_framingInfo
uint8_t m_framingInfo
2 bits
Definition:
lte-rlc-header.h:132
ns3::LteRlcHeader::FramingInfoByte_t
FramingInfoByte_t
FramingInfoByte_t typedef.
Definition:
lte-rlc-header.h:112
ns3::LteRlcHeader::LAST_BYTE
@ LAST_BYTE
Definition:
lte-rlc-header.h:115
ns3::LteRlcHeader::NO_FIRST_BYTE
@ NO_FIRST_BYTE
Definition:
lte-rlc-header.h:114
ns3::LteRlcHeader::FIRST_BYTE
@ FIRST_BYTE
Definition:
lte-rlc-header.h:113
ns3::LteRlcHeader::NO_LAST_BYTE
@ NO_LAST_BYTE
Definition:
lte-rlc-header.h:116
ns3::LteRlcHeader::m_extensionBits
std::list< uint8_t > m_extensionBits
Includes extensionBit of the fixed part.
Definition:
lte-rlc-header.h:135
ns3::LteRlcHeader::GetSerializedSize
uint32_t GetSerializedSize() const override
Definition:
lte-rlc-header.cc:161
ns3::LteRlcHeader::PushExtensionBit
void PushExtensionBit(uint8_t extensionBit)
Push extension bit.
Definition:
lte-rlc-header.cc:70
ns3::LteRlcHeader::m_sequenceNumber
SequenceNumber10 m_sequenceNumber
sequence number
Definition:
lte-rlc-header.h:133
ns3::LteRlcHeader::Print
void Print(std::ostream &os) const override
Definition:
lte-rlc-header.cc:128
ns3::LteRlcHeader::ExtensionBit_t
ExtensionBit_t
ExtensionBit_t typedef.
Definition:
lte-rlc-header.h:105
ns3::LteRlcHeader::DATA_FIELD_FOLLOWS
@ DATA_FIELD_FOLLOWS
Definition:
lte-rlc-header.h:106
ns3::LteRlcHeader::E_LI_FIELDS_FOLLOWS
@ E_LI_FIELDS_FOLLOWS
Definition:
lte-rlc-header.h:107
ns3::LteRlcHeader::GetSequenceNumber
SequenceNumber10 GetSequenceNumber() const
Get sequence number.
Definition:
lte-rlc-header.cc:64
ns3::LteRlcHeader::m_headerLength
uint16_t m_headerLength
header length
Definition:
lte-rlc-header.h:131
ns3::LteRlcHeader::SetSequenceNumber
void SetSequenceNumber(SequenceNumber10 sequenceNumber)
Set sequence number.
Definition:
lte-rlc-header.cc:52
ns3::LteRlcHeader::GetInstanceTypeId
TypeId GetInstanceTypeId() const override
Get the most derived TypeId for this Object.
Definition:
lte-rlc-header.cc:122
ns3::LteRlcHeader::SetFramingInfo
void SetFramingInfo(uint8_t framingInfo)
Set framing info.
Definition:
lte-rlc-header.cc:46
ns3::LteRlcHeader::m_lengthIndicators
std::list< uint16_t > m_lengthIndicators
length indicators
Definition:
lte-rlc-header.h:136
ns3::LteRlcHeader::PopExtensionBit
uint8_t PopExtensionBit()
Pop extension bit.
Definition:
lte-rlc-header.cc:94
ns3::LteRlcHeader::~LteRlcHeader
~LteRlcHeader() override
Definition:
lte-rlc-header.cc:38
ns3::LteRlcHeader::LteRlcHeader
LteRlcHeader()
Constructor.
Definition:
lte-rlc-header.cc:31
ns3::LteRlcHeader::PopLengthIndicator
uint16_t PopLengthIndicator()
Pop length indicator.
Definition:
lte-rlc-header.cc:103
ns3::LteRlcHeader::GetTypeId
static TypeId GetTypeId()
Get the type ID.
Definition:
lte-rlc-header.cc:112
ns3::LteRlcHeader::GetFramingInfo
uint8_t GetFramingInfo() const
Get framing info.
Definition:
lte-rlc-header.cc:58
ns3::LteRlcHeader::PushLengthIndicator
void PushLengthIndicator(uint16_t lengthIndicator)
Push length indicator.
Definition:
lte-rlc-header.cc:88
ns3::SequenceNumber10
SequenceNumber10 class.
Definition:
lte-rlc-sequence-number.h:34
ns3::TypeId
a unique identifier for an interface.
Definition:
type-id.h:59
lte-rlc-sequence-number.h
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-rlc-header.h
Generated on Sun Mar 3 2024 17:11:02 for ns-3 by
1.9.1