5G-LENA
nr-v4.0-29-g6d8085cd
The 5G/NR module for the ns-3 simulator
Loading...
Searching...
No Matches
nr-rlc-sdu-status-tag.h
1
// Copyright (c) 2011 Centre Tecnologic de Telecomunicacions de Catalunya (CTTC)
2
//
3
// SPDX-License-Identifier: GPL-2.0-only
4
//
5
// Author: Manuel Requena <manuel.requena@cttc.es>
6
7
#ifndef NR_RLC_SDU_STATUS_TAG_H
8
#define NR_RLC_SDU_STATUS_TAG_H
9
10
#include "ns3/tag.h"
11
12
namespace
ns3
13
{
14
20
class
NrRlcSduStatusTag
:
public
Tag
21
{
22
public
:
23
NrRlcSduStatusTag
();
24
30
void
SetStatus
(uint8_t status);
36
uint8_t
GetStatus
()
const
;
37
42
static
TypeId
GetTypeId
();
43
TypeId GetInstanceTypeId()
const override
;
44
uint32_t GetSerializedSize()
const override
;
45
void
Serialize(TagBuffer i)
const override
;
46
void
Deserialize(TagBuffer i)
override
;
47
void
Print(std::ostream& os)
const override
;
48
50
enum
SduStatus_t
51
{
52
FULL_SDU = 1,
53
FIRST_SEGMENT = 2,
54
MIDDLE_SEGMENT = 3,
55
LAST_SEGMENT = 4,
56
ANY_SEGMENT = 5
57
};
58
59
private
:
60
uint8_t m_sduStatus;
61
};
62
63
};
// namespace ns3
64
65
#endif
// NR_RLC_SDU_STATUS_TAG_H
ns3::NrRlcSduStatusTag
This class implements a tag that carries the status of a RLC SDU for the fragmentation process Status...
Definition
nr-rlc-sdu-status-tag.h:21
ns3::NrRlcSduStatusTag::SetStatus
void SetStatus(uint8_t status)
Definition
nr-rlc-sdu-status-tag.cc:19
ns3::NrRlcSduStatusTag::SduStatus_t
SduStatus_t
SduStatus_t enumeration.
Definition
nr-rlc-sdu-status-tag.h:51
ns3::NrRlcSduStatusTag::GetStatus
uint8_t GetStatus() const
Definition
nr-rlc-sdu-status-tag.cc:25
ns3::NrRlcSduStatusTag::GetTypeId
static TypeId GetTypeId()
Get the type ID.
Definition
nr-rlc-sdu-status-tag.cc:31
model
nr-rlc-sdu-status-tag.h
Generated on Fri Jun 20 2025 12:40:31 for 5G-LENA by
1.9.8