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
* 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: Marco Miozzo <marco.miozzo@cttc.es>
18
* Nicola Baldo <nbaldo@cttc.es>
19
*/
20
#ifndef EPS_BEARER_TAG_H
21
#define EPS_BEARER_TAG_H
22
23
#include "ns3/tag.h"
24
25
namespace
ns3
26
{
27
28
class
Tag;
29
30
/**
31
* Tag used to define the RNTI and EPS bearer ID for packets
32
* interchanged between the EpcEnbApplication and the LteEnbNetDevice
33
*/
34
35
class
EpsBearerTag
:
public
Tag
36
{
37
public
:
38
/**
39
* \brief Get the type ID.
40
* \return the object TypeId
41
*/
42
static
TypeId
GetTypeId
();
43
TypeId
GetInstanceTypeId
()
const override
;
44
45
/**
46
* Create an empty EpsBearerTag
47
*/
48
EpsBearerTag
();
49
50
/**
51
* Create a EpsBearerTag with the given RNTI and bearer id
52
*
53
* @param rnti the value of the RNTI to set
54
* @param bid the value of the Bearer Id to set
55
*/
56
EpsBearerTag
(uint16_t rnti, uint8_t bid);
57
58
/**
59
* Set the RNTI to the given value.
60
*
61
* @param rnti the value of the RNTI to set
62
*/
63
void
SetRnti
(uint16_t rnti);
64
65
/**
66
* Set the bearer id to the given value.
67
*
68
* @param bid the value of the Bearer Id to set
69
*/
70
void
SetBid
(uint8_t bid);
71
72
void
Serialize
(
TagBuffer
i)
const override
;
73
void
Deserialize
(
TagBuffer
i)
override
;
74
uint32_t
GetSerializedSize
()
const override
;
75
void
Print
(std::ostream& os)
const override
;
76
77
/**
78
* Get RNTI function
79
* \returns the RNTI
80
*/
81
uint16_t
GetRnti
()
const
;
82
/**
83
* Get Bearer Id function
84
* \returns the Bearer Id
85
*/
86
uint8_t
GetBid
()
const
;
87
88
private
:
89
uint16_t
m_rnti
;
///< RNTI value
90
uint8_t
m_bid
;
///< Bearer Id value
91
};
92
93
}
// namespace ns3
94
95
#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:36
ns3::EpsBearerTag::GetInstanceTypeId
TypeId GetInstanceTypeId() const override
Get the most derived TypeId for this Object.
Definition:
eps-bearer-tag.cc:53
ns3::EpsBearerTag::m_rnti
uint16_t m_rnti
RNTI value.
Definition:
eps-bearer-tag.h:89
ns3::EpsBearerTag::Deserialize
void Deserialize(TagBuffer i) override
Definition:
eps-bearer-tag.cc:96
ns3::EpsBearerTag::GetBid
uint8_t GetBid() const
Get Bearer Id function.
Definition:
eps-bearer-tag.cc:109
ns3::EpsBearerTag::Serialize
void Serialize(TagBuffer i) const override
Definition:
eps-bearer-tag.cc:89
ns3::EpsBearerTag::GetTypeId
static TypeId GetTypeId()
Get the type ID.
Definition:
eps-bearer-tag.cc:32
ns3::EpsBearerTag::m_bid
uint8_t m_bid
Bearer Id value.
Definition:
eps-bearer-tag.h:90
ns3::EpsBearerTag::Print
void Print(std::ostream &os) const override
Definition:
eps-bearer-tag.cc:115
ns3::EpsBearerTag::GetSerializedSize
uint32_t GetSerializedSize() const override
Definition:
eps-bearer-tag.cc:83
ns3::EpsBearerTag::GetRnti
uint16_t GetRnti() const
Get RNTI function.
Definition:
eps-bearer-tag.cc:103
ns3::EpsBearerTag::SetRnti
void SetRnti(uint16_t rnti)
Set the RNTI to the given value.
Definition:
eps-bearer-tag.cc:71
ns3::EpsBearerTag::SetBid
void SetBid(uint8_t bid)
Set the bearer id to the given value.
Definition:
eps-bearer-tag.cc:77
ns3::EpsBearerTag::EpsBearerTag
EpsBearerTag()
Create an empty EpsBearerTag.
Definition:
eps-bearer-tag.cc:58
ns3::TagBuffer
read and write tag data
Definition:
tag-buffer.h:52
ns3::Tag
tag a set of bytes in a packet
Definition:
tag.h:39
ns3::TypeId
a unique identifier for an interface.
Definition:
type-id.h:59
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 Mon May 6 2024 05:21:13 for ns-3 by
1.9.6