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
43namespace ns3 {
44
50{
51public:
54
60 void SetSsid (Ssid ssid);
72 void SetListenInterval (uint16_t interval);
78 void SetCapabilities (CapabilityInformation capabilities);
84 void SetExtendedCapabilities (ExtendedCapabilities extendedCapabilities);
90 void SetHtCapabilities (HtCapabilities htCapabilities);
96 void SetVhtCapabilities (VhtCapabilities vhtCapabilities);
102 void SetHeCapabilities (HeCapabilities heCapabilities);
138 Ssid GetSsid (void) const;
150 uint16_t GetListenInterval (void) const;
151
156 static TypeId GetTypeId (void);
157
158 TypeId GetInstanceTypeId (void) const override;
159 void Print (std::ostream &os) const override;
160 uint32_t GetSerializedSize (void) const override;
161 void Serialize (Buffer::Iterator start) const override;
163
164
165private:
174};
175
176
182{
183public:
186
192 void SetSsid (Ssid ssid);
204 void SetListenInterval (uint16_t interval);
210 void SetCapabilities (CapabilityInformation capabilities);
216 void SetExtendedCapabilities (ExtendedCapabilities extendedCapabilities);
222 void SetHtCapabilities (HtCapabilities htCapabilities);
228 void SetVhtCapabilities (VhtCapabilities vhtCapabilities);
234 void SetHeCapabilities (HeCapabilities heCapabilities);
270 Ssid GetSsid (void) const;
282 uint16_t GetListenInterval (void) const;
288 void SetCurrentApAddress (Mac48Address currentApAddr);
289
294 static TypeId GetTypeId (void);
295 TypeId GetInstanceTypeId (void) const;
296 void Print (std::ostream &os) const;
297 uint32_t GetSerializedSize (void) const;
298 void Serialize (Buffer::Iterator start) const;
300
301
302private:
312};
313
314
320{
321public:
324
360 HtOperation GetHtOperation (void) const;
372 VhtOperation GetVhtOperation (void) const;
384 HeOperation GetHeOperation (void) const;
390 uint16_t GetAssociationId (void) const;
414 void SetCapabilities (CapabilityInformation capabilities);
420 void SetExtendedCapabilities (ExtendedCapabilities extendedCapabilities);
426 void SetVhtOperation (VhtOperation vhtOperation);
432 void SetVhtCapabilities (VhtCapabilities vhtCapabilities);
438 void SetHtCapabilities (HtCapabilities htCapabilities);
444 void SetHtOperation (HtOperation htOperation);
456 void SetStatusCode (StatusCode code);
462 void SetAssociationId (uint16_t aid);
468 void SetErpInformation (ErpInformation erpInformation);
474 void SetEdcaParameterSet (EdcaParameterSet edcaParameterSet);
480 void SetMuEdcaParameterSet (MuEdcaParameterSet muEdcaParameterSet);
486 void SetHeCapabilities (HeCapabilities heCapabilities);
492 void SetHeOperation (HeOperation heOperation);
493
498 static TypeId GetTypeId (void);
499 TypeId GetInstanceTypeId (void) const;
500 void Print (std::ostream &os) const;
501 uint32_t GetSerializedSize (void) const;
502 void Serialize (Buffer::Iterator start) const;
504
505
506private:
510 uint16_t m_aid;
521};
522
523
529{
530public:
532
538 void SetSsid (Ssid ssid);
550 void SetExtendedCapabilities (ExtendedCapabilities extendedCapabilities);
556 void SetHtCapabilities (HtCapabilities htCapabilities);
562 void SetVhtCapabilities (VhtCapabilities vhtCapabilities);
568 void SetHeCapabilities (HeCapabilities heCapabilities);
574 Ssid GetSsid (void) const;
605
610 static TypeId GetTypeId (void);
611 TypeId GetInstanceTypeId (void) const;
612 void Print (std::ostream &os) const;
613 uint32_t GetSerializedSize (void) const;
614 void Serialize (Buffer::Iterator start) const;
616
617
618private:
625};
626
627
633{
634public:
637
643 Ssid GetSsid (void) const;
649 uint64_t GetBeaconIntervalUs (void) const;
685 HtOperation GetHtOperation (void) const;
697 VhtOperation GetVhtOperation (void) const;
709 HeOperation GetHeOperation (void) const;
733 void SetCapabilities (CapabilityInformation capabilities);
739 void SetExtendedCapabilities (ExtendedCapabilities extendedCapabilities);
745 void SetHtCapabilities (HtCapabilities htCapabilities);
751 void SetHtOperation (HtOperation htOperation);
757 void SetVhtCapabilities (VhtCapabilities vhtCapabilities);
763 void SetVhtOperation (VhtOperation vhtOperation);
769 void SetHeCapabilities (HeCapabilities heCapabilities);
775 void SetHeOperation (HeOperation heOperation);
781 void SetSsid (Ssid ssid);
787 void SetBeaconIntervalUs (uint64_t us);
799 void SetDsssParameterSet (DsssParameterSet dsssParameterSet);
805 void SetErpInformation (ErpInformation erpInformation);
811 void SetEdcaParameterSet (EdcaParameterSet edcaParameterSet);
817 void SetMuEdcaParameterSet (MuEdcaParameterSet muEdcaParameterSet);
823 uint64_t GetTimestamp ();
824
829 static TypeId GetTypeId (void);
830 TypeId GetInstanceTypeId (void) const;
831 void Print (std::ostream &os) const;
832 uint32_t GetSerializedSize (void) const;
833 void Serialize (Buffer::Iterator start) const;
835
836
837private:
838 uint64_t m_timestamp;
854};
855
856
862{
863public:
869 static TypeId GetTypeId (void);
870};
871
872
873/****************************
874* Action frames
875*****************************/
876
885{
886public:
889
890 /*
891 * Compatible with table 8-38 IEEE 802.11, Part11, (Year 2012)
892 * Category values - see 802.11-2012 Table 8-38
893 */
894
896 enum CategoryValue //table 8-38 staring from IEEE 802.11, Part11, (Year 2012)
897 {
899 MESH = 13, //Category: Mesh
900 MULTIHOP = 14, //not used so far
901 SELF_PROTECTED = 15, //Category: Self Protected
902 //Since vendor specific action has no stationary Action value,the parse process is not here.
903 //Refer to vendor-specific-action in wave module.
905 };
906
908 enum SelfProtectedActionValue //Category: 15 (Self Protected)
909 {
910 PEER_LINK_OPEN = 1, //Mesh Peering Open
911 PEER_LINK_CONFIRM = 2, //Mesh Peering Confirm
912 PEER_LINK_CLOSE = 3, //Mesh Peering Close
913 GROUP_KEY_INFORM = 4, //Mesh Group Key Inform
914 GROUP_KEY_ACK = 5, //Mesh Group Key Acknowledge
915 };
916
919 {
920 PROXY_UPDATE = 0, //not used so far
921 PROXY_UPDATE_CONFIRMATION = 1, //not used so far
922 };
923
926 {
927 LINK_METRIC_REPORT = 0, //Action Value:0 in Category 13: Mesh
928 PATH_SELECTION = 1, //Action Value:1 in Category 13: Mesh
929 PORTAL_ANNOUNCEMENT = 2, //Action Value:2 in Category 13: Mesh
930 CONGESTION_CONTROL_NOTIFICATION = 3, //Action Value:3 in Category 13: Mesh
931 MDA_SETUP_REQUEST = 4, //Action Value:4 in Category 13: Mesh MCCA-Setup-Request (not used so far)
932 MDA_SETUP_REPLY = 5, //Action Value:5 in Category 13: Mesh MCCA-Setup-Reply (not used so far)
933 MDAOP_ADVERTISMENT_REQUEST = 6, //Action Value:6 in Category 13: Mesh MCCA-Advertisement-Request (not used so far)
934 MDAOP_ADVERTISMENTS = 7, //Action Value:7 in Category 13: Mesh (not used so far)
935 MDAOP_SET_TEARDOWN = 8, //Action Value:8 in Category 13: Mesh (not used so far)
936 TBTT_ADJUSTMENT_REQUEST = 9, //Action Value:9 in Category 13: Mesh (not used so far)
937 TBTT_ADJUSTMENT_RESPONSE = 10, //Action Value:10 in Category 13: Mesh (not used so far)
938 };
939
945 {
949 };
950
951
955 typedef union
956 {
961 } ActionValue;
968 void SetAction (CategoryValue type, ActionValue action);
969
982
987 static TypeId GetTypeId (void);
988 TypeId GetInstanceTypeId () const;
989 void Print (std::ostream &os) const;
991 void Serialize (Buffer::Iterator start) const;
993
994
995private:
1001 std::string CategoryValueToString (CategoryValue value) const;
1008 uint8_t m_category;
1010};
1011
1012
1018{
1019public:
1021
1026 static TypeId GetTypeId (void);
1027 TypeId GetInstanceTypeId (void) const;
1028 void Print (std::ostream &os) const;
1029 uint32_t GetSerializedSize (void) const;
1030 void Serialize (Buffer::Iterator start) const;
1032
1036 void SetDelayedBlockAck ();
1040 void SetImmediateBlockAck ();
1046 void SetTid (uint8_t tid);
1052 void SetTimeout (uint16_t timeout);
1058 void SetBufferSize (uint16_t size);
1064 void SetStartingSequence (uint16_t seq);
1070 void SetAmsduSupport (bool supported);
1071
1077 uint16_t GetStartingSequence (void) const;
1083 uint8_t GetTid (void) const;
1089 bool IsImmediateBlockAck (void) const;
1095 uint16_t GetTimeout (void) const;
1101 uint16_t GetBufferSize (void) const;
1107 bool IsAmsduSupported (void) const;
1108
1109private:
1115 uint16_t GetParameterSet (void) const;
1121 void SetParameterSet (uint16_t params);
1127 uint16_t GetStartingSequenceControl (void) const;
1133 void SetStartingSequenceControl (uint16_t seqControl);
1134
1137 uint8_t m_policy;
1138 uint8_t m_tid;
1139 uint16_t m_bufferSize;
1141 uint16_t m_startingSeq;
1142};
1143
1144
1150{
1151public:
1153
1158 static TypeId GetTypeId (void);
1159 TypeId GetInstanceTypeId (void) const;
1160 void Print (std::ostream &os) const;
1161 uint32_t GetSerializedSize (void) const;
1162 void Serialize (Buffer::Iterator start) const;
1164
1168 void SetDelayedBlockAck ();
1172 void SetImmediateBlockAck ();
1178 void SetTid (uint8_t tid);
1184 void SetTimeout (uint16_t timeout);
1190 void SetBufferSize (uint16_t size);
1196 void SetStatusCode (StatusCode code);
1202 void SetAmsduSupport (bool supported);
1203
1209 StatusCode GetStatusCode (void) const;
1215 uint8_t GetTid (void) const;
1221 bool IsImmediateBlockAck (void) const;
1227 uint16_t GetTimeout (void) const;
1233 uint16_t GetBufferSize (void) const;
1239 bool IsAmsduSupported (void) const;
1240
1241
1242private:
1248 uint16_t GetParameterSet (void) const;
1254 void SetParameterSet (uint16_t params);
1255
1259 uint8_t m_policy;
1260 uint8_t m_tid;
1261 uint16_t m_bufferSize;
1263};
1264
1265
1271{
1272public:
1273 MgtDelBaHeader ();
1274
1279 static TypeId GetTypeId (void);
1280
1281 TypeId GetInstanceTypeId (void) const;
1282 void Print (std::ostream &os) const;
1283 uint32_t GetSerializedSize (void) const;
1284 void Serialize (Buffer::Iterator start) const;
1286
1293 bool IsByOriginator (void) const;
1299 uint8_t GetTid (void) const;
1305 void SetTid (uint8_t tid);
1309 void SetByOriginator (void);
1313 void SetByRecipient (void);
1314
1315
1316private:
1322 uint16_t GetParameterSet (void) const;
1328 void SetParameterSet (uint16_t params);
1329
1330 uint16_t m_initiator;
1331 uint16_t m_tid;
1332 uint16_t m_reasonCode;
1333};
1334
1335} //namespace ns3
1336
1337#endif /* MGT_HEADERS_H */
iterator in a Buffer instance
Definition: buffer.h:99
The DSSS Parameter Set.
The EDCA Parameter Set.
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:1018
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:1141
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:1138
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:1136
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:1135
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:1139
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:1140
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:1137
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:1150
uint16_t m_bufferSize
Buffer size.
Definition: mgt-headers.h:1261
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:1258
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:1256
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:1259
void SetBufferSize(uint16_t size)
Set buffer size.
uint16_t m_timeoutValue
Timeout.
Definition: mgt-headers.h:1262
void SetStatusCode(StatusCode code)
Set the status code.
uint8_t m_tid
Traffic ID.
Definition: mgt-headers.h:1260
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:1257
Implement the header for management frames of type association request.
Definition: mgt-headers.h:50
void SetHeCapabilities(HeCapabilities heCapabilities)
Set the HE capabilities.
Definition: mgt-headers.cc:596
SupportedRates m_rates
List of supported rates.
Definition: mgt-headers.h:167
HeCapabilities GetHeCapabilities(void) const
Return the HE capabilities.
Definition: mgt-headers.cc:602
CapabilityInformation GetCapabilities(void) const
Return the Capability information.
Definition: mgt-headers.cc:554
ExtendedCapabilities m_extendedCapability
Extended capabilities.
Definition: mgt-headers.h:169
ExtendedCapabilities GetExtendedCapabilities(void) const
Return the extended capabilities.
Definition: mgt-headers.cc:566
void SetSupportedRates(SupportedRates rates)
Set the supported rates.
Definition: mgt-headers.cc:536
static TypeId GetTypeId(void)
Register this type.
Definition: mgt-headers.cc:626
HtCapabilities GetHtCapabilities(void) const
Return the HT capabilities.
Definition: mgt-headers.cc:578
HtCapabilities m_htCapability
HT capabilities.
Definition: mgt-headers.h:170
TypeId GetInstanceTypeId(void) const override
Get the most derived TypeId for this Object.
Definition: mgt-headers.cc:637
uint32_t Deserialize(Buffer::Iterator start) override
Definition: mgt-headers.cc:685
void SetHtCapabilities(HtCapabilities htCapabilities)
Set the HT capabilities.
Definition: mgt-headers.cc:572
void SetExtendedCapabilities(ExtendedCapabilities extendedCapabilities)
Set the Extended Capabilities.
Definition: mgt-headers.cc:560
CapabilityInformation m_capability
Capability information.
Definition: mgt-headers.h:168
VhtCapabilities m_vhtCapability
VHT capabilities.
Definition: mgt-headers.h:171
void SetSsid(Ssid ssid)
Set the Service Set Identifier (SSID).
Definition: mgt-headers.cc:530
VhtCapabilities GetVhtCapabilities(void) const
Return the VHT capabilities.
Definition: mgt-headers.cc:590
void SetListenInterval(uint16_t interval)
Set the listen interval.
Definition: mgt-headers.cc:542
SupportedRates GetSupportedRates(void) const
Return the supported rates.
Definition: mgt-headers.cc:614
void Print(std::ostream &os) const override
Definition: mgt-headers.cc:659
void SetCapabilities(CapabilityInformation capabilities)
Set the Capability information.
Definition: mgt-headers.cc:548
void SetVhtCapabilities(VhtCapabilities vhtCapabilities)
Set the VHT capabilities.
Definition: mgt-headers.cc:584
uint16_t m_listenInterval
listen interval
Definition: mgt-headers.h:173
Ssid m_ssid
Service Set ID (SSID)
Definition: mgt-headers.h:166
Ssid GetSsid(void) const
Return the Service Set Identifier (SSID).
Definition: mgt-headers.cc:608
uint32_t GetSerializedSize(void) const override
Definition: mgt-headers.cc:643
void Serialize(Buffer::Iterator start) const override
Definition: mgt-headers.cc:670
uint16_t GetListenInterval(void) const
Return the listen interval.
Definition: mgt-headers.cc:620
HeCapabilities m_heCapability
HE capabilities.
Definition: mgt-headers.h:172
Implement the header for management frames of type association and reassociation response.
Definition: mgt-headers.h:320
uint32_t Deserialize(Buffer::Iterator start)
void SetErpInformation(ErpInformation erpInformation)
Set the ERP information.
void SetVhtCapabilities(VhtCapabilities vhtCapabilities)
Set the VHT capabilities.
Definition: mgt-headers.cc:986
HtCapabilities GetHtCapabilities(void) const
Return the HT capabilities.
Definition: mgt-headers.cc:968
MuEdcaParameterSet GetMuEdcaParameterSet(void) const
Return the MU EDCA Parameter Set.
void SetHtCapabilities(HtCapabilities htCapabilities)
Set the HT capabilities.
Definition: mgt-headers.cc:962
ExtendedCapabilities GetExtendedCapabilities(void) const
Return the extended capabilities.
Definition: mgt-headers.cc:956
void SetHtOperation(HtOperation htOperation)
Set the HT operation.
Definition: mgt-headers.cc:974
EdcaParameterSet GetEdcaParameterSet(void) const
Return the EDCA Parameter Set.
VhtOperation m_vhtOperation
VHT operation.
Definition: mgt-headers.h:515
ErpInformation m_erpInformation
ERP information.
Definition: mgt-headers.h:516
void SetCapabilities(CapabilityInformation capabilities)
Set the Capability information.
Definition: mgt-headers.cc:938
void SetHeCapabilities(HeCapabilities heCapabilities)
Set the HE capabilities.
EdcaParameterSet m_edcaParameterSet
EDCA Parameter Set.
Definition: mgt-headers.h:517
HtOperation m_htOperation
HT operation.
Definition: mgt-headers.h:513
void SetStatusCode(StatusCode code)
Set the status code.
Definition: mgt-headers.cc:926
SupportedRates m_rates
List of supported rates.
Definition: mgt-headers.h:507
HeCapabilities m_heCapability
HE capabilities.
Definition: mgt-headers.h:518
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:514
void Print(std::ostream &os) const
SupportedRates GetSupportedRates(void)
Return the supported rates.
Definition: mgt-headers.cc:920
CapabilityInformation m_capability
Capability information.
Definition: mgt-headers.h:508
HeOperation m_heOperation
HE operation.
Definition: mgt-headers.h:519
VhtCapabilities GetVhtCapabilities(void) const
Return the VHT capabilities.
Definition: mgt-headers.cc:992
HtCapabilities m_htCapability
HT capabilities.
Definition: mgt-headers.h:512
StatusCode GetStatusCode(void)
Return the status code.
Definition: mgt-headers.cc:914
HtOperation GetHtOperation(void) const
Return the HT operation.
Definition: mgt-headers.cc:980
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:511
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.
Definition: mgt-headers.cc:950
void SetVhtOperation(VhtOperation vhtOperation)
Set the VHT operation.
Definition: mgt-headers.cc:998
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:944
MuEdcaParameterSet m_muEdcaParameterSet
MU EDCA Parameter Set.
Definition: mgt-headers.h:520
void SetSupportedRates(SupportedRates rates)
Set the supported rates.
Definition: mgt-headers.cc:932
HeCapabilities GetHeCapabilities(void) const
Return the HE capabilities.
StatusCode m_code
Status code.
Definition: mgt-headers.h:509
Implement the header for management frames of type beacon.
Definition: mgt-headers.h:862
static TypeId GetTypeId(void)
Register this type.
Definition: mgt-headers.cc:503
Implement the header for management frames of type Delete Block Ack.
Definition: mgt-headers.h:1271
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:1330
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:1332
void SetByRecipient(void)
Un-set the initiator bit in the DELBA.
uint16_t m_tid
Traffic ID.
Definition: mgt-headers.h:1331
uint32_t GetSerializedSize(void) const
Implement the header for management frames of type probe request.
Definition: mgt-headers.h:529
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:621
VhtCapabilities GetVhtCapabilities(void) const
Return the VHT capabilities.
Definition: mgt-headers.cc:88
void Print(std::ostream &os) const
Definition: mgt-headers.cc:143
void Serialize(Buffer::Iterator start) const
Definition: mgt-headers.cc:154
Ssid m_ssid
Service Set ID (SSID)
Definition: mgt-headers.h:619
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:624
TypeId GetInstanceTypeId(void) const
Get the most derived TypeId for this Object.
Definition: mgt-headers.cc:137
uint32_t Deserialize(Buffer::Iterator start)
Definition: mgt-headers.cc:167
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
uint32_t GetSerializedSize(void) const
Definition: mgt-headers.cc:112
SupportedRates m_rates
List of supported rates.
Definition: mgt-headers.h:620
static TypeId GetTypeId(void)
Register this type.
Definition: mgt-headers.cc:126
HtCapabilities m_htCapability
HT capabilities.
Definition: mgt-headers.h:622
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
HtCapabilities GetHtCapabilities(void) const
Return the HT capabilities.
Definition: mgt-headers.cc:76
VhtCapabilities m_vhtCapability
VHT capabilities.
Definition: mgt-headers.h:623
SupportedRates GetSupportedRates(void) const
Return the supported rates.
Definition: mgt-headers.cc:106
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:633
VhtOperation m_vhtOperation
VHT operation.
Definition: mgt-headers.h:848
void SetVhtCapabilities(VhtCapabilities vhtCapabilities)
Set the VHT capabilities.
Definition: mgt-headers.cc:268
void SetErpInformation(ErpInformation erpInformation)
Set the ERP information.
Definition: mgt-headers.cc:346
VhtOperation GetVhtOperation(void) const
Return the VHT operation.
Definition: mgt-headers.cc:286
HeCapabilities GetHeCapabilities(void) const
Return the HE capabilities.
Definition: mgt-headers.cc:298
uint64_t m_beaconInterval
Beacon interval.
Definition: mgt-headers.h:840
uint64_t GetTimestamp()
Return the time stamp.
Definition: mgt-headers.cc:196
VhtCapabilities GetVhtCapabilities(void) const
Return the VHT capabilities.
Definition: mgt-headers.cc:274
void SetCapabilities(CapabilityInformation capabilities)
Set the Capability information.
Definition: mgt-headers.cc:220
void Serialize(Buffer::Iterator start) const
Definition: mgt-headers.cc:438
void SetHeCapabilities(HeCapabilities heCapabilities)
Set the HE capabilities.
Definition: mgt-headers.cc:292
HtOperation GetHtOperation(void) const
Return the HT operation.
Definition: mgt-headers.cc:262
HeOperation GetHeOperation(void) const
Return the HE operation.
Definition: mgt-headers.cc:310
DsssParameterSet GetDsssParameterSet(void) const
Return the DSSS Parameter Set.
Definition: mgt-headers.cc:340
void SetExtendedCapabilities(ExtendedCapabilities extendedCapabilities)
Set the extended capabilities.
Definition: mgt-headers.cc:232
VhtCapabilities m_vhtCapability
VHT capabilities.
Definition: mgt-headers.h:847
MuEdcaParameterSet GetMuEdcaParameterSet(void) const
Return the MU EDCA Parameter Set.
Definition: mgt-headers.cc:376
CapabilityInformation GetCapabilities(void) const
Return the Capability information.
Definition: mgt-headers.cc:226
static TypeId GetTypeId(void)
Register this type.
Definition: mgt-headers.cc:382
EdcaParameterSet GetEdcaParameterSet(void) const
Return the EDCA Parameter Set.
Definition: mgt-headers.cc:370
Ssid m_ssid
Service set ID (SSID)
Definition: mgt-headers.h:839
HtOperation m_htOperation
HT operation.
Definition: mgt-headers.h:846
Ssid GetSsid(void) const
Return the Service Set Identifier (SSID).
Definition: mgt-headers.cc:202
void SetVhtOperation(VhtOperation vhtOperation)
Set the VHT operation.
Definition: mgt-headers.cc:280
void SetHtCapabilities(HtCapabilities htCapabilities)
Set the HT capabilities.
Definition: mgt-headers.cc:244
SupportedRates GetSupportedRates(void) const
Return the supported rates.
Definition: mgt-headers.cc:214
void SetHtOperation(HtOperation htOperation)
Set the HT operation.
Definition: mgt-headers.cc:256
MuEdcaParameterSet m_muEdcaParameterSet
MU EDCA Parameter Set.
Definition: mgt-headers.h:853
void SetSsid(Ssid ssid)
Set the Service Set Identifier (SSID).
Definition: mgt-headers.cc:316
SupportedRates m_rates
List of supported rates.
Definition: mgt-headers.h:841
void SetSupportedRates(SupportedRates rates)
Set the supported rates.
Definition: mgt-headers.cc:328
void Print(std::ostream &os) const
Definition: mgt-headers.cc:423
TypeId GetInstanceTypeId(void) const
Get the most derived TypeId for this Object.
Definition: mgt-headers.cc:393
HeOperation m_heOperation
HE operation.
Definition: mgt-headers.h:850
ErpInformation GetErpInformation(void) const
Return the ERP information.
Definition: mgt-headers.cc:352
void SetDsssParameterSet(DsssParameterSet dsssParameterSet)
Set the DSSS Parameter Set.
Definition: mgt-headers.cc:334
void SetBeaconIntervalUs(uint64_t us)
Set the beacon interval in microseconds unit.
Definition: mgt-headers.cc:322
void SetEdcaParameterSet(EdcaParameterSet edcaParameterSet)
Set the EDCA Parameter Set.
Definition: mgt-headers.cc:358
uint32_t GetSerializedSize(void) const
Definition: mgt-headers.cc:399
DsssParameterSet m_dsssParameterSet
DSSS Parameter Set.
Definition: mgt-headers.h:843
EdcaParameterSet m_edcaParameterSet
EDCA Parameter Set.
Definition: mgt-headers.h:852
uint32_t Deserialize(Buffer::Iterator start)
Definition: mgt-headers.cc:470
void SetHeOperation(HeOperation heOperation)
Set the HE operation.
Definition: mgt-headers.cc:304
HtCapabilities GetHtCapabilities(void) const
Return the HT capabilities.
Definition: mgt-headers.cc:250
uint64_t GetBeaconIntervalUs(void) const
Return the beacon interval in microseconds unit.
Definition: mgt-headers.cc:208
ExtendedCapabilities m_extendedCapability
extended capabilities
Definition: mgt-headers.h:844
CapabilityInformation m_capability
Capability information.
Definition: mgt-headers.h:842
uint64_t m_timestamp
Timestamp.
Definition: mgt-headers.h:838
HtCapabilities m_htCapability
HT capabilities.
Definition: mgt-headers.h:845
ExtendedCapabilities GetExtendedCapabilities(void) const
Return the extended capabilities.
Definition: mgt-headers.cc:238
HeCapabilities m_heCapability
HE capabilities.
Definition: mgt-headers.h:849
ErpInformation m_erpInformation
ERP information.
Definition: mgt-headers.h:851
void SetMuEdcaParameterSet(MuEdcaParameterSet muEdcaParameterSet)
Set the MU EDCA Parameter Set.
Definition: mgt-headers.cc:364
Implement the header for management frames of type reassociation request.
Definition: mgt-headers.h:182
SupportedRates GetSupportedRates(void) const
Return the supported rates.
Definition: mgt-headers.cc:801
Mac48Address m_currentApAddr
Address of the current access point.
Definition: mgt-headers.h:303
void SetSupportedRates(SupportedRates rates)
Set the supported rates.
Definition: mgt-headers.cc:723
uint16_t m_listenInterval
listen interval
Definition: mgt-headers.h:311
uint32_t Deserialize(Buffer::Iterator start)
Definition: mgt-headers.cc:881
HtCapabilities m_htCapability
HT capabilities.
Definition: mgt-headers.h:308
uint16_t GetListenInterval(void) const
Return the listen interval.
Definition: mgt-headers.cc:807
void SetHtCapabilities(HtCapabilities htCapabilities)
Set the HT capabilities.
Definition: mgt-headers.cc:759
void SetCapabilities(CapabilityInformation capabilities)
Set the Capability information.
Definition: mgt-headers.cc:735
VhtCapabilities m_vhtCapability
VHT capabilities.
Definition: mgt-headers.h:309
HeCapabilities GetHeCapabilities(void) const
Return the HE capabilities.
Definition: mgt-headers.cc:789
static TypeId GetTypeId(void)
Register this type.
Definition: mgt-headers.cc:819
SupportedRates m_rates
List of supported rates.
Definition: mgt-headers.h:305
void SetSsid(Ssid ssid)
Set the Service Set Identifier (SSID).
Definition: mgt-headers.cc:717
VhtCapabilities GetVhtCapabilities(void) const
Return the VHT capabilities.
Definition: mgt-headers.cc:777
Ssid m_ssid
Service Set ID (SSID)
Definition: mgt-headers.h:304
void Serialize(Buffer::Iterator start) const
Definition: mgt-headers.cc:865
HeCapabilities m_heCapability
HE capabilities.
Definition: mgt-headers.h:310
void SetExtendedCapabilities(ExtendedCapabilities extendedCapabilities)
Set the Extended Capabilities.
Definition: mgt-headers.cc:747
void SetListenInterval(uint16_t interval)
Set the listen interval.
Definition: mgt-headers.cc:729
ExtendedCapabilities m_extendedCapability
Extended capabilities.
Definition: mgt-headers.h:307
void Print(std::ostream &os) const
Definition: mgt-headers.cc:853
Ssid GetSsid(void) const
Return the Service Set Identifier (SSID).
Definition: mgt-headers.cc:795
CapabilityInformation m_capability
Capability information.
Definition: mgt-headers.h:306
HtCapabilities GetHtCapabilities(void) const
Return the HT capabilities.
Definition: mgt-headers.cc:765
TypeId GetInstanceTypeId(void) const
Get the most derived TypeId for this Object.
Definition: mgt-headers.cc:830
void SetHeCapabilities(HeCapabilities heCapabilities)
Set the HE capabilities.
Definition: mgt-headers.cc:783
void SetVhtCapabilities(VhtCapabilities vhtCapabilities)
Set the VHT capabilities.
Definition: mgt-headers.cc:771
void SetCurrentApAddress(Mac48Address currentApAddr)
Set the address of the current access point.
Definition: mgt-headers.cc:813
CapabilityInformation GetCapabilities(void) const
Return the Capability information.
Definition: mgt-headers.cc:741
uint32_t GetSerializedSize(void) const
Definition: mgt-headers.cc:836
ExtendedCapabilities GetExtendedCapabilities(void) const
Return the extended capabilities.
Definition: mgt-headers.cc:753
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:885
MultihopActionValue
MultihopActionValue enumeration.
Definition: mgt-headers.h:919
SelfProtectedActionValue
SelfProtectedActionValue enumeration.
Definition: mgt-headers.h:909
uint8_t m_category
Category of the action.
Definition: mgt-headers.h:1008
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:897
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:945
uint8_t m_actionValue
Action value.
Definition: mgt-headers.h:1009
CategoryValue GetCategory()
Return the category value.
MeshActionValue
MeshActionValue enumeration.
Definition: mgt-headers.h:926
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:956
SelfProtectedActionValue selfProtectedAction
self protected action
Definition: mgt-headers.h:959
MultihopActionValue multihopAction
multi hop action
Definition: mgt-headers.h:958
MeshActionValue meshAction
mesh action
Definition: mgt-headers.h:957
BlockAckActionValue blockAck
block ack
Definition: mgt-headers.h:960