A Discrete-Event Network Simulator
Home
Tutorials ▼
English
Documentation ▼
Installation
Manual
Models
Contributing
Wiki
Development ▼
API Docs
Issue Tracker
Merge Requests
API
wifi-mac-header.h
Go to the documentation of this file.
1
/*
2
* Copyright (c) 2006, 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
* Author: Mathieu Lacage <mathieu.lacage@sophia.inria.fr>
19
* Author: Mirko Banchi <mk.banchi@gmail.com>
20
*/
21
22
#ifndef WIFI_MAC_HEADER_H
23
#define WIFI_MAC_HEADER_H
24
25
#include "ns3/header.h"
26
#include "ns3/mac48-address.h"
27
28
namespace
ns3
29
{
30
31
class
Time
;
32
36
enum
WifiMacType
37
{
38
WIFI_MAC_CTL_TRIGGER
= 0,
39
WIFI_MAC_CTL_CTLWRAPPER
,
40
WIFI_MAC_CTL_PSPOLL
,
41
WIFI_MAC_CTL_RTS
,
42
WIFI_MAC_CTL_CTS
,
43
WIFI_MAC_CTL_ACK
,
44
WIFI_MAC_CTL_BACKREQ
,
45
WIFI_MAC_CTL_BACKRESP
,
46
WIFI_MAC_CTL_END
,
47
WIFI_MAC_CTL_END_ACK
,
48
49
WIFI_MAC_CTL_DMG_POLL
,
50
WIFI_MAC_CTL_DMG_SPR
,
51
WIFI_MAC_CTL_DMG_GRANT
,
52
WIFI_MAC_CTL_DMG_CTS
,
53
WIFI_MAC_CTL_DMG_DTS
,
54
WIFI_MAC_CTL_DMG_SSW
,
55
WIFI_MAC_CTL_DMG_SSW_FBCK
,
56
WIFI_MAC_CTL_DMG_SSW_ACK
,
57
WIFI_MAC_CTL_DMG_GRANT_ACK
,
58
59
WIFI_MAC_MGT_BEACON
,
60
WIFI_MAC_MGT_ASSOCIATION_REQUEST
,
61
WIFI_MAC_MGT_ASSOCIATION_RESPONSE
,
62
WIFI_MAC_MGT_DISASSOCIATION
,
63
WIFI_MAC_MGT_REASSOCIATION_REQUEST
,
64
WIFI_MAC_MGT_REASSOCIATION_RESPONSE
,
65
WIFI_MAC_MGT_PROBE_REQUEST
,
66
WIFI_MAC_MGT_PROBE_RESPONSE
,
67
WIFI_MAC_MGT_AUTHENTICATION
,
68
WIFI_MAC_MGT_DEAUTHENTICATION
,
69
WIFI_MAC_MGT_ACTION
,
70
WIFI_MAC_MGT_ACTION_NO_ACK
,
71
WIFI_MAC_MGT_MULTIHOP_ACTION
,
72
73
WIFI_MAC_DATA
,
74
WIFI_MAC_DATA_CFACK
,
75
WIFI_MAC_DATA_CFPOLL
,
76
WIFI_MAC_DATA_CFACK_CFPOLL
,
77
WIFI_MAC_DATA_NULL
,
78
WIFI_MAC_DATA_NULL_CFACK
,
79
WIFI_MAC_DATA_NULL_CFPOLL
,
80
WIFI_MAC_DATA_NULL_CFACK_CFPOLL
,
81
WIFI_MAC_QOSDATA
,
82
WIFI_MAC_QOSDATA_CFACK
,
83
WIFI_MAC_QOSDATA_CFPOLL
,
84
WIFI_MAC_QOSDATA_CFACK_CFPOLL
,
85
WIFI_MAC_QOSDATA_NULL
,
86
WIFI_MAC_QOSDATA_NULL_CFPOLL
,
87
WIFI_MAC_QOSDATA_NULL_CFACK_CFPOLL
,
88
89
WIFI_MAC_EXTENSION_DMG_BEACON
,
90
};
91
97
class
WifiMacHeader
:
public
Header
98
{
99
public
:
103
enum
QosAckPolicy
104
{
105
NORMAL_ACK
= 0,
106
NO_ACK
= 1,
107
NO_EXPLICIT_ACK
= 2,
108
BLOCK_ACK
= 3,
109
};
110
114
enum
AddressType
115
{
116
ADDR1
,
117
ADDR2
,
118
ADDR3
,
119
ADDR4
120
};
121
122
WifiMacHeader
();
128
WifiMacHeader
(
WifiMacType
type
);
129
~WifiMacHeader
()
override
;
130
135
static
TypeId
GetTypeId
();
136
137
TypeId
GetInstanceTypeId
()
const override
;
138
void
Print
(std::ostream& os)
const override
;
139
uint32_t
GetSerializedSize
()
const override
;
140
void
Serialize
(
Buffer::Iterator
start
)
const override
;
141
uint32_t
Deserialize
(
Buffer::Iterator
start
)
override
;
142
146
void
SetDsFrom
();
150
void
SetDsNotFrom
();
154
void
SetDsTo
();
158
void
SetDsNotTo
();
164
void
SetAddr1
(
Mac48Address
address
);
170
void
SetAddr2
(
Mac48Address
address
);
176
void
SetAddr3
(
Mac48Address
address
);
182
void
SetAddr4
(
Mac48Address
address
);
191
virtual
void
SetType
(
WifiMacType
type
,
bool
resetToDsFromDs =
true
);
197
void
SetRawDuration
(uint16_t duration);
204
void
SetDuration
(
Time
duration);
210
void
SetId
(uint16_t
id
);
216
void
SetSequenceNumber
(uint16_t seq);
222
void
SetFragmentNumber
(uint8_t frag);
226
void
SetNoMoreFragments
();
230
void
SetMoreFragments
();
234
void
SetRetry
();
238
void
SetNoRetry
();
242
void
SetPowerManagement
();
246
void
SetNoPowerManagement
();
252
void
SetQosTid
(uint8_t tid);
256
void
SetQosEosp
();
260
void
SetQosNoEosp
();
266
void
SetQosAckPolicy
(
QosAckPolicy
policy);
270
void
SetQosAmsdu
();
274
void
SetQosNoAmsdu
();
280
void
SetQosTxopLimit
(uint8_t txop);
286
void
SetQosQueueSize
(uint8_t size);
290
void
SetQosMeshControlPresent
();
294
void
SetQosNoMeshControlPresent
();
298
void
SetOrder
();
302
void
SetNoOrder
();
303
309
Mac48Address
GetAddr1
()
const
;
315
Mac48Address
GetAddr2
()
const
;
321
Mac48Address
GetAddr3
()
const
;
327
Mac48Address
GetAddr4
()
const
;
333
virtual
WifiMacType
GetType
()
const
;
337
bool
IsFromDs
()
const
;
341
bool
IsToDs
()
const
;
349
bool
IsData
()
const
;
356
bool
IsQosData
()
const
;
363
bool
HasData
()
const
;
369
bool
IsCtl
()
const
;
375
bool
IsMgt
()
const
;
381
bool
IsCfPoll
()
const
;
387
bool
IsCfAck
()
const
;
393
bool
IsCfEnd
()
const
;
399
bool
IsPsPoll
()
const
;
405
bool
IsRts
()
const
;
411
bool
IsCts
()
const
;
417
bool
IsAck
()
const
;
423
bool
IsBlockAckReq
()
const
;
429
bool
IsBlockAck
()
const
;
435
bool
IsTrigger
()
const
;
441
bool
IsAssocReq
()
const
;
447
bool
IsAssocResp
()
const
;
453
bool
IsReassocReq
()
const
;
459
bool
IsReassocResp
()
const
;
465
bool
IsProbeReq
()
const
;
471
bool
IsProbeResp
()
const
;
477
bool
IsBeacon
()
const
;
483
bool
IsDisassociation
()
const
;
489
bool
IsAuthentication
()
const
;
495
bool
IsDeauthentication
()
const
;
501
bool
IsAction
()
const
;
507
bool
IsActionNoAck
()
const
;
514
bool
IsMultihopAction
()
const
;
520
uint16_t
GetRawDuration
()
const
;
526
Time
GetDuration
()
const
;
532
uint16_t
GetSequenceControl
()
const
;
538
uint16_t
GetSequenceNumber
()
const
;
544
uint8_t
GetFragmentNumber
()
const
;
550
bool
IsRetry
()
const
;
556
bool
IsPowerManagement
()
const
;
562
bool
IsMoreData
()
const
;
568
bool
IsMoreFragments
()
const
;
574
bool
IsQosBlockAck
()
const
;
580
bool
IsQosNoAck
()
const
;
586
bool
IsQosAck
()
const
;
592
bool
IsQosEosp
()
const
;
599
bool
IsQosAmsdu
()
const
;
605
uint8_t
GetQosTid
()
const
;
611
QosAckPolicy
GetQosAckPolicy
()
const
;
617
uint8_t
GetQosQueueSize
()
const
;
624
virtual
uint32_t
GetSize
()
const
;
630
virtual
const
char
*
GetTypeString
()
const
;
631
637
typedef
void (*
TracedCallback
)(
const
WifiMacHeader
& header);
638
639
protected
:
645
virtual
uint16_t
GetFrameControl
()
const
;
651
virtual
uint16_t
GetQosControl
()
const
;
657
virtual
void
SetFrameControl
(uint16_t control);
663
void
SetSequenceControl
(uint16_t seq);
669
virtual
void
SetQosControl
(uint16_t qos);
675
void
PrintFrameControl
(std::ostream& os)
const
;
676
677
uint8_t
m_ctrlType
;
678
uint8_t
m_ctrlSubtype
;
679
uint8_t
m_ctrlToDs
;
680
uint8_t
m_ctrlFromDs
;
681
uint8_t
m_ctrlMoreFrag
;
682
uint8_t
m_ctrlRetry
;
683
uint8_t
m_ctrlPowerManagement
;
684
uint8_t
m_ctrlMoreData
;
685
uint8_t
m_ctrlWep
;
686
uint8_t
m_ctrlOrder
;
689
uint16_t
m_duration
;
690
Mac48Address
m_addr1
;
691
Mac48Address
m_addr2
;
692
Mac48Address
m_addr3
;
693
uint8_t
m_seqFrag
;
694
uint16_t
m_seqSeq
;
695
Mac48Address
m_addr4
;
696
uint8_t
m_qosTid
;
697
uint8_t
m_qosEosp
;
698
uint8_t
m_qosAckPolicy
;
699
uint8_t
m_amsduPresent
;
700
uint8_t
m_qosStuff
;
701
};
702
703
}
// namespace ns3
704
705
#endif
/* WIFI_MAC_HEADER_H */
ns3::Buffer::Iterator
iterator in a Buffer instance
Definition:
buffer.h:100
ns3::Header
Protocol header serialization and deserialization.
Definition:
header.h:44
ns3::Header::Deserialize
virtual uint32_t Deserialize(Buffer::Iterator start)=0
Deserialize the object from a buffer iterator.
ns3::Mac48Address
an EUI-48 address
Definition:
mac48-address.h:46
ns3::Time
Simulation virtual time values and global simulation resolution.
Definition:
nstime.h:105
ns3::TracedCallback
Forward calls to a chain of Callback.
Definition:
traced-callback.h:54
ns3::TypeId
a unique identifier for an interface.
Definition:
type-id.h:59
ns3::WifiMacHeader
Implements the IEEE 802.11 MAC header.
Definition:
wifi-mac-header.h:98
ns3::WifiMacHeader::GetQosTid
uint8_t GetQosTid() const
Return the Traffic ID of a QoS header.
Definition:
wifi-mac-header.cc:925
ns3::WifiMacHeader::IsCfAck
bool IsCfAck() const
Return true if the header is a CF-Ack header.
Definition:
wifi-mac-header.cc:655
ns3::WifiMacHeader::m_qosEosp
uint8_t m_qosEosp
QoS EOSP.
Definition:
wifi-mac-header.h:697
ns3::WifiMacHeader::m_ctrlRetry
uint8_t m_ctrlRetry
control retry
Definition:
wifi-mac-header.h:682
ns3::WifiMacHeader::m_qosTid
uint8_t m_qosTid
QoS TID.
Definition:
wifi-mac-header.h:696
ns3::WifiMacHeader::m_ctrlPowerManagement
uint8_t m_ctrlPowerManagement
control power management
Definition:
wifi-mac-header.h:683
ns3::WifiMacHeader::IsAssocReq
bool IsAssocReq() const
Return true if the header is an Association Request header.
Definition:
wifi-mac-header.cc:714
ns3::WifiMacHeader::IsCfPoll
bool IsCfPoll() const
Return true if the Type/Subtype is one of the possible CF-Poll headers.
Definition:
wifi-mac-header.cc:623
ns3::WifiMacHeader::SetQosAckPolicy
void SetQosAckPolicy(QosAckPolicy policy)
Set the QoS Ack policy in the QoS control field.
Definition:
wifi-mac-header.cc:402
ns3::WifiMacHeader::IsAck
bool IsAck() const
Return true if the header is an Ack header.
Definition:
wifi-mac-header.cc:708
ns3::WifiMacHeader::AddressType
AddressType
Address types.
Definition:
wifi-mac-header.h:115
ns3::WifiMacHeader::ADDR2
@ ADDR2
Definition:
wifi-mac-header.h:117
ns3::WifiMacHeader::ADDR1
@ ADDR1
Definition:
wifi-mac-header.h:116
ns3::WifiMacHeader::ADDR3
@ ADDR3
Definition:
wifi-mac-header.h:118
ns3::WifiMacHeader::ADDR4
@ ADDR4
Definition:
wifi-mac-header.h:119
ns3::WifiMacHeader::GetRawDuration
uint16_t GetRawDuration() const
Return the raw duration from the Duration/ID field.
Definition:
wifi-mac-header.cc:810
ns3::WifiMacHeader::SetRawDuration
void SetRawDuration(uint16_t duration)
Set the Duration/ID field with the given raw uint16_t value.
Definition:
wifi-mac-header.cc:302
ns3::WifiMacHeader::IsProbeReq
bool IsProbeReq() const
Return true if the header is a Probe Request header.
Definition:
wifi-mac-header.cc:738
ns3::WifiMacHeader::IsBlockAckReq
bool IsBlockAckReq() const
Return true if the header is a BlockAckRequest header.
Definition:
wifi-mac-header.cc:792
ns3::WifiMacHeader::IsQosAmsdu
bool IsQosAmsdu() const
Check if the A-MSDU present bit is set in the QoS control field.
Definition:
wifi-mac-header.cc:918
ns3::WifiMacHeader::IsCts
bool IsCts() const
Return true if the header is a CTS header.
Definition:
wifi-mac-header.cc:696
ns3::WifiMacHeader::GetAddr3
Mac48Address GetAddr3() const
Return the address in the Address 3 field.
Definition:
wifi-mac-header.cc:475
ns3::WifiMacHeader::SetQosAmsdu
void SetQosAmsdu()
Set that A-MSDU is present.
Definition:
wifi-mac-header.cc:422
ns3::WifiMacHeader::GetFrameControl
virtual uint16_t GetFrameControl() const
Return the raw Frame Control field.
Definition:
wifi-mac-header.cc:939
ns3::WifiMacHeader::GetAddr4
Mac48Address GetAddr4() const
Return the address in the Address 4 field.
Definition:
wifi-mac-header.cc:481
ns3::WifiMacHeader::SetFrameControl
virtual void SetFrameControl(uint16_t control)
Set the Frame Control field with the given raw value.
Definition:
wifi-mac-header.cc:968
ns3::WifiMacHeader::IsBeacon
bool IsBeacon() const
Return true if the header is a Beacon header.
Definition:
wifi-mac-header.cc:750
ns3::WifiMacHeader::GetSerializedSize
uint32_t GetSerializedSize() const override
Definition:
wifi-mac-header.cc:1231
ns3::WifiMacHeader::IsAssocResp
bool IsAssocResp() const
Return true if the header is an Association Response header.
Definition:
wifi-mac-header.cc:720
ns3::WifiMacHeader::GetAddr1
Mac48Address GetAddr1() const
Return the address in the Address 1 field.
Definition:
wifi-mac-header.cc:463
ns3::WifiMacHeader::GetSequenceNumber
uint16_t GetSequenceNumber() const
Return the sequence number of the header.
Definition:
wifi-mac-header.cc:828
ns3::WifiMacHeader::IsDisassociation
bool IsDisassociation() const
Return true if the header is a Disassociation header.
Definition:
wifi-mac-header.cc:756
ns3::WifiMacHeader::m_addr1
Mac48Address m_addr1
address 1
Definition:
wifi-mac-header.h:690
ns3::WifiMacHeader::m_seqSeq
uint16_t m_seqSeq
sequence sequence
Definition:
wifi-mac-header.h:694
ns3::WifiMacHeader::IsMoreFragments
bool IsMoreFragments() const
Return if the More Fragment bit is set.
Definition:
wifi-mac-header.cc:852
ns3::WifiMacHeader::SetRetry
void SetRetry()
Set the Retry bit in the Frame Control field.
Definition:
wifi-mac-header.cc:360
ns3::WifiMacHeader::GetSequenceControl
uint16_t GetSequenceControl() const
Return the raw Sequence Control field.
Definition:
wifi-mac-header.cc:822
ns3::WifiMacHeader::IsTrigger
bool IsTrigger() const
Return true if the header is a Trigger header.
Definition:
wifi-mac-header.cc:804
ns3::WifiMacHeader::SetQosTxopLimit
void SetQosTxopLimit(uint8_t txop)
Set TXOP limit in the QoS control field.
Definition:
wifi-mac-header.cc:434
ns3::WifiMacHeader::GetType
virtual WifiMacType GetType() const
Return the type (WifiMacType)
Definition:
wifi-mac-header.cc:487
ns3::WifiMacHeader::SetNoMoreFragments
void SetNoMoreFragments()
Un-set the More Fragment bit in the Frame Control Field.
Definition:
wifi-mac-header.cc:336
ns3::WifiMacHeader::IsRetry
bool IsRetry() const
Return if the Retry bit is set.
Definition:
wifi-mac-header.cc:840
ns3::WifiMacHeader::IsActionNoAck
bool IsActionNoAck() const
Return true if the header is an Action No Ack header.
Definition:
wifi-mac-header.cc:780
ns3::WifiMacHeader::IsMgt
bool IsMgt() const
Return true if the Type is Management.
Definition:
wifi-mac-header.cc:617
ns3::WifiMacHeader::IsCtl
bool IsCtl() const
Return true if the Type is Control.
Definition:
wifi-mac-header.cc:611
ns3::WifiMacHeader::GetDuration
Time GetDuration() const
Return the duration from the Duration/ID field (Time object).
Definition:
wifi-mac-header.cc:816
ns3::WifiMacHeader::SetQosControl
virtual void SetQosControl(uint16_t qos)
Set the QoS Control field with the given raw value.
Definition:
wifi-mac-header.cc:990
ns3::WifiMacHeader::m_ctrlSubtype
uint8_t m_ctrlSubtype
control subtype
Definition:
wifi-mac-header.h:678
ns3::WifiMacHeader::SetSequenceNumber
void SetSequenceNumber(uint16_t seq)
Set the sequence number of the header.
Definition:
wifi-mac-header.cc:324
ns3::WifiMacHeader::SetNoOrder
void SetNoOrder()
Unset order bit in the frame control field.
Definition:
wifi-mac-header.cc:354
ns3::WifiMacHeader::GetSize
virtual uint32_t GetSize() const
Return the size of the WifiMacHeader in octets.
Definition:
wifi-mac-header.cc:1000
ns3::WifiMacHeader::m_amsduPresent
uint8_t m_amsduPresent
A-MSDU present.
Definition:
wifi-mac-header.h:699
ns3::WifiMacHeader::IsCfEnd
bool IsCfEnd() const
Return true if the header is a CF-End header.
Definition:
wifi-mac-header.cc:642
ns3::WifiMacHeader::SetDsNotFrom
void SetDsNotFrom()
Un-set the From DS bit in the Frame Control field.
Definition:
wifi-mac-header.cc:93
ns3::WifiMacHeader::GetQosControl
virtual uint16_t GetQosControl() const
Return the raw QoS Control field.
Definition:
wifi-mac-header.cc:956
ns3::WifiMacHeader::IsProbeResp
bool IsProbeResp() const
Return true if the header is a Probe Response header.
Definition:
wifi-mac-header.cc:744
ns3::WifiMacHeader::IsAction
bool IsAction() const
Return true if the header is an Action header.
Definition:
wifi-mac-header.cc:774
ns3::WifiMacHeader::SetMoreFragments
void SetMoreFragments()
Set the More Fragment bit in the Frame Control field.
Definition:
wifi-mac-header.cc:342
ns3::WifiMacHeader::IsQosEosp
bool IsQosEosp() const
Return if the end of service period (EOSP) is set.
Definition:
wifi-mac-header.cc:885
ns3::WifiMacHeader::m_addr4
Mac48Address m_addr4
address 4
Definition:
wifi-mac-header.h:695
ns3::WifiMacHeader::m_addr2
Mac48Address m_addr2
address 2
Definition:
wifi-mac-header.h:691
ns3::WifiMacHeader::SetAddr1
void SetAddr1(Mac48Address address)
Fill the Address 1 field with the given address.
Definition:
wifi-mac-header.cc:111
ns3::WifiMacHeader::SetOrder
void SetOrder()
Set order bit in the frame control field.
Definition:
wifi-mac-header.cc:348
ns3::WifiMacHeader::SetSequenceControl
void SetSequenceControl(uint16_t seq)
Set the Sequence Control field with the given raw value.
Definition:
wifi-mac-header.cc:983
ns3::WifiMacHeader::SetQosQueueSize
void SetQosQueueSize(uint8_t size)
Set the Queue Size subfield in the QoS control field.
Definition:
wifi-mac-header.cc:440
ns3::WifiMacHeader::SetQosNoAmsdu
void SetQosNoAmsdu()
Set that A-MSDU is not present.
Definition:
wifi-mac-header.cc:428
ns3::WifiMacHeader::IsBlockAck
bool IsBlockAck() const
Return true if the header is a BlockAck header.
Definition:
wifi-mac-header.cc:798
ns3::WifiMacHeader::SetType
virtual void SetType(WifiMacType type, bool resetToDsFromDs=true)
Set Type/Subtype values with the correct values depending on the given type.
Definition:
wifi-mac-header.cc:135
ns3::WifiMacHeader::SetAddr4
void SetAddr4(Mac48Address address)
Fill the Address 4 field with the given address.
Definition:
wifi-mac-header.cc:129
ns3::WifiMacHeader::m_ctrlOrder
uint8_t m_ctrlOrder
control order (set to 1 for QoS Data and Management frames to signify that HT/VHT/HE control field is...
Definition:
wifi-mac-header.h:686
ns3::WifiMacHeader::IsFromDs
bool IsFromDs() const
Definition:
wifi-mac-header.cc:587
ns3::WifiMacHeader::m_ctrlFromDs
uint8_t m_ctrlFromDs
control from DS
Definition:
wifi-mac-header.h:680
ns3::WifiMacHeader::GetAddr2
Mac48Address GetAddr2() const
Return the address in the Address 2 field.
Definition:
wifi-mac-header.cc:469
ns3::WifiMacHeader::m_duration
uint16_t m_duration
duration
Definition:
wifi-mac-header.h:689
ns3::WifiMacHeader::GetTypeString
virtual const char * GetTypeString() const
Return a string corresponds to the header type.
Definition:
wifi-mac-header.cc:1045
ns3::WifiMacHeader::m_ctrlWep
uint8_t m_ctrlWep
control WEP
Definition:
wifi-mac-header.h:685
ns3::WifiMacHeader::HasData
bool HasData() const
Return true if the header type is DATA and is not DATA_NULL.
Definition:
wifi-mac-header.cc:671
ns3::WifiMacHeader::IsReassocReq
bool IsReassocReq() const
Return true if the header is a Reassociation Request header.
Definition:
wifi-mac-header.cc:726
ns3::WifiMacHeader::SetQosTid
void SetQosTid(uint8_t tid)
Set the TID for the QoS header.
Definition:
wifi-mac-header.cc:372
ns3::WifiMacHeader::IsToDs
bool IsToDs() const
Definition:
wifi-mac-header.cc:593
ns3::WifiMacHeader::GetQosAckPolicy
QosAckPolicy GetQosAckPolicy() const
Return the QoS Ack policy in the QoS control field.
Definition:
wifi-mac-header.cc:892
ns3::WifiMacHeader::SetDuration
void SetDuration(Time duration)
Set the Duration/ID field with the given duration (Time object).
Definition:
wifi-mac-header.cc:309
ns3::WifiMacHeader::IsData
bool IsData() const
Return true if the Type is DATA.
Definition:
wifi-mac-header.cc:599
ns3::WifiMacHeader::SetQosNoEosp
void SetQosNoEosp()
Un-set the end of service period (EOSP) bit in the QoS control field.
Definition:
wifi-mac-header.cc:396
ns3::WifiMacHeader::m_seqFrag
uint8_t m_seqFrag
sequence fragment
Definition:
wifi-mac-header.h:693
ns3::WifiMacHeader::m_ctrlMoreData
uint8_t m_ctrlMoreData
control more data
Definition:
wifi-mac-header.h:684
ns3::WifiMacHeader::IsReassocResp
bool IsReassocResp() const
Return true if the header is a Reassociation Response header.
Definition:
wifi-mac-header.cc:732
ns3::WifiMacHeader::IsRts
bool IsRts() const
Return true if the header is a RTS header.
Definition:
wifi-mac-header.cc:690
ns3::WifiMacHeader::GetTypeId
static TypeId GetTypeId()
Get the type ID.
Definition:
wifi-mac-header.cc:1103
ns3::WifiMacHeader::IsQosAck
bool IsQosAck() const
Return if the QoS Ack policy is Normal Ack.
Definition:
wifi-mac-header.cc:878
ns3::WifiMacHeader::Print
void Print(std::ostream &os) const override
Definition:
wifi-mac-header.cc:1130
ns3::WifiMacHeader::IsMoreData
bool IsMoreData() const
Return if the More Data bit is set.
Definition:
wifi-mac-header.cc:846
ns3::WifiMacHeader::SetQosNoMeshControlPresent
void SetQosNoMeshControlPresent()
Clear the Mesh Control Present flag for the QoS header.
Definition:
wifi-mac-header.cc:455
ns3::WifiMacHeader::SetDsFrom
void SetDsFrom()
Set the From DS bit in the Frame Control field.
Definition:
wifi-mac-header.cc:87
ns3::WifiMacHeader::IsQosNoAck
bool IsQosNoAck() const
Return if the QoS Ack policy is No Ack.
Definition:
wifi-mac-header.cc:871
ns3::WifiMacHeader::m_qosStuff
uint8_t m_qosStuff
QoS stuff.
Definition:
wifi-mac-header.h:700
ns3::WifiMacHeader::SetDsTo
void SetDsTo()
Set the To DS bit in the Frame Control field.
Definition:
wifi-mac-header.cc:99
ns3::WifiMacHeader::PrintFrameControl
void PrintFrameControl(std::ostream &os) const
Print the Frame Control field to the output stream.
Definition:
wifi-mac-header.cc:1119
ns3::WifiMacHeader::m_ctrlType
uint8_t m_ctrlType
control type
Definition:
wifi-mac-header.h:677
ns3::WifiMacHeader::SetAddr2
void SetAddr2(Mac48Address address)
Fill the Address 2 field with the given address.
Definition:
wifi-mac-header.cc:117
ns3::WifiMacHeader::SetId
void SetId(uint16_t id)
Set the Duration/ID field with the given ID.
Definition:
wifi-mac-header.cc:318
ns3::WifiMacHeader::IsQosBlockAck
bool IsQosBlockAck() const
Return if the QoS Ack policy is Block Ack.
Definition:
wifi-mac-header.cc:864
ns3::WifiMacHeader::IsPsPoll
bool IsPsPoll() const
Return true if the header is a PS-POLL header.
Definition:
wifi-mac-header.cc:702
ns3::WifiMacHeader::GetFragmentNumber
uint8_t GetFragmentNumber() const
Return the fragment number of the header.
Definition:
wifi-mac-header.cc:834
ns3::WifiMacHeader::IsQosData
bool IsQosData() const
Return true if the Type is DATA and Subtype is one of the possible values for QoS Data.
Definition:
wifi-mac-header.cc:605
ns3::WifiMacHeader::SetQosEosp
void SetQosEosp()
Set the end of service period (EOSP) bit in the QoS control field.
Definition:
wifi-mac-header.cc:390
ns3::WifiMacHeader::Serialize
void Serialize(Buffer::Iterator start) const override
Definition:
wifi-mac-header.cc:1237
ns3::WifiMacHeader::GetQosQueueSize
uint8_t GetQosQueueSize() const
Get the Queue Size subfield in the QoS control field.
Definition:
wifi-mac-header.cc:932
ns3::WifiMacHeader::SetAddr3
void SetAddr3(Mac48Address address)
Fill the Address 3 field with the given address.
Definition:
wifi-mac-header.cc:123
ns3::WifiMacHeader::WifiMacHeader
WifiMacHeader()
Definition:
wifi-mac-header.cc:60
ns3::WifiMacHeader::SetDsNotTo
void SetDsNotTo()
Un-set the To DS bit in the Frame Control field.
Definition:
wifi-mac-header.cc:105
ns3::WifiMacHeader::GetInstanceTypeId
TypeId GetInstanceTypeId() const override
Get the most derived TypeId for this Object.
Definition:
wifi-mac-header.cc:1113
ns3::WifiMacHeader::SetFragmentNumber
void SetFragmentNumber(uint8_t frag)
Set the fragment number of the header.
Definition:
wifi-mac-header.cc:330
ns3::WifiMacHeader::SetQosMeshControlPresent
void SetQosMeshControlPresent()
Set the Mesh Control Present flag for the QoS header.
Definition:
wifi-mac-header.cc:447
ns3::WifiMacHeader::m_addr3
Mac48Address m_addr3
address 3
Definition:
wifi-mac-header.h:692
ns3::WifiMacHeader::IsPowerManagement
bool IsPowerManagement() const
Return if the Power Management bit is set.
Definition:
wifi-mac-header.cc:858
ns3::WifiMacHeader::SetPowerManagement
void SetPowerManagement()
Set the Power Management bit in the Frame Control field.
Definition:
wifi-mac-header.cc:378
ns3::WifiMacHeader::m_ctrlMoreFrag
uint8_t m_ctrlMoreFrag
control more fragments
Definition:
wifi-mac-header.h:681
ns3::WifiMacHeader::QosAckPolicy
QosAckPolicy
Ack policy for QoS frames.
Definition:
wifi-mac-header.h:104
ns3::WifiMacHeader::NO_ACK
@ NO_ACK
Definition:
wifi-mac-header.h:106
ns3::WifiMacHeader::NO_EXPLICIT_ACK
@ NO_EXPLICIT_ACK
Definition:
wifi-mac-header.h:107
ns3::WifiMacHeader::BLOCK_ACK
@ BLOCK_ACK
Definition:
wifi-mac-header.h:108
ns3::WifiMacHeader::NORMAL_ACK
@ NORMAL_ACK
Definition:
wifi-mac-header.h:105
ns3::WifiMacHeader::IsMultihopAction
bool IsMultihopAction() const
Check if the header is a Multihop action header.
Definition:
wifi-mac-header.cc:786
ns3::WifiMacHeader::SetNoRetry
void SetNoRetry()
Un-set the Retry bit in the Frame Control field.
Definition:
wifi-mac-header.cc:366
ns3::WifiMacHeader::IsDeauthentication
bool IsDeauthentication() const
Return true if the header is a Deauthentication header.
Definition:
wifi-mac-header.cc:768
ns3::WifiMacHeader::~WifiMacHeader
~WifiMacHeader() override
Definition:
wifi-mac-header.cc:82
ns3::WifiMacHeader::m_ctrlToDs
uint8_t m_ctrlToDs
control to DS
Definition:
wifi-mac-header.h:679
ns3::WifiMacHeader::IsAuthentication
bool IsAuthentication() const
Return true if the header is an Authentication header.
Definition:
wifi-mac-header.cc:762
ns3::WifiMacHeader::SetNoPowerManagement
void SetNoPowerManagement()
Un-set the Power Management bit in the Frame Control field.
Definition:
wifi-mac-header.cc:384
ns3::WifiMacHeader::m_qosAckPolicy
uint8_t m_qosAckPolicy
QoS Ack policy.
Definition:
wifi-mac-header.h:698
check-style-clang-format.type
type
Definition:
check-style-clang-format.py:704
first.address
address
Definition:
first.py:47
ns3::TracedValueCallback::Time
void(* Time)(Time oldValue, Time newValue)
TracedValue callback signature for Time.
Definition:
nstime.h:839
ns3
Every class exported by the ns3 library is enclosed in the ns3 namespace.
ns3::WifiMacType
WifiMacType
Combination of valid MAC header type/subtype.
Definition:
wifi-mac-header.h:37
ns3::WIFI_MAC_QOSDATA_NULL_CFACK_CFPOLL
@ WIFI_MAC_QOSDATA_NULL_CFACK_CFPOLL
Definition:
wifi-mac-header.h:87
ns3::WIFI_MAC_EXTENSION_DMG_BEACON
@ WIFI_MAC_EXTENSION_DMG_BEACON
Definition:
wifi-mac-header.h:89
ns3::WIFI_MAC_CTL_TRIGGER
@ WIFI_MAC_CTL_TRIGGER
Definition:
wifi-mac-header.h:38
ns3::WIFI_MAC_CTL_DMG_SSW_ACK
@ WIFI_MAC_CTL_DMG_SSW_ACK
Definition:
wifi-mac-header.h:56
ns3::WIFI_MAC_MGT_PROBE_REQUEST
@ WIFI_MAC_MGT_PROBE_REQUEST
Definition:
wifi-mac-header.h:65
ns3::WIFI_MAC_CTL_END_ACK
@ WIFI_MAC_CTL_END_ACK
Definition:
wifi-mac-header.h:47
ns3::WIFI_MAC_DATA_CFACK
@ WIFI_MAC_DATA_CFACK
Definition:
wifi-mac-header.h:74
ns3::WIFI_MAC_CTL_BACKREQ
@ WIFI_MAC_CTL_BACKREQ
Definition:
wifi-mac-header.h:44
ns3::WIFI_MAC_DATA_NULL
@ WIFI_MAC_DATA_NULL
Definition:
wifi-mac-header.h:77
ns3::WIFI_MAC_CTL_PSPOLL
@ WIFI_MAC_CTL_PSPOLL
Definition:
wifi-mac-header.h:40
ns3::WIFI_MAC_CTL_DMG_POLL
@ WIFI_MAC_CTL_DMG_POLL
Definition:
wifi-mac-header.h:49
ns3::WIFI_MAC_CTL_DMG_GRANT_ACK
@ WIFI_MAC_CTL_DMG_GRANT_ACK
Definition:
wifi-mac-header.h:57
ns3::WIFI_MAC_CTL_RTS
@ WIFI_MAC_CTL_RTS
Definition:
wifi-mac-header.h:41
ns3::WIFI_MAC_CTL_DMG_CTS
@ WIFI_MAC_CTL_DMG_CTS
Definition:
wifi-mac-header.h:52
ns3::WIFI_MAC_CTL_CTS
@ WIFI_MAC_CTL_CTS
Definition:
wifi-mac-header.h:42
ns3::WIFI_MAC_MGT_AUTHENTICATION
@ WIFI_MAC_MGT_AUTHENTICATION
Definition:
wifi-mac-header.h:67
ns3::WIFI_MAC_MGT_MULTIHOP_ACTION
@ WIFI_MAC_MGT_MULTIHOP_ACTION
Definition:
wifi-mac-header.h:71
ns3::WIFI_MAC_CTL_CTLWRAPPER
@ WIFI_MAC_CTL_CTLWRAPPER
Definition:
wifi-mac-header.h:39
ns3::WIFI_MAC_QOSDATA_CFACK_CFPOLL
@ WIFI_MAC_QOSDATA_CFACK_CFPOLL
Definition:
wifi-mac-header.h:84
ns3::WIFI_MAC_MGT_BEACON
@ WIFI_MAC_MGT_BEACON
Definition:
wifi-mac-header.h:59
ns3::WIFI_MAC_CTL_DMG_GRANT
@ WIFI_MAC_CTL_DMG_GRANT
Definition:
wifi-mac-header.h:51
ns3::WIFI_MAC_MGT_ACTION
@ WIFI_MAC_MGT_ACTION
Definition:
wifi-mac-header.h:69
ns3::WIFI_MAC_MGT_ASSOCIATION_RESPONSE
@ WIFI_MAC_MGT_ASSOCIATION_RESPONSE
Definition:
wifi-mac-header.h:61
ns3::WIFI_MAC_CTL_DMG_SPR
@ WIFI_MAC_CTL_DMG_SPR
Definition:
wifi-mac-header.h:50
ns3::WIFI_MAC_CTL_ACK
@ WIFI_MAC_CTL_ACK
Definition:
wifi-mac-header.h:43
ns3::WIFI_MAC_MGT_DISASSOCIATION
@ WIFI_MAC_MGT_DISASSOCIATION
Definition:
wifi-mac-header.h:62
ns3::WIFI_MAC_QOSDATA_NULL_CFPOLL
@ WIFI_MAC_QOSDATA_NULL_CFPOLL
Definition:
wifi-mac-header.h:86
ns3::WIFI_MAC_MGT_ASSOCIATION_REQUEST
@ WIFI_MAC_MGT_ASSOCIATION_REQUEST
Definition:
wifi-mac-header.h:60
ns3::WIFI_MAC_DATA_NULL_CFACK_CFPOLL
@ WIFI_MAC_DATA_NULL_CFACK_CFPOLL
Definition:
wifi-mac-header.h:80
ns3::WIFI_MAC_MGT_REASSOCIATION_REQUEST
@ WIFI_MAC_MGT_REASSOCIATION_REQUEST
Definition:
wifi-mac-header.h:63
ns3::WIFI_MAC_QOSDATA_CFACK
@ WIFI_MAC_QOSDATA_CFACK
Definition:
wifi-mac-header.h:82
ns3::WIFI_MAC_CTL_BACKRESP
@ WIFI_MAC_CTL_BACKRESP
Definition:
wifi-mac-header.h:45
ns3::WIFI_MAC_DATA_CFACK_CFPOLL
@ WIFI_MAC_DATA_CFACK_CFPOLL
Definition:
wifi-mac-header.h:76
ns3::WIFI_MAC_DATA_CFPOLL
@ WIFI_MAC_DATA_CFPOLL
Definition:
wifi-mac-header.h:75
ns3::WIFI_MAC_CTL_END
@ WIFI_MAC_CTL_END
Definition:
wifi-mac-header.h:46
ns3::WIFI_MAC_DATA_NULL_CFACK
@ WIFI_MAC_DATA_NULL_CFACK
Definition:
wifi-mac-header.h:78
ns3::WIFI_MAC_MGT_ACTION_NO_ACK
@ WIFI_MAC_MGT_ACTION_NO_ACK
Definition:
wifi-mac-header.h:70
ns3::WIFI_MAC_MGT_DEAUTHENTICATION
@ WIFI_MAC_MGT_DEAUTHENTICATION
Definition:
wifi-mac-header.h:68
ns3::WIFI_MAC_QOSDATA_NULL
@ WIFI_MAC_QOSDATA_NULL
Definition:
wifi-mac-header.h:85
ns3::WIFI_MAC_CTL_DMG_DTS
@ WIFI_MAC_CTL_DMG_DTS
Definition:
wifi-mac-header.h:53
ns3::WIFI_MAC_DATA_NULL_CFPOLL
@ WIFI_MAC_DATA_NULL_CFPOLL
Definition:
wifi-mac-header.h:79
ns3::WIFI_MAC_MGT_PROBE_RESPONSE
@ WIFI_MAC_MGT_PROBE_RESPONSE
Definition:
wifi-mac-header.h:66
ns3::WIFI_MAC_QOSDATA_CFPOLL
@ WIFI_MAC_QOSDATA_CFPOLL
Definition:
wifi-mac-header.h:83
ns3::WIFI_MAC_DATA
@ WIFI_MAC_DATA
Definition:
wifi-mac-header.h:73
ns3::WIFI_MAC_CTL_DMG_SSW
@ WIFI_MAC_CTL_DMG_SSW
Definition:
wifi-mac-header.h:54
ns3::WIFI_MAC_MGT_REASSOCIATION_RESPONSE
@ WIFI_MAC_MGT_REASSOCIATION_RESPONSE
Definition:
wifi-mac-header.h:64
ns3::WIFI_MAC_CTL_DMG_SSW_FBCK
@ WIFI_MAC_CTL_DMG_SSW_FBCK
Definition:
wifi-mac-header.h:55
ns3::WIFI_MAC_QOSDATA
@ WIFI_MAC_QOSDATA
Definition:
wifi-mac-header.h:81
two-ray-to-three-gpp-ch-calibration.start
start
Definition:
two-ray-to-three-gpp-ch-calibration.py:520
src
wifi
model
wifi-mac-header.h
Generated on Sun Mar 3 2024 17:11:12 for ns-3 by
1.9.1