This documentation is not the
Latest Release
.
A Discrete-Event Network Simulator
Home
Tutorials ▼
English
Portuguese
Docs ▼
Wiki
Manual
Models
Develop ▼
API
Bugs
API
Main Page
Related Pages
Modules
Namespaces
Classes
Files
File List
File Members
qos-utils.h
Go to the documentation of this file.
1
/* -*- Mode:C++; c-file-style:"gnu"; indent-tabs-mode:nil; -*- */
2
/*
3
* Copyright (c) 2009 MIRKO BANCHI
4
*
5
* This program is free software; you can redistribute it and/or modify
6
* it under the terms of the GNU General Public License version 2 as
7
* published by the Free Software Foundation;
8
*
9
* This program is distributed in the hope that it will be useful,
10
* but WITHOUT ANY WARRANTY; without even the implied warranty of
11
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12
* GNU General Public License for more details.
13
*
14
* You should have received a copy of the GNU General Public License
15
* along with this program; if not, write to the Free Software
16
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
17
*
18
* Author: Mirko Banchi <mk.banchi@gmail.com>
19
*/
20
21
#ifndef QOS_UTILS_H
22
#define QOS_UTILS_H
23
24
#include "ns3/uinteger.h"
25
#include "ns3/ptr.h"
26
#include "ns3/packet.h"
27
28
namespace
ns3
{
29
36
enum
AcIndex
37
{
39
AC_BE
= 0,
41
AC_BK
= 1,
43
AC_VI
= 2,
45
AC_VO
= 3,
47
AC_BE_NQOS
= 4,
48
AC_UNDEF
49
};
50
59
AcIndex
QosUtilsMapTidToAc
(uint8_t tid);
60
71
uint8_t
QosUtilsGetTidForPacket
(Ptr<const Packet> packet);
72
84
uint32_t
QosUtilsMapSeqControlToUniqueInteger
(uint16_t seqControl, uint16_t endSequence);
85
123
bool
QosUtilsIsOldPacket
(uint16_t startingSeq, uint16_t seqNumber);
124
125
}
//namespace ns3
126
127
#endif
/* QOS_UTILS_H */
ns3::QosUtilsIsOldPacket
bool QosUtilsIsOldPacket(uint16_t startingSeq, uint16_t seqNumber)
This function checks if packet with sequence number seqNumber is an "old" packet. ...
Definition:
qos-utils.cc:88
ns3::AC_VI
Video.
Definition:
qos-utils.h:43
ns3::AC_VO
Voice.
Definition:
qos-utils.h:45
ns3::AC_BE
Best Effort.
Definition:
qos-utils.h:39
ns3::QosUtilsGetTidForPacket
uint8_t QosUtilsGetTidForPacket(Ptr< const Packet > packet)
If a qos tag is attached to the packet, returns a value < 8.
Definition:
qos-utils.cc:62
ns3::AC_BK
Background.
Definition:
qos-utils.h:41
ns3::QosUtilsMapTidToAc
AcIndex QosUtilsMapTidToAc(uint8_t tid)
Maps TID (Traffic ID) to Access classes.
Definition:
qos-utils.cc:28
ns3
Every class exported by the ns3 library is enclosed in the ns3 namespace.
ns3::QosUtilsMapSeqControlToUniqueInteger
uint32_t QosUtilsMapSeqControlToUniqueInteger(uint16_t seqControl, uint16_t endSequence)
Next function is useful to correctly sort buffered packets under block ack.
Definition:
qos-utils.cc:77
ns3::AC_BE_NQOS
Total number of ACs.
Definition:
qos-utils.h:47
ns3::AcIndex
AcIndex
This enumeration defines the Access Categories as an enumeration with values corresponding to the AC ...
Definition:
qos-utils.h:36
ns3::AC_UNDEF
Definition:
qos-utils.h:48
src
wifi
model
qos-utils.h
Generated on Wed Nov 11 2015 20:00:52 for ns-3 by
1.8.9.1