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
12namespace ns3
13{
14
20class NrRlcSduStatusTag : public Tag
21{
22 public:
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
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
This class implements a tag that carries the status of a RLC SDU for the fragmentation process Status...
void SetStatus(uint8_t status)
SduStatus_t
SduStatus_t enumeration.
static TypeId GetTypeId()
Get the type ID.