A Discrete-Event Network Simulator
API
Loading...
Searching...
No Matches
lte-rlc-sdu-status-tag.cc
Go to the documentation of this file.
1/*
2 * Copyright (c) 2011 Centre Tecnologic de Telecomunicacions de Catalunya (CTTC)
3 *
4 * SPDX-License-Identifier: GPL-2.0-only
5 *
6 * Author: Manuel Requena <manuel.requena@cttc.es>
7 */
8
10
11namespace ns3
12{
13
14NS_OBJECT_ENSURE_REGISTERED(LteRlcSduStatusTag);
15
19
20void
22{
23 m_sduStatus = status;
24}
25
26uint8_t
28{
29 return m_sduStatus;
30}
31
34{
35 static TypeId tid = TypeId("ns3::LteRlcSduStatusTag")
36 .SetParent<Tag>()
37 .SetGroupName("Lte")
38 .AddConstructor<LteRlcSduStatusTag>();
39 return tid;
40}
41
47
50{
51 return 1;
52}
53
54void
59
60void
65
66void
67LteRlcSduStatusTag::Print(std::ostream& os) const
68{
69 os << "SDU Status=" << (uint32_t)m_sduStatus;
70}
71
72}; // namespace ns3
This class implements a tag that carries the status of a RLC SDU for the fragmentation process Status...
static TypeId GetTypeId()
Get the type ID.
void Serialize(TagBuffer i) const override
uint8_t GetStatus() const
Get status function.
uint32_t GetSerializedSize() const override
TypeId GetInstanceTypeId() const override
Get the most derived TypeId for this Object.
void Deserialize(TagBuffer i) override
void Print(std::ostream &os) const override
void SetStatus(uint8_t status)
Set status function.
read and write tag data
Definition tag-buffer.h:41
TAG_BUFFER_INLINE void WriteU8(uint8_t v)
Definition tag-buffer.h:161
TAG_BUFFER_INLINE uint8_t ReadU8()
Definition tag-buffer.h:185
tag a set of bytes in a packet
Definition tag.h:28
a unique identifier for an interface.
Definition type-id.h:48
TypeId SetParent(TypeId tid)
Set the parent TypeId.
Definition type-id.cc:1001
#define NS_OBJECT_ENSURE_REGISTERED(type)
Register an Object subclass with the TypeId system.
Definition object-base.h:35
Every class exported by the ns3 library is enclosed in the ns3 namespace.