A Discrete-Event Network Simulator
Home
Tutorials ▼
English
Portuguese
Docs ▼
Wiki
Manual
Models
Develop ▼
API
Bugs
API
src
wifi
model
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
* Authors: Mathieu Lacage <mathieu.lacage@sophia.inria.fr>
20
* Mirko Banchi <mk.banchi@gmail.com>
21
*/
22
23
#ifndef MAC_TX_MIDDLE_H
24
#define MAC_TX_MIDDLE_H
25
26
#include <map>
27
#include "ns3/simple-ref-count.h"
28
29
namespace
ns3
{
30
31
class
WifiMacHeader;
32
class
Mac48Address;
33
39
class
MacTxMiddle
:
public
SimpleRefCount
<MacTxMiddle>
40
{
41
public
:
42
MacTxMiddle
();
43
~MacTxMiddle
();
44
51
uint16_t
GetNextSequenceNumberFor
(
const
WifiMacHeader
*hdr);
59
uint16_t
PeekNextSequenceNumberFor
(
const
WifiMacHeader
*hdr);
67
uint16_t
GetNextSeqNumberByTidAndAddress
(uint8_t tid,
Mac48Address
addr)
const
;
68
69
70
private
:
71
std::map <Mac48Address,uint16_t*>
m_qosSequences
;
72
uint16_t
m_sequence
;
73
};
74
75
}
//namespace ns3
76
77
#endif
/* MAC_TX_MIDDLE_H */
ns3::MacTxMiddle::m_sequence
uint16_t m_sequence
current sequence number
Definition:
mac-tx-middle.h:72
ns3::MacTxMiddle::~MacTxMiddle
~MacTxMiddle()
Definition:
mac-tx-middle.cc:38
ns3::MacTxMiddle::MacTxMiddle
MacTxMiddle()
Definition:
mac-tx-middle.cc:32
ns3::MacTxMiddle
Handles sequence numbering of IEEE 802.11 data frames.
Definition:
mac-tx-middle.h:39
ns3::MacTxMiddle::GetNextSequenceNumberFor
uint16_t GetNextSequenceNumberFor(const WifiMacHeader *hdr)
Return the next sequence number for the given header.
Definition:
mac-tx-middle.cc:48
ns3
Every class exported by the ns3 library is enclosed in the ns3 namespace.
ns3::MacTxMiddle::m_qosSequences
std::map< Mac48Address, uint16_t * > m_qosSequences
QOS sequences.
Definition:
mac-tx-middle.h:71
ns3::Mac48Address
an EUI-48 address
Definition:
mac48-address.h:43
ns3::MacTxMiddle::PeekNextSequenceNumberFor
uint16_t PeekNextSequenceNumberFor(const WifiMacHeader *hdr)
Return the next sequence number for the Traffic ID and destination, but do not pick it (i...
Definition:
mac-tx-middle.cc:87
ns3::MacTxMiddle::GetNextSeqNumberByTidAndAddress
uint16_t GetNextSeqNumberByTidAndAddress(uint8_t tid, Mac48Address addr) const
Return the next sequence number for the Traffic ID and destination.
Definition:
mac-tx-middle.cc:114
ns3::SimpleRefCount
A template-based reference counting class.
Definition:
simple-ref-count.h:73
ns3::WifiMacHeader
Implements the IEEE 802.11 MAC header.
Definition:
wifi-mac-header.h:83
Generated on Wed Nov 7 2018 10:02:14 for ns-3 by
1.8.14