A Discrete-Event Network Simulator
API
mgt-headers.h
Go to the documentation of this file.
1/* -*- Mode:C++; c-file-style:"gnu"; indent-tabs-mode:nil; -*- */
2/*
3 * Copyright (c) 2006 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 MGT_HEADERS_H
24#define MGT_HEADERS_H
25
26#include "ns3/mac48-address.h"
27#include "status-code.h"
29#include "supported-rates.h"
30#include "ssid.h"
31#include "ns3/dsss-parameter-set.h"
33#include "ns3/ht-capabilities.h"
34#include "ns3/ht-operation.h"
35#include "ns3/vht-capabilities.h"
36#include "ns3/vht-operation.h"
37#include "ns3/erp-information.h"
38#include "edca-parameter-set.h"
39#include "ns3/he-capabilities.h"
40#include "ns3/he-operation.h"
41#include "ns3/mu-edca-parameter-set.h"
42#include "ns3/eht-capabilities.h"
43
44namespace ns3 {
45
51{
52public:
55
61 void SetSsid (Ssid ssid);
73 void SetListenInterval (uint16_t interval);
79 void SetCapabilities (CapabilityInformation capabilities);
85 void SetExtendedCapabilities (ExtendedCapabilities extendedCapabilities);
91 void SetHtCapabilities (HtCapabilities htCapabilities);
97 void SetVhtCapabilities (VhtCapabilities vhtCapabilities);
103 void SetHeCapabilities (HeCapabilities heCapabilities);
109 void SetEhtCapabilities (EhtCapabilities ehtCapabilities);
151 Ssid GetSsid (void) const;
163 uint16_t GetListenInterval (void) const;
164
169 static TypeId GetTypeId (void);
170
171 TypeId GetInstanceTypeId (void) const override;
172 void Print (std::ostream &os) const override;
173 uint32_t GetSerializedSize (void) const override;
174 void Serialize (Buffer::Iterator start) const override;
176
177
178private:
188};
189
190
196{
197public:
200
206 void SetSsid (Ssid ssid);
218 void SetListenInterval (uint16_t interval);
224 void SetCapabilities (CapabilityInformation capabilities);
230 void SetExtendedCapabilities (ExtendedCapabilities extendedCapabilities);
236 void SetHtCapabilities (HtCapabilities htCapabilities);
242 void SetVhtCapabilities (VhtCapabilities vhtCapabilities);
248 void SetHeCapabilities (HeCapabilities heCapabilities);
254 void SetEhtCapabilities (EhtCapabilities ehtCapabilities);
296 Ssid GetSsid (void) const;
308 uint16_t GetListenInterval (void) const;
314 void SetCurrentApAddress (Mac48Address currentApAddr);
315
320 static TypeId GetTypeId (void);
321 TypeId GetInstanceTypeId (void) const;
322 void Print (std::ostream &os) const;
323 uint32_t GetSerializedSize (void) const;
324 void Serialize (Buffer::Iterator start) const;
326
327
328private:
339};
340
341
347{
348public:
351
387 HtOperation GetHtOperation (void) const;
399 VhtOperation GetVhtOperation (void) const;
411 HeOperation GetHeOperation (void) const;
423 uint16_t GetAssociationId (void) const;
447 void SetCapabilities (CapabilityInformation capabilities);
453 void SetExtendedCapabilities (ExtendedCapabilities extendedCapabilities);
459 void SetVhtOperation (VhtOperation vhtOperation);
465 void SetVhtCapabilities (VhtCapabilities vhtCapabilities);
471 void SetHtCapabilities (HtCapabilities htCapabilities);
477 void SetHtOperation (HtOperation htOperation);
489 void SetStatusCode (StatusCode code);
495 void SetAssociationId (uint16_t aid);
501 void SetErpInformation (ErpInformation erpInformation);
507 void SetEdcaParameterSet (EdcaParameterSet edcaParameterSet);
513 void SetMuEdcaParameterSet (MuEdcaParameterSet muEdcaParameterSet);
519 void SetHeCapabilities (HeCapabilities heCapabilities);
525 void SetHeOperation (HeOperation heOperation);
531 void SetEhtCapabilities (EhtCapabilities ehtCapabilities);
532
537 static TypeId GetTypeId (void);
538 TypeId GetInstanceTypeId (void) const;
539 void Print (std::ostream &os) const;
540 uint32_t GetSerializedSize (void) const;
541 void Serialize (Buffer::Iterator start) const;
543
544
545private:
549 uint16_t m_aid;
561};
562
563
569{
570public:
572
578 void SetSsid (Ssid ssid);
590 void SetExtendedCapabilities (ExtendedCapabilities extendedCapabilities);
596 void SetHtCapabilities (HtCapabilities htCapabilities);
602 void SetVhtCapabilities (VhtCapabilities vhtCapabilities);
608 void SetHeCapabilities (HeCapabilities heCapabilities);
614 void SetEhtCapabilities (EhtCapabilities ehtCapabilities);
620 Ssid GetSsid (void) const;
657
662 static TypeId GetTypeId (void);
663 TypeId GetInstanceTypeId (void) const;
664 void Print (std::ostream &os) const;
665 uint32_t GetSerializedSize (void) const;
666 void Serialize (Buffer::Iterator start) const;
668
669
670private:
678};
679
680
686{
687public:
690
696 Ssid GetSsid (void) const;
702 uint64_t GetBeaconIntervalUs (void) const;
738 HtOperation GetHtOperation (void) const;
750 VhtOperation GetVhtOperation (void) const;
762 HeOperation GetHeOperation (void) const;
792 void SetCapabilities (CapabilityInformation capabilities);
798 void SetExtendedCapabilities (ExtendedCapabilities extendedCapabilities);
804 void SetHtCapabilities (HtCapabilities htCapabilities);
810 void SetHtOperation (HtOperation htOperation);
816 void SetVhtCapabilities (VhtCapabilities vhtCapabilities);
822 void SetVhtOperation (VhtOperation vhtOperation);
828 void SetHeCapabilities (HeCapabilities heCapabilities);
834 void SetHeOperation (HeOperation heOperation);
840 void SetEhtCapabilities (EhtCapabilities ehtCapabilities);
846 void SetSsid (Ssid ssid);
852 void SetBeaconIntervalUs (uint64_t us);
864 void SetDsssParameterSet (DsssParameterSet dsssParameterSet);
870 void SetErpInformation (ErpInformation erpInformation);
876 void SetEdcaParameterSet (EdcaParameterSet edcaParameterSet);
882 void SetMuEdcaParameterSet (MuEdcaParameterSet muEdcaParameterSet);
888 uint64_t GetTimestamp ();
889
894 static TypeId GetTypeId (void);
895 TypeId GetInstanceTypeId (void) const;
896 void Print (std::ostream &os) const;
897 uint32_t GetSerializedSize (void) const;
898 void Serialize (Buffer::Iterator start) const;
900
901
902private:
903 uint64_t m_timestamp;
920};
921
922
928{
929public:
935 static TypeId GetTypeId (void);
936};
937
938
939/****************************
940* Action frames
941*****************************/
942
951{
952public:
955
956 /*
957 * Compatible with table 8-38 IEEE 802.11, Part11, (Year 2012)
958 * Category values - see 802.11-2012 Table 8-38
959 */
960
962 enum CategoryValue //table 8-38 staring from IEEE 802.11, Part11, (Year 2012)
963 {
965 MESH = 13, //Category: Mesh
966 MULTIHOP = 14, //not used so far
967 SELF_PROTECTED = 15, //Category: Self Protected
968 //Since vendor specific action has no stationary Action value,the parse process is not here.
969 //Refer to vendor-specific-action in wave module.
971 };
972
974 enum SelfProtectedActionValue //Category: 15 (Self Protected)
975 {
976 PEER_LINK_OPEN = 1, //Mesh Peering Open
977 PEER_LINK_CONFIRM = 2, //Mesh Peering Confirm
978 PEER_LINK_CLOSE = 3, //Mesh Peering Close
979 GROUP_KEY_INFORM = 4, //Mesh Group Key Inform
980 GROUP_KEY_ACK = 5, //Mesh Group Key Acknowledge
981 };
982
985 {
986 PROXY_UPDATE = 0, //not used so far
987 PROXY_UPDATE_CONFIRMATION = 1, //not used so far
988 };
989
992 {
993 LINK_METRIC_REPORT = 0, //Action Value:0 in Category 13: Mesh
994 PATH_SELECTION = 1, //Action Value:1 in Category 13: Mesh
995 PORTAL_ANNOUNCEMENT = 2, //Action Value:2 in Category 13: Mesh
996 CONGESTION_CONTROL_NOTIFICATION = 3, //Action Value:3 in Category 13: Mesh
997 MDA_SETUP_REQUEST = 4, //Action Value:4 in Category 13: Mesh MCCA-Setup-Request (not used so far)
998 MDA_SETUP_REPLY = 5, //Action Value:5 in Category 13: Mesh MCCA-Setup-Reply (not used so far)
999 MDAOP_ADVERTISMENT_REQUEST = 6, //Action Value:6 in Category 13: Mesh MCCA-Advertisement-Request (not used so far)
1000 MDAOP_ADVERTISMENTS = 7, //Action Value:7 in Category 13: Mesh (not used so far)
1001 MDAOP_SET_TEARDOWN = 8, //Action Value:8 in Category 13: Mesh (not used so far)
1002 TBTT_ADJUSTMENT_REQUEST = 9, //Action Value:9 in Category 13: Mesh (not used so far)
1003 TBTT_ADJUSTMENT_RESPONSE = 10, //Action Value:10 in Category 13: Mesh (not used so far)
1004 };
1005
1011 {
1014 BLOCK_ACK_DELBA = 2
1016
1017
1021 typedef union
1022 {
1027 } ActionValue;
1034 void SetAction (CategoryValue type, ActionValue action);
1035
1048
1053 static TypeId GetTypeId (void);
1054 TypeId GetInstanceTypeId () const;
1055 void Print (std::ostream &os) const;
1056 uint32_t GetSerializedSize () const;
1057 void Serialize (Buffer::Iterator start) const;
1059
1060
1061private:
1067 std::string CategoryValueToString (CategoryValue value) const;
1074 uint8_t m_category;
1076};
1077
1078
1084{
1085public:
1087
1092 static TypeId GetTypeId (void);
1093 TypeId GetInstanceTypeId (void) const;
1094 void Print (std::ostream &os) const;
1095 uint32_t GetSerializedSize (void) const;
1096 void Serialize (Buffer::Iterator start) const;
1098
1102 void SetDelayedBlockAck ();
1106 void SetImmediateBlockAck ();
1112 void SetTid (uint8_t tid);
1118 void SetTimeout (uint16_t timeout);
1124 void SetBufferSize (uint16_t size);
1130 void SetStartingSequence (uint16_t seq);
1136 void SetAmsduSupport (bool supported);
1137
1143 uint16_t GetStartingSequence (void) const;
1149 uint8_t GetTid (void) const;
1155 bool IsImmediateBlockAck (void) const;
1161 uint16_t GetTimeout (void) const;
1167 uint16_t GetBufferSize (void) const;
1173 bool IsAmsduSupported (void) const;
1174
1175private:
1181 uint16_t GetParameterSet (void) const;
1187 void SetParameterSet (uint16_t params);
1193 uint16_t GetStartingSequenceControl (void) const;
1199 void SetStartingSequenceControl (uint16_t seqControl);
1200
1203 uint8_t m_policy;
1204 uint8_t m_tid;
1205 uint16_t m_bufferSize;
1207 uint16_t m_startingSeq;
1208};
1209
1210
1216{
1217public:
1219
1224 static TypeId GetTypeId (void);
1225 TypeId GetInstanceTypeId (void) const;
1226 void Print (std::ostream &os) const;
1227 uint32_t GetSerializedSize (void) const;
1228 void Serialize (Buffer::Iterator start) const;
1230
1234 void SetDelayedBlockAck ();
1238 void SetImmediateBlockAck ();
1244 void SetTid (uint8_t tid);
1250 void SetTimeout (uint16_t timeout);
1256 void SetBufferSize (uint16_t size);
1262 void SetStatusCode (StatusCode code);
1268 void SetAmsduSupport (bool supported);
1269
1275 StatusCode GetStatusCode (void) const;
1281 uint8_t GetTid (void) const;
1287 bool IsImmediateBlockAck (void) const;
1293 uint16_t GetTimeout (void) const;
1299 uint16_t GetBufferSize (void) const;
1305 bool IsAmsduSupported (void) const;
1306
1307
1308private:
1314 uint16_t GetParameterSet (void) const;
1320 void SetParameterSet (uint16_t params);
1321
1325 uint8_t m_policy;
1326 uint8_t m_tid;
1327 uint16_t m_bufferSize;
1329};
1330
1331
1337{
1338public:
1339 MgtDelBaHeader ();
1340
1345 static TypeId GetTypeId (void);
1346
1347 TypeId GetInstanceTypeId (void) const;
1348 void Print (std::ostream &os) const;
1349 uint32_t GetSerializedSize (void) const;
1350 void Serialize (Buffer::Iterator start) const;
1352
1359 bool IsByOriginator (void) const;
1365 uint8_t GetTid (void) const;
1371 void SetTid (uint8_t tid);
1375 void SetByOriginator (void);
1379 void SetByRecipient (void);
1380
1381
1382private:
1388 uint16_t GetParameterSet (void) const;
1394 void SetParameterSet (uint16_t params);
1395
1396 uint16_t m_initiator;
1397 uint16_t m_tid;
1398 uint16_t m_reasonCode;
1399};
1400
1401} //namespace ns3
1402
1403#endif /* MGT_HEADERS_H */
iterator in a Buffer instance
Definition: buffer.h:99
The DSSS Parameter Set.
The EDCA Parameter Set.
The IEEE 802.11be EHT Capabilities.
The ErpInformation Information Element.
The Extended Capabilities Information Element.
The IEEE 802.11ax HE Capabilities.
The HE Operation Information Element.
Definition: he-operation.h:36
Protocol header serialization and deserialization.
Definition: header.h:43
The HT Capabilities Information Element.
The HT Operation Information Element.
Definition: ht-operation.h:51
an EUI-48 address
Definition: mac48-address.h:44
Implement the header for management frames of type Add Block Ack request.
Definition: mgt-headers.h:1084
void SetParameterSet(uint16_t params)
Set the parameter set from the given raw value.
uint16_t m_startingSeq
Starting sequence number.
Definition: mgt-headers.h:1207
void Serialize(Buffer::Iterator start) const
uint16_t GetTimeout(void) const
Return the timeout.
uint32_t Deserialize(Buffer::Iterator start)
void SetStartingSequenceControl(uint16_t seqControl)
Set sequence control with the given raw value.
uint8_t m_tid
Traffic ID.
Definition: mgt-headers.h:1204
bool IsImmediateBlockAck(void) const
Return whether the Block Ack policy is immediate Block Ack.
uint8_t m_amsduSupport
Flag if A-MSDU is supported.
Definition: mgt-headers.h:1202
void SetBufferSize(uint16_t size)
Set buffer size.
void SetDelayedBlockAck()
Enable delayed BlockAck.
uint8_t m_dialogToken
Not used for now.
Definition: mgt-headers.h:1201
void SetAmsduSupport(bool supported)
Enable or disable A-MSDU support.
void SetImmediateBlockAck()
Enable immediate BlockAck.
bool IsAmsduSupported(void) const
Return whether A-MSDU capability is supported.
TypeId GetInstanceTypeId(void) const
Get the most derived TypeId for this Object.
uint16_t GetStartingSequence(void) const
Return the starting sequence number.
uint16_t m_bufferSize
Buffer size.
Definition: mgt-headers.h:1205
uint16_t GetBufferSize(void) const
Return the buffer size.
uint32_t GetSerializedSize(void) const
uint16_t GetStartingSequenceControl(void) const
Return the raw sequence control.
void Print(std::ostream &os) const
static TypeId GetTypeId(void)
Register this type.
uint8_t GetTid(void) const
Return the Traffic ID (TID).
uint16_t m_timeoutValue
Timeout.
Definition: mgt-headers.h:1206
void SetTimeout(uint16_t timeout)
Set timeout.
void SetTid(uint8_t tid)
Set Traffic ID (TID).
uint8_t m_policy
Block Ack policy.
Definition: mgt-headers.h:1203
void SetStartingSequence(uint16_t seq)
Set the starting sequence number.
uint16_t GetParameterSet(void) const
Return the raw parameter set.
Implement the header for management frames of type Add Block Ack response.
Definition: mgt-headers.h:1216
uint16_t m_bufferSize
Buffer size.
Definition: mgt-headers.h:1327
void SetTid(uint8_t tid)
Set Traffic ID (TID).
void Print(std::ostream &os) const
uint8_t m_amsduSupport
Flag if A-MSDU is supported.
Definition: mgt-headers.h:1324
static TypeId GetTypeId(void)
Register this type.
TypeId GetInstanceTypeId(void) const
Get the most derived TypeId for this Object.
void Serialize(Buffer::Iterator start) const
bool IsImmediateBlockAck(void) const
Return whether the Block Ack policy is immediate Block Ack.
bool IsAmsduSupported(void) const
Return whether A-MSDU capability is supported.
uint8_t m_dialogToken
Not used for now.
Definition: mgt-headers.h:1322
uint16_t GetBufferSize(void) const
Return the buffer size.
void SetParameterSet(uint16_t params)
Set the parameter set from the given raw value.
uint16_t GetParameterSet(void) const
Return the raw parameter set.
uint16_t GetTimeout(void) const
Return the timeout.
void SetTimeout(uint16_t timeout)
Set timeout.
uint8_t m_policy
Block ACK policy.
Definition: mgt-headers.h:1325
void SetBufferSize(uint16_t size)
Set buffer size.
uint16_t m_timeoutValue
Timeout.
Definition: mgt-headers.h:1328
void SetStatusCode(StatusCode code)
Set the status code.
uint8_t m_tid
Traffic ID.
Definition: mgt-headers.h:1326
void SetAmsduSupport(bool supported)
Enable or disable A-MSDU support.
uint8_t GetTid(void) const
Return the Traffic ID (TID).
uint32_t Deserialize(Buffer::Iterator start)
void SetDelayedBlockAck()
Enable delayed BlockAck.
StatusCode GetStatusCode(void) const
Return the status code.
void SetImmediateBlockAck()
Enable immediate BlockAck.
uint32_t GetSerializedSize(void) const
StatusCode m_code
Status code.
Definition: mgt-headers.h:1323
Implement the header for management frames of type association request.
Definition: mgt-headers.h:51
void SetHeCapabilities(HeCapabilities heCapabilities)
Set the HE capabilities.
Definition: mgt-headers.cc:619
SupportedRates m_rates
List of supported rates.
Definition: mgt-headers.h:180
HeCapabilities GetHeCapabilities(void) const
Return the HE capabilities.
Definition: mgt-headers.cc:625
CapabilityInformation GetCapabilities(void) const
Return the Capability information.
Definition: mgt-headers.cc:577
ExtendedCapabilities m_extendedCapability
Extended capabilities.
Definition: mgt-headers.h:182
ExtendedCapabilities GetExtendedCapabilities(void) const
Return the extended capabilities.
Definition: mgt-headers.cc:589
void SetSupportedRates(SupportedRates rates)
Set the supported rates.
Definition: mgt-headers.cc:559
static TypeId GetTypeId(void)
Register this type.
Definition: mgt-headers.cc:661
HtCapabilities GetHtCapabilities(void) const
Return the HT capabilities.
Definition: mgt-headers.cc:601
HtCapabilities m_htCapability
HT capabilities.
Definition: mgt-headers.h:183
TypeId GetInstanceTypeId(void) const override
Get the most derived TypeId for this Object.
Definition: mgt-headers.cc:672
uint32_t Deserialize(Buffer::Iterator start) override
Definition: mgt-headers.cc:723
void SetHtCapabilities(HtCapabilities htCapabilities)
Set the HT capabilities.
Definition: mgt-headers.cc:595
void SetExtendedCapabilities(ExtendedCapabilities extendedCapabilities)
Set the Extended Capabilities.
Definition: mgt-headers.cc:583
void SetEhtCapabilities(EhtCapabilities ehtCapabilities)
Set the EHT capabilities.
Definition: mgt-headers.cc:631
CapabilityInformation m_capability
Capability information.
Definition: mgt-headers.h:181
EhtCapabilities GetEhtCapabilities(void) const
Return the EHT capabilities.
Definition: mgt-headers.cc:637
VhtCapabilities m_vhtCapability
VHT capabilities.
Definition: mgt-headers.h:184
void SetSsid(Ssid ssid)
Set the Service Set Identifier (SSID).
Definition: mgt-headers.cc:553
VhtCapabilities GetVhtCapabilities(void) const
Return the VHT capabilities.
Definition: mgt-headers.cc:613
void SetListenInterval(uint16_t interval)
Set the listen interval.
Definition: mgt-headers.cc:565
EhtCapabilities m_ehtCapability
EHT capabilities.
Definition: mgt-headers.h:187
SupportedRates GetSupportedRates(void) const
Return the supported rates.
Definition: mgt-headers.cc:649
void Print(std::ostream &os) const override
Definition: mgt-headers.cc:695
void SetCapabilities(CapabilityInformation capabilities)
Set the Capability information.
Definition: mgt-headers.cc:571
void SetVhtCapabilities(VhtCapabilities vhtCapabilities)
Set the VHT capabilities.
Definition: mgt-headers.cc:607
uint16_t m_listenInterval
listen interval
Definition: mgt-headers.h:186
Ssid m_ssid
Service Set ID (SSID)
Definition: mgt-headers.h:179
Ssid GetSsid(void) const
Return the Service Set Identifier (SSID).
Definition: mgt-headers.cc:643
uint32_t GetSerializedSize(void) const override
Definition: mgt-headers.cc:678
void Serialize(Buffer::Iterator start) const override
Definition: mgt-headers.cc:707
uint16_t GetListenInterval(void) const
Return the listen interval.
Definition: mgt-headers.cc:655
HeCapabilities m_heCapability
HE capabilities.
Definition: mgt-headers.h:185
Implement the header for management frames of type association and reassociation response.
Definition: mgt-headers.h:347
uint32_t Deserialize(Buffer::Iterator start)
void SetErpInformation(ErpInformation erpInformation)
Set the ERP information.
void SetVhtCapabilities(VhtCapabilities vhtCapabilities)
Set the VHT capabilities.
EhtCapabilities m_ehtCapability
EHT capabilities.
Definition: mgt-headers.h:560
HtCapabilities GetHtCapabilities(void) const
Return the HT capabilities.
MuEdcaParameterSet GetMuEdcaParameterSet(void) const
Return the MU EDCA Parameter Set.
void SetHtCapabilities(HtCapabilities htCapabilities)
Set the HT capabilities.
ExtendedCapabilities GetExtendedCapabilities(void) const
Return the extended capabilities.
void SetHtOperation(HtOperation htOperation)
Set the HT operation.
EdcaParameterSet GetEdcaParameterSet(void) const
Return the EDCA Parameter Set.
VhtOperation m_vhtOperation
VHT operation.
Definition: mgt-headers.h:554
ErpInformation m_erpInformation
ERP information.
Definition: mgt-headers.h:555
void SetCapabilities(CapabilityInformation capabilities)
Set the Capability information.
Definition: mgt-headers.cc:993
void SetHeCapabilities(HeCapabilities heCapabilities)
Set the HE capabilities.
EdcaParameterSet m_edcaParameterSet
EDCA Parameter Set.
Definition: mgt-headers.h:556
HtOperation m_htOperation
HT operation.
Definition: mgt-headers.h:552
void SetStatusCode(StatusCode code)
Set the status code.
Definition: mgt-headers.cc:981
SupportedRates m_rates
List of supported rates.
Definition: mgt-headers.h:546
HeCapabilities m_heCapability
HE capabilities.
Definition: mgt-headers.h:557
TypeId GetInstanceTypeId(void) const
Get the most derived TypeId for this Object.
void SetAssociationId(uint16_t aid)
Set the association ID.
uint32_t GetSerializedSize(void) const
VhtOperation GetVhtOperation(void) const
Return the VHT operation.
void SetMuEdcaParameterSet(MuEdcaParameterSet muEdcaParameterSet)
Set the MU EDCA Parameter Set.
VhtCapabilities m_vhtCapability
VHT capabilities.
Definition: mgt-headers.h:553
void Print(std::ostream &os) const
SupportedRates GetSupportedRates(void)
Return the supported rates.
Definition: mgt-headers.cc:975
CapabilityInformation m_capability
Capability information.
Definition: mgt-headers.h:547
HeOperation m_heOperation
HE operation.
Definition: mgt-headers.h:558
VhtCapabilities GetVhtCapabilities(void) const
Return the VHT capabilities.
HtCapabilities m_htCapability
HT capabilities.
Definition: mgt-headers.h:551
void SetEhtCapabilities(EhtCapabilities ehtCapabilities)
Set the EHT capabilities.
EhtCapabilities GetEhtCapabilities(void) const
Return the EHT capabilities.
StatusCode GetStatusCode(void)
Return the status code.
Definition: mgt-headers.cc:969
HtOperation GetHtOperation(void) const
Return the HT operation.
void SetEdcaParameterSet(EdcaParameterSet edcaParameterSet)
Set the EDCA Parameter Set.
void SetHeOperation(HeOperation heOperation)
Set the HE operation.
ExtendedCapabilities m_extendedCapability
extended capabilities
Definition: mgt-headers.h:550
static TypeId GetTypeId(void)
Register this type.
void Serialize(Buffer::Iterator start) const
HeOperation GetHeOperation(void) const
Return the HE operation.
void SetExtendedCapabilities(ExtendedCapabilities extendedCapabilities)
Set the extended capabilities.
void SetVhtOperation(VhtOperation vhtOperation)
Set the VHT operation.
ErpInformation GetErpInformation(void) const
Return the ERP information.
uint16_t GetAssociationId(void) const
Return the association ID.
CapabilityInformation GetCapabilities(void) const
Return the Capability information.
Definition: mgt-headers.cc:999
MuEdcaParameterSet m_muEdcaParameterSet
MU EDCA Parameter Set.
Definition: mgt-headers.h:559
void SetSupportedRates(SupportedRates rates)
Set the supported rates.
Definition: mgt-headers.cc:987
HeCapabilities GetHeCapabilities(void) const
Return the HE capabilities.
StatusCode m_code
Status code.
Definition: mgt-headers.h:548
Implement the header for management frames of type beacon.
Definition: mgt-headers.h:928
static TypeId GetTypeId(void)
Register this type.
Definition: mgt-headers.cc:526
Implement the header for management frames of type Delete Block Ack.
Definition: mgt-headers.h:1337
void SetTid(uint8_t tid)
Set Traffic ID (TID).
uint8_t GetTid(void) const
Return the Traffic ID (TID).
void Serialize(Buffer::Iterator start) const
uint16_t GetParameterSet(void) const
Return the raw parameter set.
uint16_t m_initiator
initiator
Definition: mgt-headers.h:1396
void SetByOriginator(void)
Set the initiator bit in the DELBA.
bool IsByOriginator(void) const
Check if the initiator bit in the DELBA is set.
uint32_t Deserialize(Buffer::Iterator start)
void SetParameterSet(uint16_t params)
Set the parameter set from the given raw value.
void Print(std::ostream &os) const
static TypeId GetTypeId(void)
Register this type.
TypeId GetInstanceTypeId(void) const
Get the most derived TypeId for this Object.
uint16_t m_reasonCode
Not used for now.
Definition: mgt-headers.h:1398
void SetByRecipient(void)
Un-set the initiator bit in the DELBA.
uint16_t m_tid
Traffic ID.
Definition: mgt-headers.h:1397
uint32_t GetSerializedSize(void) const
Implement the header for management frames of type probe request.
Definition: mgt-headers.h:569
ExtendedCapabilities GetExtendedCapabilities(void) const
Return the extended capabilities.
Definition: mgt-headers.cc:64
void SetHeCapabilities(HeCapabilities heCapabilities)
Set the HE capabilities.
Definition: mgt-headers.cc:94
ExtendedCapabilities m_extendedCapability
extended capabilities
Definition: mgt-headers.h:673
VhtCapabilities GetVhtCapabilities(void) const
Return the VHT capabilities.
Definition: mgt-headers.cc:88
void Print(std::ostream &os) const
Definition: mgt-headers.cc:156
void Serialize(Buffer::Iterator start) const
Definition: mgt-headers.cc:168
Ssid m_ssid
Service Set ID (SSID)
Definition: mgt-headers.h:671
void SetSsid(Ssid ssid)
Set the Service Set Identifier (SSID).
Definition: mgt-headers.cc:40
void SetSupportedRates(SupportedRates rates)
Set the supported rates.
Definition: mgt-headers.cc:52
HeCapabilities m_heCapability
HE capabilities.
Definition: mgt-headers.h:676
TypeId GetInstanceTypeId(void) const
Get the most derived TypeId for this Object.
Definition: mgt-headers.cc:150
uint32_t Deserialize(Buffer::Iterator start)
Definition: mgt-headers.cc:182
void SetVhtCapabilities(VhtCapabilities vhtCapabilities)
Set the VHT capabilities.
Definition: mgt-headers.cc:82
HeCapabilities GetHeCapabilities(void) const
Return the HE capabilities.
Definition: mgt-headers.cc:100
EhtCapabilities m_ehtCapability
EHT capabilities.
Definition: mgt-headers.h:677
uint32_t GetSerializedSize(void) const
Definition: mgt-headers.cc:124
void SetEhtCapabilities(EhtCapabilities ehtCapabilities)
Set the EHT capabilities.
Definition: mgt-headers.cc:106
SupportedRates m_rates
List of supported rates.
Definition: mgt-headers.h:672
static TypeId GetTypeId(void)
Register this type.
Definition: mgt-headers.cc:139
HtCapabilities m_htCapability
HT capabilities.
Definition: mgt-headers.h:674
void SetHtCapabilities(HtCapabilities htCapabilities)
Set the HT capabilities.
Definition: mgt-headers.cc:70
Ssid GetSsid(void) const
Return the Service Set Identifier (SSID).
Definition: mgt-headers.cc:46
EhtCapabilities GetEhtCapabilities(void) const
Return the EHT capabilities.
Definition: mgt-headers.cc:112
HtCapabilities GetHtCapabilities(void) const
Return the HT capabilities.
Definition: mgt-headers.cc:76
VhtCapabilities m_vhtCapability
VHT capabilities.
Definition: mgt-headers.h:675
SupportedRates GetSupportedRates(void) const
Return the supported rates.
Definition: mgt-headers.cc:118
void SetExtendedCapabilities(ExtendedCapabilities extendedCapabilities)
Set the extended capabilities.
Definition: mgt-headers.cc:58
Implement the header for management frames of type probe response.
Definition: mgt-headers.h:686
VhtOperation m_vhtOperation
VHT operation.
Definition: mgt-headers.h:913
void SetVhtCapabilities(VhtCapabilities vhtCapabilities)
Set the VHT capabilities.
Definition: mgt-headers.cc:284
void SetErpInformation(ErpInformation erpInformation)
Set the ERP information.
Definition: mgt-headers.cc:374
VhtOperation GetVhtOperation(void) const
Return the VHT operation.
Definition: mgt-headers.cc:302
HeCapabilities GetHeCapabilities(void) const
Return the HE capabilities.
Definition: mgt-headers.cc:314
uint64_t m_beaconInterval
Beacon interval.
Definition: mgt-headers.h:905
uint64_t GetTimestamp()
Return the time stamp.
Definition: mgt-headers.cc:212
VhtCapabilities GetVhtCapabilities(void) const
Return the VHT capabilities.
Definition: mgt-headers.cc:290
void SetCapabilities(CapabilityInformation capabilities)
Set the Capability information.
Definition: mgt-headers.cc:236
void Serialize(Buffer::Iterator start) const
Definition: mgt-headers.cc:468
void SetHeCapabilities(HeCapabilities heCapabilities)
Set the HE capabilities.
Definition: mgt-headers.cc:308
HtOperation GetHtOperation(void) const
Return the HT operation.
Definition: mgt-headers.cc:278
EhtCapabilities m_ehtCapability
EHT capabilities.
Definition: mgt-headers.h:919
HeOperation GetHeOperation(void) const
Return the HE operation.
Definition: mgt-headers.cc:326
DsssParameterSet GetDsssParameterSet(void) const
Return the DSSS Parameter Set.
Definition: mgt-headers.cc:368
void SetExtendedCapabilities(ExtendedCapabilities extendedCapabilities)
Set the extended capabilities.
Definition: mgt-headers.cc:248
VhtCapabilities m_vhtCapability
VHT capabilities.
Definition: mgt-headers.h:912
MuEdcaParameterSet GetMuEdcaParameterSet(void) const
Return the MU EDCA Parameter Set.
Definition: mgt-headers.cc:404
CapabilityInformation GetCapabilities(void) const
Return the Capability information.
Definition: mgt-headers.cc:242
static TypeId GetTypeId(void)
Register this type.
Definition: mgt-headers.cc:410
EhtCapabilities GetEhtCapabilities(void) const
Return the EHT capabilities.
Definition: mgt-headers.cc:338
EdcaParameterSet GetEdcaParameterSet(void) const
Return the EDCA Parameter Set.
Definition: mgt-headers.cc:398
Ssid m_ssid
Service set ID (SSID)
Definition: mgt-headers.h:904
HtOperation m_htOperation
HT operation.
Definition: mgt-headers.h:911
Ssid GetSsid(void) const
Return the Service Set Identifier (SSID).
Definition: mgt-headers.cc:218
void SetVhtOperation(VhtOperation vhtOperation)
Set the VHT operation.
Definition: mgt-headers.cc:296
void SetHtCapabilities(HtCapabilities htCapabilities)
Set the HT capabilities.
Definition: mgt-headers.cc:260
SupportedRates GetSupportedRates(void) const
Return the supported rates.
Definition: mgt-headers.cc:230
void SetHtOperation(HtOperation htOperation)
Set the HT operation.
Definition: mgt-headers.cc:272
MuEdcaParameterSet m_muEdcaParameterSet
MU EDCA Parameter Set.
Definition: mgt-headers.h:918
void SetSsid(Ssid ssid)
Set the Service Set Identifier (SSID).
Definition: mgt-headers.cc:344
SupportedRates m_rates
List of supported rates.
Definition: mgt-headers.h:906
void SetSupportedRates(SupportedRates rates)
Set the supported rates.
Definition: mgt-headers.cc:356
void Print(std::ostream &os) const
Definition: mgt-headers.cc:452
TypeId GetInstanceTypeId(void) const
Get the most derived TypeId for this Object.
Definition: mgt-headers.cc:421
HeOperation m_heOperation
HE operation.
Definition: mgt-headers.h:915
ErpInformation GetErpInformation(void) const
Return the ERP information.
Definition: mgt-headers.cc:380
void SetDsssParameterSet(DsssParameterSet dsssParameterSet)
Set the DSSS Parameter Set.
Definition: mgt-headers.cc:362
void SetBeaconIntervalUs(uint64_t us)
Set the beacon interval in microseconds unit.
Definition: mgt-headers.cc:350
void SetEdcaParameterSet(EdcaParameterSet edcaParameterSet)
Set the EDCA Parameter Set.
Definition: mgt-headers.cc:386
uint32_t GetSerializedSize(void) const
Definition: mgt-headers.cc:427
DsssParameterSet m_dsssParameterSet
DSSS Parameter Set.
Definition: mgt-headers.h:908
EdcaParameterSet m_edcaParameterSet
EDCA Parameter Set.
Definition: mgt-headers.h:917
uint32_t Deserialize(Buffer::Iterator start)
Definition: mgt-headers.cc:492
void SetHeOperation(HeOperation heOperation)
Set the HE operation.
Definition: mgt-headers.cc:320
HtCapabilities GetHtCapabilities(void) const
Return the HT capabilities.
Definition: mgt-headers.cc:266
uint64_t GetBeaconIntervalUs(void) const
Return the beacon interval in microseconds unit.
Definition: mgt-headers.cc:224
ExtendedCapabilities m_extendedCapability
extended capabilities
Definition: mgt-headers.h:909
CapabilityInformation m_capability
Capability information.
Definition: mgt-headers.h:907
void SetEhtCapabilities(EhtCapabilities ehtCapabilities)
Set the EHT capabilities.
Definition: mgt-headers.cc:332
uint64_t m_timestamp
Timestamp.
Definition: mgt-headers.h:903
HtCapabilities m_htCapability
HT capabilities.
Definition: mgt-headers.h:910
ExtendedCapabilities GetExtendedCapabilities(void) const
Return the extended capabilities.
Definition: mgt-headers.cc:254
HeCapabilities m_heCapability
HE capabilities.
Definition: mgt-headers.h:914
ErpInformation m_erpInformation
ERP information.
Definition: mgt-headers.h:916
void SetMuEdcaParameterSet(MuEdcaParameterSet muEdcaParameterSet)
Set the MU EDCA Parameter Set.
Definition: mgt-headers.cc:392
Implement the header for management frames of type reassociation request.
Definition: mgt-headers.h:196
SupportedRates GetSupportedRates(void) const
Return the supported rates.
Definition: mgt-headers.cc:852
EhtCapabilities m_ehtCapability
EHT capabilities.
Definition: mgt-headers.h:338
Mac48Address m_currentApAddr
Address of the current access point.
Definition: mgt-headers.h:329
void SetSupportedRates(SupportedRates rates)
Set the supported rates.
Definition: mgt-headers.cc:762
uint16_t m_listenInterval
listen interval
Definition: mgt-headers.h:337
uint32_t Deserialize(Buffer::Iterator start)
Definition: mgt-headers.cc:935
EhtCapabilities GetEhtCapabilities(void) const
Return the EHT capabilities.
Definition: mgt-headers.cc:840
HtCapabilities m_htCapability
HT capabilities.
Definition: mgt-headers.h:334
uint16_t GetListenInterval(void) const
Return the listen interval.
Definition: mgt-headers.cc:858
void SetHtCapabilities(HtCapabilities htCapabilities)
Set the HT capabilities.
Definition: mgt-headers.cc:798
void SetCapabilities(CapabilityInformation capabilities)
Set the Capability information.
Definition: mgt-headers.cc:774
VhtCapabilities m_vhtCapability
VHT capabilities.
Definition: mgt-headers.h:335
HeCapabilities GetHeCapabilities(void) const
Return the HE capabilities.
Definition: mgt-headers.cc:828
static TypeId GetTypeId(void)
Register this type.
Definition: mgt-headers.cc:870
void SetEhtCapabilities(EhtCapabilities ehtCapabilities)
Set the EHT capabilities.
Definition: mgt-headers.cc:834
SupportedRates m_rates
List of supported rates.
Definition: mgt-headers.h:331
void SetSsid(Ssid ssid)
Set the Service Set Identifier (SSID).
Definition: mgt-headers.cc:756
VhtCapabilities GetVhtCapabilities(void) const
Return the VHT capabilities.
Definition: mgt-headers.cc:816
Ssid m_ssid
Service Set ID (SSID)
Definition: mgt-headers.h:330
void Serialize(Buffer::Iterator start) const
Definition: mgt-headers.cc:918
HeCapabilities m_heCapability
HE capabilities.
Definition: mgt-headers.h:336
void SetExtendedCapabilities(ExtendedCapabilities extendedCapabilities)
Set the Extended Capabilities.
Definition: mgt-headers.cc:786
void SetListenInterval(uint16_t interval)
Set the listen interval.
Definition: mgt-headers.cc:768
ExtendedCapabilities m_extendedCapability
Extended capabilities.
Definition: mgt-headers.h:333
void Print(std::ostream &os) const
Definition: mgt-headers.cc:905
Ssid GetSsid(void) const
Return the Service Set Identifier (SSID).
Definition: mgt-headers.cc:846
CapabilityInformation m_capability
Capability information.
Definition: mgt-headers.h:332
HtCapabilities GetHtCapabilities(void) const
Return the HT capabilities.
Definition: mgt-headers.cc:804
TypeId GetInstanceTypeId(void) const
Get the most derived TypeId for this Object.
Definition: mgt-headers.cc:881
void SetHeCapabilities(HeCapabilities heCapabilities)
Set the HE capabilities.
Definition: mgt-headers.cc:822
void SetVhtCapabilities(VhtCapabilities vhtCapabilities)
Set the VHT capabilities.
Definition: mgt-headers.cc:810
void SetCurrentApAddress(Mac48Address currentApAddr)
Set the address of the current access point.
Definition: mgt-headers.cc:864
CapabilityInformation GetCapabilities(void) const
Return the Capability information.
Definition: mgt-headers.cc:780
uint32_t GetSerializedSize(void) const
Definition: mgt-headers.cc:887
ExtendedCapabilities GetExtendedCapabilities(void) const
Return the extended capabilities.
Definition: mgt-headers.cc:792
The MU EDCA Parameter Set.
The IEEE 802.11 SSID Information Element.
Definition: ssid.h:36
Status code for association response.
Definition: status-code.h:32
The Supported Rates Information Element.
a unique identifier for an interface.
Definition: type-id.h:59
The IEEE 802.11ac VHT Capabilities.
The VHT Operation Information Element.
Definition: vht-operation.h:36
See IEEE 802.11 chapter 7.3.1.11 Header format: | category: 1 | action value: 1 |.
Definition: mgt-headers.h:951
MultihopActionValue
MultihopActionValue enumeration.
Definition: mgt-headers.h:985
SelfProtectedActionValue
SelfProtectedActionValue enumeration.
Definition: mgt-headers.h:975
uint8_t m_category
Category of the action.
Definition: mgt-headers.h:1074
uint32_t Deserialize(Buffer::Iterator start)
void Print(std::ostream &os) const
void Serialize(Buffer::Iterator start) const
std::string CategoryValueToString(CategoryValue value) const
Category value to string function.
CategoryValue
CategoryValue enumeration.
Definition: mgt-headers.h:963
std::string SelfProtectedActionValueToString(SelfProtectedActionValue value) const
Self protected action value to string function.
uint32_t GetSerializedSize() const
BlockAckActionValue
Block Ack Action field values See 802.11 Table 8-202.
Definition: mgt-headers.h:1011
uint8_t m_actionValue
Action value.
Definition: mgt-headers.h:1075
CategoryValue GetCategory()
Return the category value.
MeshActionValue
MeshActionValue enumeration.
Definition: mgt-headers.h:992
ActionValue GetAction()
Return the action value.
void SetAction(CategoryValue type, ActionValue action)
Set action for this Action header.
TypeId GetInstanceTypeId() const
Get the most derived TypeId for this Object.
static TypeId GetTypeId(void)
Register this type.
Every class exported by the ns3 library is enclosed in the ns3 namespace.
ssid
Definition: third.py:97
def start()
Definition: core.py:1853
ns3::Time timeout
typedef for union of different ActionValues
Definition: mgt-headers.h:1022
SelfProtectedActionValue selfProtectedAction
self protected action
Definition: mgt-headers.h:1025
MultihopActionValue multihopAction
multi hop action
Definition: mgt-headers.h:1024
MeshActionValue meshAction
mesh action
Definition: mgt-headers.h:1023
BlockAckActionValue blockAck
block ack
Definition: mgt-headers.h:1026