A Discrete-Event Network Simulator
Home
Tutorials ▼
English
Documentation ▼
Installation
Manual
Models
Contributing
Wiki
Development ▼
API Docs
Issue Tracker
Merge Requests
API
Loading...
Searching...
No Matches
eps-bearer-tag.h
Go to the documentation of this file.
1
/*
2
* Copyright (c) 2011,2012 Centre Tecnologic de Telecomunicacions de Catalunya (CTTC)
3
*
4
* SPDX-License-Identifier: GPL-2.0-only
5
*
6
* Author: Marco Miozzo <marco.miozzo@cttc.es>
7
* Nicola Baldo <nbaldo@cttc.es>
8
*/
9
#ifndef EPS_BEARER_TAG_H
10
#define EPS_BEARER_TAG_H
11
12
#include "ns3/tag.h"
13
14
namespace
ns3
15
{
16
17
class
Tag;
18
19
/**
20
* Tag used to define the RNTI and EPS bearer ID for packets
21
* interchanged between the EpcEnbApplication and the LteEnbNetDevice
22
*/
23
24
class
EpsBearerTag
:
public
Tag
25
{
26
public
:
27
/**
28
* \brief Get the type ID.
29
* \return the object TypeId
30
*/
31
static
TypeId
GetTypeId
();
32
TypeId
GetInstanceTypeId
()
const override
;
33
34
/**
35
* Create an empty EpsBearerTag
36
*/
37
EpsBearerTag
();
38
39
/**
40
* Create a EpsBearerTag with the given RNTI and bearer id
41
*
42
* @param rnti the value of the RNTI to set
43
* @param bid the value of the Bearer Id to set
44
*/
45
EpsBearerTag
(uint16_t rnti, uint8_t bid);
46
47
/**
48
* Set the RNTI to the given value.
49
*
50
* @param rnti the value of the RNTI to set
51
*/
52
void
SetRnti
(uint16_t rnti);
53
54
/**
55
* Set the bearer id to the given value.
56
*
57
* @param bid the value of the Bearer Id to set
58
*/
59
void
SetBid
(uint8_t bid);
60
61
void
Serialize
(
TagBuffer
i)
const override
;
62
void
Deserialize
(
TagBuffer
i)
override
;
63
uint32_t
GetSerializedSize
()
const override
;
64
void
Print
(std::ostream& os)
const override
;
65
66
/**
67
* Get RNTI function
68
* \returns the RNTI
69
*/
70
uint16_t
GetRnti
()
const
;
71
/**
72
* Get Bearer Id function
73
* \returns the Bearer Id
74
*/
75
uint8_t
GetBid
()
const
;
76
77
private
:
78
uint16_t
m_rnti
;
///< RNTI value
79
uint8_t
m_bid
;
///< Bearer Id value
80
};
81
82
}
// namespace ns3
83
84
#endif
/* EPS_BEARER_TAG_H */
ns3::EpsBearerTag
Tag used to define the RNTI and EPS bearer ID for packets interchanged between the EpcEnbApplication ...
Definition
eps-bearer-tag.h:25
ns3::EpsBearerTag::GetInstanceTypeId
TypeId GetInstanceTypeId() const override
Get the most derived TypeId for this Object.
Definition
eps-bearer-tag.cc:42
ns3::EpsBearerTag::m_rnti
uint16_t m_rnti
RNTI value.
Definition
eps-bearer-tag.h:78
ns3::EpsBearerTag::Deserialize
void Deserialize(TagBuffer i) override
Definition
eps-bearer-tag.cc:85
ns3::EpsBearerTag::GetBid
uint8_t GetBid() const
Get Bearer Id function.
Definition
eps-bearer-tag.cc:98
ns3::EpsBearerTag::Serialize
void Serialize(TagBuffer i) const override
Definition
eps-bearer-tag.cc:78
ns3::EpsBearerTag::GetTypeId
static TypeId GetTypeId()
Get the type ID.
Definition
eps-bearer-tag.cc:21
ns3::EpsBearerTag::m_bid
uint8_t m_bid
Bearer Id value.
Definition
eps-bearer-tag.h:79
ns3::EpsBearerTag::Print
void Print(std::ostream &os) const override
Definition
eps-bearer-tag.cc:104
ns3::EpsBearerTag::GetSerializedSize
uint32_t GetSerializedSize() const override
Definition
eps-bearer-tag.cc:72
ns3::EpsBearerTag::GetRnti
uint16_t GetRnti() const
Get RNTI function.
Definition
eps-bearer-tag.cc:92
ns3::EpsBearerTag::SetRnti
void SetRnti(uint16_t rnti)
Set the RNTI to the given value.
Definition
eps-bearer-tag.cc:60
ns3::EpsBearerTag::SetBid
void SetBid(uint8_t bid)
Set the bearer id to the given value.
Definition
eps-bearer-tag.cc:66
ns3::EpsBearerTag::EpsBearerTag
EpsBearerTag()
Create an empty EpsBearerTag.
Definition
eps-bearer-tag.cc:47
ns3::TagBuffer
read and write tag data
Definition
tag-buffer.h:41
ns3::Tag
tag a set of bytes in a packet
Definition
tag.h:28
ns3::TypeId
a unique identifier for an interface.
Definition
type-id.h:48
uint32_t
ns3
Every class exported by the ns3 library is enclosed in the ns3 namespace.
src
lte
model
eps-bearer-tag.h
Generated on Fri Nov 8 2024 13:59:03 for ns-3 by
1.11.0