A Discrete-Event Network Simulator
Home
Tutorials ▼
English
Documentation ▼
Installation
Manual
Models
Contributing
Wiki
Development ▼
API Docs
Issue Tracker
Merge Requests
API
mac-tx-middle.h
Go to the documentation of this file.
1
/*
2
* Copyright (c) 2005, 2009 INRIA
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
* Authors: Mathieu Lacage <mathieu.lacage@sophia.inria.fr>
19
* Mirko Banchi <mk.banchi@gmail.com>
20
*/
21
22
#ifndef MAC_TX_MIDDLE_H
23
#define MAC_TX_MIDDLE_H
24
25
#include "ns3/simple-ref-count.h"
26
27
#include <map>
28
29
namespace
ns3
30
{
31
32
class
WifiMacHeader;
33
class
Mac48Address;
34
40
class
MacTxMiddle
:
public
SimpleRefCount
<MacTxMiddle>
41
{
42
public
:
43
MacTxMiddle
();
44
~MacTxMiddle
();
45
52
uint16_t
GetNextSequenceNumberFor
(
const
WifiMacHeader
* hdr);
61
uint16_t
PeekNextSequenceNumberFor
(
const
WifiMacHeader
* hdr);
69
uint16_t
GetNextSeqNumberByTidAndAddress
(uint8_t tid,
Mac48Address
addr)
const
;
76
void
SetSequenceNumberFor
(
const
WifiMacHeader
* hdr);
77
78
private
:
79
std::map<Mac48Address, uint16_t*>
m_qosSequences
;
80
uint16_t
m_sequence
;
81
};
82
83
}
// namespace ns3
84
85
#endif
/* MAC_TX_MIDDLE_H */
ns3::Mac48Address
an EUI-48 address
Definition:
mac48-address.h:46
ns3::MacTxMiddle
Handles sequence numbering of IEEE 802.11 data frames.
Definition:
mac-tx-middle.h:41
ns3::MacTxMiddle::~MacTxMiddle
~MacTxMiddle()
Definition:
mac-tx-middle.cc:40
ns3::MacTxMiddle::SetSequenceNumberFor
void SetSequenceNumberFor(const WifiMacHeader *hdr)
Set the sequence number of the given MAC header as the next sequence number for the Traffic ID and de...
Definition:
mac-tx-middle.cc:128
ns3::MacTxMiddle::m_qosSequences
std::map< Mac48Address, uint16_t * > m_qosSequences
QOS sequences.
Definition:
mac-tx-middle.h:79
ns3::MacTxMiddle::m_sequence
uint16_t m_sequence
current sequence number
Definition:
mac-tx-middle.h:80
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::MacTxMiddle::GetNextSequenceNumberFor
uint16_t GetNextSequenceNumberFor(const WifiMacHeader *hdr)
Return the next sequence number for the given header.
Definition:
mac-tx-middle.cc:50
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:88
ns3::MacTxMiddle::MacTxMiddle
MacTxMiddle()
Definition:
mac-tx-middle.cc:34
ns3::SimpleRefCount
A template-based reference counting class.
Definition:
simple-ref-count.h:81
ns3::WifiMacHeader
Implements the IEEE 802.11 MAC header.
Definition:
wifi-mac-header.h:98
ns3
Every class exported by the ns3 library is enclosed in the ns3 namespace.
src
wifi
model
mac-tx-middle.h
Generated on Sun Mar 3 2024 17:11:11 for ns-3 by
1.9.1