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
wifi-mac-header.h
Go to the documentation of this file.
1
/* -*- Mode:C++; c-file-style:"gnu"; indent-tabs-mode:nil; -*- */
2
/*
3
* Copyright (c) 2006, 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 WIFI_MAC_HEADER_H
24
#define WIFI_MAC_HEADER_H
25
26
#include "ns3/header.h"
27
#include "ns3/mac48-address.h"
28
#include "ns3/nstime.h"
29
30
namespace
ns3
{
31
35
enum
WifiMacType
36
{
37
WIFI_MAC_CTL_CTLWRAPPER
= 0,
38
WIFI_MAC_CTL_RTS
,
39
WIFI_MAC_CTL_CTS
,
40
WIFI_MAC_CTL_ACK
,
41
WIFI_MAC_CTL_BACKREQ
,
42
WIFI_MAC_CTL_BACKRESP
,
43
44
WIFI_MAC_MGT_BEACON
,
45
WIFI_MAC_MGT_ASSOCIATION_REQUEST
,
46
WIFI_MAC_MGT_ASSOCIATION_RESPONSE
,
47
WIFI_MAC_MGT_DISASSOCIATION
,
48
WIFI_MAC_MGT_REASSOCIATION_REQUEST
,
49
WIFI_MAC_MGT_REASSOCIATION_RESPONSE
,
50
WIFI_MAC_MGT_PROBE_REQUEST
,
51
WIFI_MAC_MGT_PROBE_RESPONSE
,
52
WIFI_MAC_MGT_AUTHENTICATION
,
53
WIFI_MAC_MGT_DEAUTHENTICATION
,
54
WIFI_MAC_MGT_ACTION
,
55
WIFI_MAC_MGT_ACTION_NO_ACK
,
56
WIFI_MAC_MGT_MULTIHOP_ACTION
,
57
58
WIFI_MAC_DATA
,
59
WIFI_MAC_DATA_CFACK
,
60
WIFI_MAC_DATA_CFPOLL
,
61
WIFI_MAC_DATA_CFACK_CFPOLL
,
62
WIFI_MAC_DATA_NULL
,
63
WIFI_MAC_DATA_NULL_CFACK
,
64
WIFI_MAC_DATA_NULL_CFPOLL
,
65
WIFI_MAC_DATA_NULL_CFACK_CFPOLL
,
66
WIFI_MAC_QOSDATA
,
67
WIFI_MAC_QOSDATA_CFACK
,
68
WIFI_MAC_QOSDATA_CFPOLL
,
69
WIFI_MAC_QOSDATA_CFACK_CFPOLL
,
70
WIFI_MAC_QOSDATA_NULL
,
71
WIFI_MAC_QOSDATA_NULL_CFPOLL
,
72
WIFI_MAC_QOSDATA_NULL_CFACK_CFPOLL
,
73
};
74
80
class
WifiMacHeader
:
public
Header
81
{
82
public
:
86
enum
QosAckPolicy
87
{
88
NORMAL_ACK
= 0,
89
NO_ACK
= 1,
90
NO_EXPLICIT_ACK
= 2,
91
BLOCK_ACK
= 3,
92
};
93
97
enum
AddressType
98
{
99
ADDR1
,
100
ADDR2
,
101
ADDR3
,
102
ADDR4
103
};
104
105
WifiMacHeader
();
106
virtual
~WifiMacHeader
();
107
112
static
TypeId
GetTypeId
(
void
);
113
TypeId
GetInstanceTypeId
(
void
)
const
;
114
void
Print
(std::ostream &os)
const
;
115
uint32_t
GetSerializedSize
(
void
)
const
;
116
void
Serialize
(
Buffer::Iterator
start
)
const
;
117
uint32_t
Deserialize
(
Buffer::Iterator
start
);
118
122
void
SetDsFrom
(
void
);
126
void
SetDsNotFrom
(
void
);
130
void
SetDsTo
(
void
);
134
void
SetDsNotTo
(
void
);
140
void
SetAddr1
(
Mac48Address
address
);
146
void
SetAddr2
(
Mac48Address
address
);
152
void
SetAddr3
(
Mac48Address
address
);
158
void
SetAddr4
(
Mac48Address
address
);
165
void
SetType
(
WifiMacType
type);
172
void
SetDuration
(
Time
duration);
178
void
SetId
(uint16_t
id
);
184
void
SetSequenceNumber
(uint16_t seq);
190
void
SetFragmentNumber
(uint8_t frag);
194
void
SetNoMoreFragments
(
void
);
198
void
SetMoreFragments
(
void
);
202
void
SetRetry
(
void
);
206
void
SetNoRetry
(
void
);
212
void
SetQosTid
(uint8_t tid);
216
void
SetQosEosp
();
220
void
SetQosNoEosp
();
226
void
SetQosAckPolicy
(
QosAckPolicy
policy);
230
void
SetQosAmsdu
(
void
);
234
void
SetQosNoAmsdu
(
void
);
240
void
SetQosTxopLimit
(uint8_t txop);
244
void
SetQosMeshControlPresent
();
248
void
SetQosNoMeshControlPresent
();
252
void
SetOrder
(
void
);
256
void
SetNoOrder
(
void
);
257
263
Mac48Address
GetAddr1
(
void
)
const
;
269
Mac48Address
GetAddr2
(
void
)
const
;
275
Mac48Address
GetAddr3
(
void
)
const
;
281
Mac48Address
GetAddr4
(
void
)
const
;
287
WifiMacType
GetType
(
void
)
const
;
291
bool
IsFromDs
(
void
)
const
;
295
bool
IsToDs
(
void
)
const
;
303
bool
IsData
(
void
)
const
;
310
bool
IsQosData
(
void
)
const
;
316
bool
IsCtl
(
void
)
const
;
322
bool
IsMgt
(
void
)
const
;
328
bool
IsCfpoll
(
void
)
const
;
334
bool
IsRts
(
void
)
const
;
340
bool
IsCts
(
void
)
const
;
346
bool
IsAck
(
void
)
const
;
352
bool
IsBlockAckReq
(
void
)
const
;
358
bool
IsBlockAck
(
void
)
const
;
364
bool
IsAssocReq
(
void
)
const
;
370
bool
IsAssocResp
(
void
)
const
;
376
bool
IsReassocReq
(
void
)
const
;
382
bool
IsReassocResp
(
void
)
const
;
388
bool
IsProbeReq
(
void
)
const
;
394
bool
IsProbeResp
(
void
)
const
;
400
bool
IsBeacon
(
void
)
const
;
406
bool
IsDisassociation
(
void
)
const
;
412
bool
IsAuthentication
(
void
)
const
;
418
bool
IsDeauthentication
(
void
)
const
;
424
bool
IsAction
()
const
;
431
bool
IsMultihopAction
()
const
;
437
Time
GetDuration
(
void
)
const
;
443
uint16_t
GetSequenceControl
(
void
)
const
;
449
uint16_t
GetSequenceNumber
(
void
)
const
;
455
uint8_t
GetFragmentNumber
(
void
)
const
;
461
bool
IsRetry
(
void
)
const
;
467
bool
IsMoreFragments
(
void
)
const
;
473
bool
IsQosBlockAck
(
void
)
const
;
479
bool
IsQosNoAck
(
void
)
const
;
485
bool
IsQosAck
(
void
)
const
;
491
bool
IsQosEosp
(
void
)
const
;
498
bool
IsQosAmsdu
(
void
)
const
;
504
uint8_t
GetQosTid
(
void
)
const
;
510
uint8_t
GetQosTxopLimit
(
void
)
const
;
517
uint32_t
GetSize
(
void
)
const
;
523
const
char
*
GetTypeString
(
void
)
const
;
524
530
typedef
void (*
TracedCallback
)(
const
WifiMacHeader
&header);
531
532
533
private
:
539
uint16_t
GetFrameControl
(
void
)
const
;
545
uint16_t
GetQosControl
(
void
)
const
;
551
void
SetFrameControl
(uint16_t control);
557
void
SetSequenceControl
(uint16_t seq);
563
void
SetQosControl
(uint16_t qos);
569
void
PrintFrameControl
(std::ostream &os)
const
;
570
571
uint8_t
m_ctrlType
;
572
uint8_t
m_ctrlSubtype
;
573
uint8_t
m_ctrlToDs
;
574
uint8_t
m_ctrlFromDs
;
575
uint8_t
m_ctrlMoreFrag
;
576
uint8_t
m_ctrlRetry
;
577
uint8_t
m_ctrlMoreData
;
578
uint8_t
m_ctrlWep
;
579
uint8_t
m_ctrlOrder
;
580
uint16_t
m_duration
;
581
Mac48Address
m_addr1
;
582
Mac48Address
m_addr2
;
583
Mac48Address
m_addr3
;
584
uint8_t
m_seqFrag
;
585
uint16_t
m_seqSeq
;
586
Mac48Address
m_addr4
;
587
uint8_t
m_qosTid
;
588
uint8_t
m_qosEosp
;
589
uint8_t
m_qosAckPolicy
;
590
uint8_t
m_amsduPresent
;
591
uint8_t
m_qosStuff
;
592
};
593
594
}
//namespace ns3
595
596
#endif
/* WIFI_MAC_HEADER_H */
ns3::WifiMacHeader::m_ctrlMoreData
uint8_t m_ctrlMoreData
control more data
Definition:
wifi-mac-header.h:577
ns3::WifiMacHeader::NO_EXPLICIT_ACK
Definition:
wifi-mac-header.h:90
ns3::Header
Protocol header serialization and deserialization.
Definition:
header.h:42
ns3::WIFI_MAC_QOSDATA_CFACK_CFPOLL
Definition:
wifi-mac-header.h:69
ns3::WIFI_MAC_CTL_CTS
Definition:
wifi-mac-header.h:39
ns3::WifiMacHeader::IsBeacon
bool IsBeacon(void) const
Return true if the header is a Beacon header.
Definition:
wifi-mac-header.cc:600
ns3::WifiMacHeader::SetRetry
void SetRetry(void)
Set the Retry bit in the Frame Control field.
Definition:
wifi-mac-header.cc:299
ns3::WifiMacHeader::SetMoreFragments
void SetMoreFragments(void)
Set the More Fragment bit in the Frame Control field.
Definition:
wifi-mac-header.cc:284
ns3::WIFI_MAC_CTL_CTLWRAPPER
Definition:
wifi-mac-header.h:37
ns3::Time
Simulation virtual time values and global simulation resolution.
Definition:
nstime.h:102
ns3::WIFI_MAC_QOSDATA_NULL
Definition:
wifi-mac-header.h:70
ns3::WifiMacHeader::GetSize
uint32_t GetSize(void) const
Return the size of the WifiMacHeader in octets.
Definition:
wifi-mac-header.cc:790
ns3::WIFI_MAC_MGT_PROBE_REQUEST
Definition:
wifi-mac-header.h:50
ns3::WifiMacHeader::SetFrameControl
void SetFrameControl(uint16_t control)
Set the Frame Control field with the given raw value.
Definition:
wifi-mac-header.cc:761
ns3::WIFI_MAC_DATA_NULL_CFACK
Definition:
wifi-mac-header.h:63
ns3::WIFI_MAC_MGT_ACTION_NO_ACK
Definition:
wifi-mac-header.h:55
ns3::WifiMacHeader::IsReassocResp
bool IsReassocResp(void) const
Return true if the header is a Reassociation Response header.
Definition:
wifi-mac-header.cc:582
ns3::WifiMacHeader::SetType
void SetType(WifiMacType type)
Set Type/Subtype values with the correct values depending on the given type.
Definition:
wifi-mac-header.cc:111
ns3::WifiMacHeader::SetDuration
void SetDuration(Time duration)
Set the Duration/ID field with the given duration (Time object).
Definition:
wifi-mac-header.cc:257
ns3::WIFI_MAC_DATA_CFACK_CFPOLL
Definition:
wifi-mac-header.h:61
ns3::WifiMacHeader::m_ctrlType
uint8_t m_ctrlType
control type
Definition:
wifi-mac-header.h:571
ns3::WIFI_MAC_MGT_ASSOCIATION_REQUEST
Definition:
wifi-mac-header.h:45
ns3::WIFI_MAC_MGT_AUTHENTICATION
Definition:
wifi-mac-header.h:52
ns3::WifiMacHeader::IsAction
bool IsAction() const
Return true if the header is an Action header.
Definition:
wifi-mac-header.cc:624
visualizer.core.start
def start()
Definition:
core.py:1790
ns3::TracedCallback
Forward calls to a chain of Callback.
Definition:
traced-callback.h:62
ns3::WifiMacHeader::m_addr2
Mac48Address m_addr2
address 2
Definition:
wifi-mac-header.h:582
ns3::WifiMacHeader::GetAddr3
Mac48Address GetAddr3(void) const
Return the address in the Address 3 field.
Definition:
wifi-mac-header.cc:386
ns3::WifiMacHeader::SetNoMoreFragments
void SetNoMoreFragments(void)
Un-set the More Fragment bit in the Frame Control Field.
Definition:
wifi-mac-header.cc:279
ns3::WifiMacHeader::m_qosAckPolicy
uint8_t m_qosAckPolicy
QOS ack policy.
Definition:
wifi-mac-header.h:589
ns3::WifiMacHeader::GetAddr4
Mac48Address GetAddr4(void) const
Return the address in the Address 4 field.
Definition:
wifi-mac-header.cc:392
ns3::WifiMacHeader::m_qosEosp
uint8_t m_qosEosp
QOS EOSP.
Definition:
wifi-mac-header.h:588
ns3::WifiMacHeader::SetId
void SetId(uint16_t id)
Set the Duration/ID field with the given ID.
Definition:
wifi-mac-header.cc:264
ns3::WifiMacHeader::IsAssocReq
bool IsAssocReq(void) const
Return true if the header is an Association Request header.
Definition:
wifi-mac-header.cc:564
ns3::WifiMacHeader::GetQosControl
uint16_t GetQosControl(void) const
Return the raw QoS Control field.
Definition:
wifi-mac-header.cc:749
ns3::WIFI_MAC_QOSDATA_NULL_CFPOLL
Definition:
wifi-mac-header.h:71
ns3::WifiMacHeader::IsBlockAck
bool IsBlockAck(void) const
Return true if the header is a Block ACK header.
Definition:
wifi-mac-header.cc:642
ns3::WifiMacHeader::IsAssocResp
bool IsAssocResp(void) const
Return true if the header is an Association Response header.
Definition:
wifi-mac-header.cc:570
ns3::WifiMacHeader::SetQosControl
void SetQosControl(uint16_t qos)
Set the QoS Control field with the given raw value.
Definition:
wifi-mac-header.cc:780
ns3::WifiMacHeader::GetFrameControl
uint16_t GetFrameControl(void) const
Return the raw Frame Control field.
Definition:
wifi-mac-header.cc:733
ns3::WifiMacHeader::IsCtl
bool IsCtl(void) const
Return true if the Type is Control.
Definition:
wifi-mac-header.cc:515
ns3::WifiMacHeader::ADDR3
Definition:
wifi-mac-header.h:101
ns3::WifiMacHeader::m_seqFrag
uint8_t m_seqFrag
sequence fragment
Definition:
wifi-mac-header.h:584
ns3::WifiMacHeader::IsQosAmsdu
bool IsQosAmsdu(void) const
Check if the A-MSDU present bit is set in the QoS control field.
Definition:
wifi-mac-header.cc:712
ns3::WifiMacHeader::IsProbeResp
bool IsProbeResp(void) const
Return true if the header is a Probe Response header.
Definition:
wifi-mac-header.cc:594
ns3::WifiMacHeader::m_addr1
Mac48Address m_addr1
address 1
Definition:
wifi-mac-header.h:581
ns3::WifiMacHeader::m_addr3
Mac48Address m_addr3
address 3
Definition:
wifi-mac-header.h:583
ns3::Buffer::Iterator
iterator in a Buffer instance
Definition:
buffer.h:98
ns3::WIFI_MAC_DATA_CFACK
Definition:
wifi-mac-header.h:59
ns3::WifiMacHeader::IsCfpoll
bool IsCfpoll(void) const
Return true if the Type/Subtype is one of the possible CF-Poll headers.
Definition:
wifi-mac-header.cc:527
ns3::WIFI_MAC_DATA_NULL
Definition:
wifi-mac-header.h:62
ns3::WifiMacHeader::IsMoreFragments
bool IsMoreFragments(void) const
Return if the More Fragment bit is set.
Definition:
wifi-mac-header.cc:678
ns3::WifiMacHeader::GetDuration
Time GetDuration(void) const
Return the duration from the Duration/ID field (Time object).
Definition:
wifi-mac-header.cc:648
ns3::WifiMacHeader::GetFragmentNumber
uint8_t GetFragmentNumber(void) const
Return the fragment number of the header.
Definition:
wifi-mac-header.cc:666
ns3::WifiMacHeader::GetQosTid
uint8_t GetQosTid(void) const
Return the Traffic ID of a QoS header.
Definition:
wifi-mac-header.cc:719
ns3::WIFI_MAC_MGT_REASSOCIATION_REQUEST
Definition:
wifi-mac-header.h:48
ns3::WifiMacHeader::IsReassocReq
bool IsReassocReq(void) const
Return true if the header is a Reassociation Request header.
Definition:
wifi-mac-header.cc:576
ns3::WifiMacHeader::GetSerializedSize
uint32_t GetSerializedSize(void) const
Definition:
wifi-mac-header.cc:1003
ns3::WifiMacHeader::GetQosTxopLimit
uint8_t GetQosTxopLimit(void) const
Return the TXOP limit.
Definition:
wifi-mac-header.cc:726
ns3::WifiMacHeader::SetAddr1
void SetAddr1(Mac48Address address)
Fill the Address 1 field with the given address.
Definition:
wifi-mac-header.cc:87
ns3::WifiMacHeader::m_ctrlToDs
uint8_t m_ctrlToDs
control to DS
Definition:
wifi-mac-header.h:573
ns3::WifiMacHeader::AddressType
AddressType
Address types.
Definition:
wifi-mac-header.h:97
ns3::WifiMacHeader::SetDsNotTo
void SetDsNotTo(void)
Un-set the To DS bit in the Frame Control field.
Definition:
wifi-mac-header.cc:81
ns3::WifiMacHeader::SetAddr3
void SetAddr3(Mac48Address address)
Fill the Address 3 field with the given address.
Definition:
wifi-mac-header.cc:99
ns3::WifiMacHeader::SetAddr4
void SetAddr4(Mac48Address address)
Fill the Address 4 field with the given address.
Definition:
wifi-mac-header.cc:105
ns3::WifiMacType
WifiMacType
Combination of valid MAC header type/subtype.
Definition:
wifi-mac-header.h:35
ns3::WifiMacHeader::GetSequenceControl
uint16_t GetSequenceControl(void) const
Return the raw Sequence Control field.
Definition:
wifi-mac-header.cc:654
ns3::WifiMacHeader::IsProbeReq
bool IsProbeReq(void) const
Return true if the header is a Probe Request header.
Definition:
wifi-mac-header.cc:588
ns3::WIFI_MAC_MGT_MULTIHOP_ACTION
Definition:
wifi-mac-header.h:56
ns3::WifiMacHeader::Print
void Print(std::ostream &os) const
Definition:
wifi-mac-header.cc:912
ns3::WifiMacHeader::SetOrder
void SetOrder(void)
Set order bit in the frame control field.
Definition:
wifi-mac-header.cc:289
ns3::WifiMacHeader::IsAuthentication
bool IsAuthentication(void) const
Return true if the header is an Authentication header.
Definition:
wifi-mac-header.cc:612
ns3::WifiMacHeader::IsQosBlockAck
bool IsQosBlockAck(void) const
Return if the QoS ACK policy is Block ACK.
Definition:
wifi-mac-header.cc:684
ns3::WifiMacHeader::m_amsduPresent
uint8_t m_amsduPresent
AMSDU present.
Definition:
wifi-mac-header.h:590
ns3::WifiMacHeader::NORMAL_ACK
Definition:
wifi-mac-header.h:88
ns3::WifiMacHeader::m_addr4
Mac48Address m_addr4
address 4
Definition:
wifi-mac-header.h:586
ns3::WifiMacHeader::m_ctrlMoreFrag
uint8_t m_ctrlMoreFrag
control more fragments
Definition:
wifi-mac-header.h:575
ns3::WifiMacHeader::m_ctrlFromDs
uint8_t m_ctrlFromDs
control from DS
Definition:
wifi-mac-header.h:574
ns3::WifiMacHeader::IsMgt
bool IsMgt(void) const
Return true if the Type is Management.
Definition:
wifi-mac-header.cc:521
ns3::WifiMacHeader::ADDR2
Definition:
wifi-mac-header.h:100
ns3::WifiMacHeader::m_ctrlOrder
uint8_t m_ctrlOrder
control order
Definition:
wifi-mac-header.h:579
ns3::WifiMacHeader::SetQosTid
void SetQosTid(uint8_t tid)
Set the TID for the QoS header.
Definition:
wifi-mac-header.cc:309
ns3::WifiMacHeader::GetInstanceTypeId
TypeId GetInstanceTypeId(void) const
Get the most derived TypeId for this Object.
Definition:
wifi-mac-header.cc:897
ns3::WifiMacHeader::SetSequenceControl
void SetSequenceControl(uint16_t seq)
Set the Sequence Control field with the given raw value.
Definition:
wifi-mac-header.cc:774
ns3::WifiMacHeader::SetNoRetry
void SetNoRetry(void)
Un-set the Retry bit in the Frame Control field.
Definition:
wifi-mac-header.cc:304
ns3::WifiMacHeader::IsToDs
bool IsToDs(void) const
Definition:
wifi-mac-header.cc:496
ns3
Every class exported by the ns3 library is enclosed in the ns3 namespace.
ns3::WifiMacHeader::m_seqSeq
uint16_t m_seqSeq
sequence sequence
Definition:
wifi-mac-header.h:585
ns3::WifiMacHeader::IsDisassociation
bool IsDisassociation(void) const
Return true if the header is a Disassociation header.
Definition:
wifi-mac-header.cc:606
ns3::WifiMacHeader::m_qosStuff
uint8_t m_qosStuff
QOS stuff.
Definition:
wifi-mac-header.h:591
ns3::WifiMacHeader::SetAddr2
void SetAddr2(Mac48Address address)
Fill the Address 2 field with the given address.
Definition:
wifi-mac-header.cc:93
ns3::WIFI_MAC_MGT_DISASSOCIATION
Definition:
wifi-mac-header.h:47
ns3::WIFI_MAC_MGT_PROBE_RESPONSE
Definition:
wifi-mac-header.h:51
ns3::WifiMacHeader::QosAckPolicy
QosAckPolicy
ACK policy for QoS frames.
Definition:
wifi-mac-header.h:86
ns3::Mac48Address
an EUI-48 address
Definition:
mac48-address.h:43
ns3::WIFI_MAC_DATA
Definition:
wifi-mac-header.h:58
ns3::WIFI_MAC_QOSDATA_NULL_CFACK_CFPOLL
Definition:
wifi-mac-header.h:72
ns3::WIFI_MAC_DATA_NULL_CFPOLL
Definition:
wifi-mac-header.h:64
ns3::WifiMacHeader::PrintFrameControl
void PrintFrameControl(std::ostream &os) const
Print the Frame Control field to the output stream.
Definition:
wifi-mac-header.cc:903
ns3::WifiMacHeader::GetTypeString
const char * GetTypeString(void) const
Return a string corresponds to the header type.
Definition:
wifi-mac-header.cc:833
ns3::WifiMacHeader::WifiMacHeader
WifiMacHeader()
Definition:
wifi-mac-header.cc:50
ns3::WifiMacHeader::m_duration
uint16_t m_duration
duration
Definition:
wifi-mac-header.h:580
ns3::WifiMacHeader::m_ctrlRetry
uint8_t m_ctrlRetry
control retry
Definition:
wifi-mac-header.h:576
ns3::WIFI_MAC_QOSDATA_CFPOLL
Definition:
wifi-mac-header.h:68
ns3::WifiMacHeader::SetQosTxopLimit
void SetQosTxopLimit(uint8_t txop)
Set TXOP limit in the QoS control field.
Definition:
wifi-mac-header.cc:353
ns3::WifiMacHeader::SetSequenceNumber
void SetSequenceNumber(uint16_t seq)
Set the sequence number of the header.
Definition:
wifi-mac-header.cc:269
ns3::WifiMacHeader::IsData
bool IsData(void) const
Return true if the Type is DATA.
Definition:
wifi-mac-header.cc:502
ns3::WifiMacHeader::IsQosData
bool IsQosData(void) const
Return true if the Type is DATA and Subtype is one of the possible values for QoS DATA...
Definition:
wifi-mac-header.cc:509
ns3::WIFI_MAC_DATA_NULL_CFACK_CFPOLL
Definition:
wifi-mac-header.h:65
ns3::WifiMacHeader::IsBlockAckReq
bool IsBlockAckReq(void) const
Return true if the header is a Block ACK Request header.
Definition:
wifi-mac-header.cc:636
ns3::WifiMacHeader::GetType
WifiMacType GetType(void) const
Return the type (enum WifiMacType)
Definition:
wifi-mac-header.cc:398
ns3::WIFI_MAC_QOSDATA
Definition:
wifi-mac-header.h:66
ns3::WIFI_MAC_CTL_BACKREQ
Definition:
wifi-mac-header.h:41
ns3::WifiMacHeader::SetQosNoAmsdu
void SetQosNoAmsdu(void)
Set that A-MSDU is not present.
Definition:
wifi-mac-header.cc:348
ns3::WIFI_MAC_MGT_BEACON
Definition:
wifi-mac-header.h:44
ns3::WIFI_MAC_MGT_REASSOCIATION_RESPONSE
Definition:
wifi-mac-header.h:49
ns3::WifiMacHeader::Serialize
void Serialize(Buffer::Iterator start) const
Definition:
wifi-mac-header.cc:1009
ns3::WifiMacHeader::SetDsTo
void SetDsTo(void)
Set the To DS bit in the Frame Control field.
Definition:
wifi-mac-header.cc:75
ns3::WifiMacHeader::IsFromDs
bool IsFromDs(void) const
Definition:
wifi-mac-header.cc:490
ns3::WifiMacHeader::SetQosEosp
void SetQosEosp()
Set the end of service period (EOSP) bit in the QoS control field.
Definition:
wifi-mac-header.cc:314
ns3::WifiMacHeader::IsQosEosp
bool IsQosEosp(void) const
Return if the end of service period (EOSP) is set.
Definition:
wifi-mac-header.cc:705
ns3::WifiMacHeader::~WifiMacHeader
virtual ~WifiMacHeader()
Definition:
wifi-mac-header.cc:58
ns3::WifiMacHeader::Deserialize
uint32_t Deserialize(Buffer::Iterator start)
Definition:
wifi-mac-header.cc:1062
ns3::WifiMacHeader::SetDsFrom
void SetDsFrom(void)
Set the From DS bit in the Frame Control field.
Definition:
wifi-mac-header.cc:63
ns3::WifiMacHeader::SetNoOrder
void SetNoOrder(void)
Unset order bit in the frame control field.
Definition:
wifi-mac-header.cc:294
ns3::WifiMacHeader::IsMultihopAction
bool IsMultihopAction() const
Check if the header is a Multihop action header.
Definition:
wifi-mac-header.cc:630
ns3::WIFI_MAC_CTL_BACKRESP
Definition:
wifi-mac-header.h:42
ns3::WIFI_MAC_MGT_ASSOCIATION_RESPONSE
Definition:
wifi-mac-header.h:46
ns3::WIFI_MAC_CTL_ACK
Definition:
wifi-mac-header.h:40
ns3::WifiMacHeader::IsCts
bool IsCts(void) const
Return true if the header is a CTS header.
Definition:
wifi-mac-header.cc:552
ns3::WifiMacHeader::GetAddr1
Mac48Address GetAddr1(void) const
Return the address in the Address 1 field.
Definition:
wifi-mac-header.cc:374
ns3::WIFI_MAC_CTL_RTS
Definition:
wifi-mac-header.h:38
first.address
tuple address
Definition:
first.py:37
ns3::WifiMacHeader::m_qosTid
uint8_t m_qosTid
QOS TID.
Definition:
wifi-mac-header.h:587
ns3::WifiMacHeader::SetQosMeshControlPresent
void SetQosMeshControlPresent()
Set the Mesh Control Present flag for the QoS header.
Definition:
wifi-mac-header.cc:358
ns3::WifiMacHeader::ADDR4
Definition:
wifi-mac-header.h:102
ns3::WifiMacHeader::SetQosNoMeshControlPresent
void SetQosNoMeshControlPresent()
Clear the Mesh Control Present flag for the QoS header.
Definition:
wifi-mac-header.cc:365
ns3::WifiMacHeader::m_ctrlSubtype
uint8_t m_ctrlSubtype
control subtype
Definition:
wifi-mac-header.h:572
ns3::WIFI_MAC_MGT_ACTION
Definition:
wifi-mac-header.h:54
ns3::WifiMacHeader::IsDeauthentication
bool IsDeauthentication(void) const
Return true if the header is a Deauthentication header.
Definition:
wifi-mac-header.cc:618
ns3::WifiMacHeader::IsRts
bool IsRts(void) const
Return true if the header is a RTS header.
Definition:
wifi-mac-header.cc:546
ns3::WifiMacHeader::SetQosNoEosp
void SetQosNoEosp()
Un-set the end of service period (EOSP) bit in the QoS control field.
Definition:
wifi-mac-header.cc:319
ns3::WifiMacHeader::IsAck
bool IsAck(void) const
Return true if the header is an ACK header.
Definition:
wifi-mac-header.cc:558
ns3::WifiMacHeader::GetTypeId
static TypeId GetTypeId(void)
Get the type ID.
Definition:
wifi-mac-header.cc:886
ns3::WifiMacHeader::SetFragmentNumber
void SetFragmentNumber(uint8_t frag)
Set the fragment number of the header.
Definition:
wifi-mac-header.cc:274
ns3::WIFI_MAC_DATA_CFPOLL
Definition:
wifi-mac-header.h:60
ns3::WifiMacHeader::BLOCK_ACK
Definition:
wifi-mac-header.h:91
ns3::TypeId
a unique identifier for an interface.
Definition:
type-id.h:58
ns3::WifiMacHeader::ADDR1
Definition:
wifi-mac-header.h:99
ns3::WifiMacHeader::SetQosAmsdu
void SetQosAmsdu(void)
Set that A-MSDU is present.
Definition:
wifi-mac-header.cc:343
ns3::WIFI_MAC_MGT_DEAUTHENTICATION
Definition:
wifi-mac-header.h:53
ns3::WifiMacHeader::IsRetry
bool IsRetry(void) const
Return if the Retry bit is set.
Definition:
wifi-mac-header.cc:672
ns3::WifiMacHeader
Implements the IEEE 802.11 MAC header.
Definition:
wifi-mac-header.h:80
ns3::WifiMacHeader::GetAddr2
Mac48Address GetAddr2(void) const
Return the address in the Address 2 field.
Definition:
wifi-mac-header.cc:380
ns3::WifiMacHeader::IsQosNoAck
bool IsQosNoAck(void) const
Return if the QoS ACK policy is No ACK.
Definition:
wifi-mac-header.cc:691
ns3::WifiMacHeader::m_ctrlWep
uint8_t m_ctrlWep
control WEP
Definition:
wifi-mac-header.h:578
ns3::WifiMacHeader::IsQosAck
bool IsQosAck(void) const
Return if the QoS ACK policy is Normal ACK.
Definition:
wifi-mac-header.cc:698
ns3::WifiMacHeader::SetDsNotFrom
void SetDsNotFrom(void)
Un-set the From DS bit in the Frame Control field.
Definition:
wifi-mac-header.cc:69
ns3::WifiMacHeader::NO_ACK
Definition:
wifi-mac-header.h:89
ns3::WIFI_MAC_QOSDATA_CFACK
Definition:
wifi-mac-header.h:67
ns3::WifiMacHeader::GetSequenceNumber
uint16_t GetSequenceNumber(void) const
Return the sequence number of the header.
Definition:
wifi-mac-header.cc:660
ns3::WifiMacHeader::SetQosAckPolicy
void SetQosAckPolicy(QosAckPolicy policy)
Set the QoS ACK policy in the QoS control field.
Definition:
wifi-mac-header.cc:324
src
wifi
model
wifi-mac-header.h
Generated on Wed Mar 21 2018 14:24:33 for ns-3 by
1.8.9.1