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
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Properties
Friends
Macros
Groups
Pages
mac-tx-middle.h
Go to the documentation of this file.
1
/* -*- Mode:C++; c-file-style:"gnu"; indent-tabs-mode:nil; -*- */
2
/*
3
* Copyright (c) 2005, 2009 INRIA
4
* Copyright (c) 2009 MIRKO BANCHI
5
*
6
* This program is free software; you can redistribute it and/or modify
7
* it under the terms of the GNU General Public License version 2 as
8
* published by the Free Software Foundation;
9
*
10
* This program is distributed in the hope that it will be useful,
11
* but WITHOUT ANY WARRANTY; without even the implied warranty of
12
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13
* GNU General Public License for more details.
14
*
15
* You should have received a copy of the GNU General Public License
16
* along with this program; if not, write to the Free Software
17
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
18
*
19
* Author: Mathieu Lacage <mathieu.lacage@sophia.inria.fr>
20
* Author: Mirko Banchi <mk.banchi@gmail.com>
21
*/
22
23
#ifndef MAC_TX_MIDDLE_H
24
#define MAC_TX_MIDDLE_H
25
26
#include <stdint.h>
27
#include <map>
28
#include "ns3/mac48-address.h"
29
30
namespace
ns3 {
31
32
class
WifiMacHeader;
33
39
class
MacTxMiddle
40
{
41
public
:
42
MacTxMiddle
();
43
~MacTxMiddle
();
44
45
uint16_t
GetNextSequenceNumberfor
(
const
WifiMacHeader
*hdr);
46
uint16_t
GetNextSeqNumberByTidAndAddress
(uint8_t tid,
Mac48Address
addr)
const
;
47
48
private
:
49
std::map <Mac48Address,uint16_t*>
m_qosSequences
;
50
uint16_t
m_sequence
;
51
};
52
53
}
// namespace ns3
54
55
#endif
/* MAC_TX_MIDDLE_H */
src
wifi
model
mac-tx-middle.h
Generated on Tue May 14 2013 11:08:35 for ns-3 by
1.8.1.2