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"
28 #include "capability-information.h"
29 #include "supported-rates.h"
30 #include "ssid.h"
31 #include "dsss-parameter-set.h"
32 #include "extended-capabilities.h"
33 #include "ht-capabilities.h"
34 #include "ht-operation.h"
35 #include "vht-capabilities.h"
36 #include "vht-operation.h"
37 #include "erp-information.h"
38 #include "edca-parameter-set.h"
39 #include "he-capabilities.h"
40 #include "he-operation.h"
41 #include "cf-parameter-set.h"
42 
43 namespace ns3 {
44 
50 {
51 public:
54 
60  void SetSsid (Ssid ssid);
66  void SetSupportedRates (SupportedRates rates);
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);
120  HtCapabilities GetHtCapabilities (void) const;
126  VhtCapabilities GetVhtCapabilities (void) const;
132  HeCapabilities GetHeCapabilities (void) const;
138  Ssid GetSsid (void) const;
144  SupportedRates GetSupportedRates (void) const;
150  uint16_t GetListenInterval (void) const;
151 
156  static TypeId GetTypeId (void);
157  TypeId GetInstanceTypeId (void) const;
158  void Print (std::ostream &os) const;
159  uint32_t GetSerializedSize (void) const;
160  void Serialize (Buffer::Iterator start) const;
162 
163 
164 private:
172  uint16_t m_listenInterval;
173 };
174 
175 
181 {
182 public:
185 
191  void SetSsid (Ssid ssid);
197  void SetSupportedRates (SupportedRates rates);
203  void SetListenInterval (uint16_t interval);
209  void SetCapabilities (CapabilityInformation capabilities);
215  void SetExtendedCapabilities (ExtendedCapabilities extendedCapabilities);
221  void SetHtCapabilities (HtCapabilities htCapabilities);
227  void SetVhtCapabilities (VhtCapabilities vhtCapabilities);
233  void SetHeCapabilities (HeCapabilities heCapabilities);
251  HtCapabilities GetHtCapabilities (void) const;
257  VhtCapabilities GetVhtCapabilities (void) const;
263  HeCapabilities GetHeCapabilities (void) const;
269  Ssid GetSsid (void) const;
275  SupportedRates GetSupportedRates (void) const;
281  uint16_t GetListenInterval (void) const;
287  void SetCurrentApAddress (Mac48Address currentApAddr);
288 
293  static TypeId GetTypeId (void);
294  TypeId GetInstanceTypeId (void) const;
295  void Print (std::ostream &os) const;
296  uint32_t GetSerializedSize (void) const;
297  void Serialize (Buffer::Iterator start) const;
299 
300 
301 private:
310  uint16_t m_listenInterval;
311 };
312 
313 
319 {
320 public:
323 
329  StatusCode GetStatusCode (void);
353  HtCapabilities GetHtCapabilities (void) const;
359  HtOperation GetHtOperation (void) const;
365  VhtCapabilities GetVhtCapabilities (void) const;
371  VhtOperation GetVhtOperation (void) const;
377  HeCapabilities GetHeCapabilities (void) const;
383  HeOperation GetHeOperation (void) const;
389  uint16_t GetAssociationId (void) const;
395  ErpInformation GetErpInformation (void) const;
407  void SetCapabilities (CapabilityInformation capabilities);
413  void SetExtendedCapabilities (ExtendedCapabilities extendedCapabilities);
419  void SetVhtOperation (VhtOperation vhtOperation);
425  void SetVhtCapabilities (VhtCapabilities vhtCapabilities);
431  void SetHtCapabilities (HtCapabilities htCapabilities);
437  void SetHtOperation (HtOperation htOperation);
443  void SetSupportedRates (SupportedRates rates);
449  void SetStatusCode (StatusCode code);
455  void SetAssociationId (uint16_t aid);
461  void SetErpInformation (ErpInformation erpInformation);
467  void SetEdcaParameterSet (EdcaParameterSet edcaParameterSet);
473  void SetHeCapabilities (HeCapabilities heCapabilities);
479  void SetHeOperation (HeOperation heOperation);
480 
485  static TypeId GetTypeId (void);
486  TypeId GetInstanceTypeId (void) const;
487  void Print (std::ostream &os) const;
488  uint32_t GetSerializedSize (void) const;
489  void Serialize (Buffer::Iterator start) const;
491 
492 
493 private:
497  uint16_t m_aid;
507 };
508 
509 
515 {
516 public:
518 
524  void SetSsid (Ssid ssid);
530  void SetSupportedRates (SupportedRates rates);
536  void SetExtendedCapabilities (ExtendedCapabilities extendedCapabilities);
542  void SetHtCapabilities (HtCapabilities htCapabilities);
548  void SetVhtCapabilities (VhtCapabilities vhtCapabilities);
554  void SetHeCapabilities (HeCapabilities heCapabilities);
560  Ssid GetSsid (void) const;
566  SupportedRates GetSupportedRates (void) const;
578  HtCapabilities GetHtCapabilities (void) const;
584  VhtCapabilities GetVhtCapabilities (void) const;
590  HeCapabilities GetHeCapabilities (void) const;
591 
596  static TypeId GetTypeId (void);
597  TypeId GetInstanceTypeId (void) const;
598  void Print (std::ostream &os) const;
599  uint32_t GetSerializedSize (void) const;
600  void Serialize (Buffer::Iterator start) const;
602 
603 
604 private:
611 };
612 
613 
619 {
620 public:
623 
629  Ssid GetSsid (void) const;
635  uint64_t GetBeaconIntervalUs (void) const;
641  SupportedRates GetSupportedRates (void) const;
665  HtCapabilities GetHtCapabilities (void) const;
671  HtOperation GetHtOperation (void) const;
677  VhtCapabilities GetVhtCapabilities (void) const;
683  VhtOperation GetVhtOperation (void) const;
689  HeCapabilities GetHeCapabilities (void) const;
695  HeOperation GetHeOperation (void) const;
701  ErpInformation GetErpInformation (void) const;
713  CfParameterSet GetCfParameterSet (void) const;
719  void SetCapabilities (CapabilityInformation capabilities);
725  void SetExtendedCapabilities (ExtendedCapabilities extendedCapabilities);
731  void SetHtCapabilities (HtCapabilities htCapabilities);
737  void SetHtOperation (HtOperation htOperation);
743  void SetVhtCapabilities (VhtCapabilities vhtCapabilities);
749  void SetVhtOperation (VhtOperation vhtOperation);
755  void SetHeCapabilities (HeCapabilities heCapabilities);
761  void SetHeOperation (HeOperation heOperation);
767  void SetSsid (Ssid ssid);
773  void SetBeaconIntervalUs (uint64_t us);
779  void SetSupportedRates (SupportedRates rates);
785  void SetDsssParameterSet (DsssParameterSet dsssParameterSet);
791  void SetErpInformation (ErpInformation erpInformation);
797  void SetEdcaParameterSet (EdcaParameterSet edcaParameterSet);
803  void SetCfParameterSet (CfParameterSet cfParameterSet);
809  uint64_t GetTimestamp ();
810 
815  static TypeId GetTypeId (void);
816  TypeId GetInstanceTypeId (void) const;
817  void Print (std::ostream &os) const;
818  uint32_t GetSerializedSize (void) const;
819  void Serialize (Buffer::Iterator start) const;
821 
822 
823 private:
824  uint64_t m_timestamp;
826  uint64_t m_beaconInterval;
840 };
841 
842 
848 {
849 public:
855  static TypeId GetTypeId (void);
856 };
857 
858 
859 /****************************
860 * Action frames
861 *****************************/
862 
870 class WifiActionHeader : public Header
871 {
872 public:
873  WifiActionHeader ();
875 
876  /*
877  * Compatible with table 8-38 IEEE 802.11, Part11, (Year 2012)
878  * Category values - see 802.11-2012 Table 8-38
879  */
880 
882  enum CategoryValue //table 8-38 staring from IEEE 802.11, Part11, (Year 2012)
883  {
885  MESH = 13, //Category: Mesh
886  MULTIHOP = 14, //not used so far
887  SELF_PROTECTED = 15, //Category: Self Protected
888  //Since vendor specific action has no stationary Action value,the parse process is not here.
889  //Refer to vendor-specific-action in wave module.
891  };
892 
894  enum SelfProtectedActionValue //Category: 15 (Self Protected)
895  {
896  PEER_LINK_OPEN = 1, //Mesh Peering Open
897  PEER_LINK_CONFIRM = 2, //Mesh Peering Confirm
898  PEER_LINK_CLOSE = 3, //Mesh Peering Close
899  GROUP_KEY_INFORM = 4, //Mesh Group Key Inform
900  GROUP_KEY_ACK = 5, //Mesh Group Key Acknowledge
901  };
902 
905  {
906  PROXY_UPDATE = 0, //not used so far
907  PROXY_UPDATE_CONFIRMATION = 1, //not used so far
908  };
909 
912  {
913  LINK_METRIC_REPORT = 0, //Action Value:0 in Category 13: Mesh
914  PATH_SELECTION = 1, //Action Value:1 in Category 13: Mesh
915  PORTAL_ANNOUNCEMENT = 2, //Action Value:2 in Category 13: Mesh
916  CONGESTION_CONTROL_NOTIFICATION = 3, //Action Value:3 in Category 13: Mesh
917  MDA_SETUP_REQUEST = 4, //Action Value:4 in Category 13: Mesh MCCA-Setup-Request (not used so far)
918  MDA_SETUP_REPLY = 5, //Action Value:5 in Category 13: Mesh MCCA-Setup-Reply (not used so far)
919  MDAOP_ADVERTISMENT_REQUEST = 6, //Action Value:6 in Category 13: Mesh MCCA-Advertisement-Request (not used so far)
920  MDAOP_ADVERTISMENTS = 7, //Action Value:7 in Category 13: Mesh (not used so far)
921  MDAOP_SET_TEARDOWN = 8, //Action Value:8 in Category 13: Mesh (not used so far)
922  TBTT_ADJUSTMENT_REQUEST = 9, //Action Value:9 in Category 13: Mesh (not used so far)
923  TBTT_ADJUSTMENT_RESPONSE = 10, //Action Value:10 in Category 13: Mesh (not used so far)
924  };
925 
931  {
935  };
936 
937 
941  typedef union
942  {
947  } ActionValue;
948 
954  void SetAction (CategoryValue type, ActionValue action);
955 
968 
973  static TypeId GetTypeId (void);
974  TypeId GetInstanceTypeId () const;
975  void Print (std::ostream &os) const;
976  uint32_t GetSerializedSize () const;
977  void Serialize (Buffer::Iterator start) const;
979 
980 
981 private:
987  std::string CategoryValueToString (CategoryValue value) const;
994  uint8_t m_category;
995  uint8_t m_actionValue;
996 };
997 
998 
1004 {
1005 public:
1007 
1012  static TypeId GetTypeId (void);
1013  TypeId GetInstanceTypeId (void) const;
1014  void Print (std::ostream &os) const;
1015  uint32_t GetSerializedSize (void) const;
1016  void Serialize (Buffer::Iterator start) const;
1017  uint32_t Deserialize (Buffer::Iterator start);
1018 
1022  void SetDelayedBlockAck ();
1026  void SetImmediateBlockAck ();
1032  void SetTid (uint8_t tid);
1038  void SetTimeout (uint16_t timeout);
1044  void SetBufferSize (uint16_t size);
1050  void SetStartingSequence (uint16_t seq);
1056  void SetAmsduSupport (bool supported);
1057 
1063  uint16_t GetStartingSequence (void) const;
1069  uint8_t GetTid (void) const;
1075  bool IsImmediateBlockAck (void) const;
1081  uint16_t GetTimeout (void) const;
1087  uint16_t GetBufferSize (void) const;
1093  bool IsAmsduSupported (void) const;
1094 
1095 private:
1101  uint16_t GetParameterSet (void) const;
1107  void SetParameterSet (uint16_t params);
1113  uint16_t GetStartingSequenceControl (void) const;
1119  void SetStartingSequenceControl (uint16_t seqControl);
1120 
1121  uint8_t m_dialogToken;
1122  uint8_t m_amsduSupport;
1123  uint8_t m_policy;
1124  uint8_t m_tid;
1125  uint16_t m_bufferSize;
1126  uint16_t m_timeoutValue;
1127  uint16_t m_startingSeq;
1128 };
1129 
1130 
1136 {
1137 public:
1139 
1144  static TypeId GetTypeId (void);
1145  TypeId GetInstanceTypeId (void) const;
1146  void Print (std::ostream &os) const;
1147  uint32_t GetSerializedSize (void) const;
1148  void Serialize (Buffer::Iterator start) const;
1149  uint32_t Deserialize (Buffer::Iterator start);
1150 
1154  void SetDelayedBlockAck ();
1158  void SetImmediateBlockAck ();
1164  void SetTid (uint8_t tid);
1170  void SetTimeout (uint16_t timeout);
1176  void SetBufferSize (uint16_t size);
1182  void SetStatusCode (StatusCode code);
1188  void SetAmsduSupport (bool supported);
1189 
1195  StatusCode GetStatusCode (void) const;
1201  uint8_t GetTid (void) const;
1207  bool IsImmediateBlockAck (void) const;
1213  uint16_t GetTimeout (void) const;
1219  uint16_t GetBufferSize (void) const;
1225  bool IsAmsduSupported (void) const;
1226 
1227 
1228 private:
1234  uint16_t GetParameterSet (void) const;
1240  void SetParameterSet (uint16_t params);
1241 
1242  uint8_t m_dialogToken;
1244  uint8_t m_amsduSupport;
1245  uint8_t m_policy;
1246  uint8_t m_tid;
1247  uint16_t m_bufferSize;
1248  uint16_t m_timeoutValue;
1249 };
1250 
1251 
1256 class MgtDelBaHeader : public Header
1257 {
1258 public:
1259  MgtDelBaHeader ();
1260 
1265  static TypeId GetTypeId (void);
1266  // Inherited
1267  TypeId GetInstanceTypeId (void) const;
1268  void Print (std::ostream &os) const;
1269  uint32_t GetSerializedSize (void) const;
1270  void Serialize (Buffer::Iterator start) const;
1271  uint32_t Deserialize (Buffer::Iterator start);
1272 
1279  bool IsByOriginator (void) const;
1285  uint8_t GetTid (void) const;
1291  void SetTid (uint8_t tid);
1295  void SetByOriginator (void);
1299  void SetByRecipient (void);
1300 
1301 
1302 private:
1308  uint16_t GetParameterSet (void) const;
1314  void SetParameterSet (uint16_t params);
1315 
1316  uint16_t m_initiator;
1317  uint16_t m_tid;
1318  uint16_t m_reasonCode;
1319 };
1320 
1321 } //namespace ns3
1322 
1323 #endif /* MGT_HEADERS_H */
Protocol header serialization and deserialization.
Definition: header.h:42
void SetSupportedRates(SupportedRates rates)
Set the supported rates.
Definition: mgt-headers.cc:723
static TypeId GetTypeId(void)
Register this type.
uint32_t Deserialize(Buffer::Iterator start)
SupportedRates GetSupportedRates(void) const
Return the supported rates.
Definition: mgt-headers.cc:801
TypeId GetInstanceTypeId(void) const
Get the most derived TypeId for this Object.
Definition: mgt-headers.cc:637
uint16_t GetParameterSet(void) const
Return the raw parameter set.
TypeId GetInstanceTypeId(void) const
Get the most derived TypeId for this Object.
StatusCode m_code
Status code.
Definition: mgt-headers.h:1243
uint16_t GetTimeout(void) const
Return the timeout.
void SetVhtCapabilities(VhtCapabilities vhtCapabilities)
Set the VHT capabilities.
Definition: mgt-headers.cc:986
void SetVhtCapabilities(VhtCapabilities vhtCapabilities)
Set the VHT capabilities.
Definition: mgt-headers.cc:82
ExtendedCapabilities GetExtendedCapabilities(void) const
Return the extended capabilities.
Definition: mgt-headers.cc:753
Implement the header for management frames of type association request.
Definition: mgt-headers.h:49
void SetHeCapabilities(HeCapabilities heCapabilities)
Set the HE capabilities.
Definition: mgt-headers.cc:783
DsssParameterSet m_dsssParameterSet
DSSS Parameter Set.
Definition: mgt-headers.h:829
void SetCapabilities(CapabilityInformation capabilities)
Set the Capability information.
Definition: mgt-headers.cc:548
uint8_t m_policy
Block ACK policy.
Definition: mgt-headers.h:1245
void Print(std::ostream &os) const
Definition: mgt-headers.cc:423
Ssid m_ssid
Service Set ID (SSID)
Definition: mgt-headers.h:303
uint32_t GetSerializedSize(void) const
Definition: mgt-headers.cc:836
SupportedRates m_rates
List of supported rates.
Definition: mgt-headers.h:494
static TypeId GetTypeId(void)
Register this type.
Definition: mgt-headers.cc:626
uint32_t GetSerializedSize(void) const
uint16_t m_timeoutValue
Timeout.
Definition: mgt-headers.h:1126
CapabilityInformation GetCapabilities(void) const
Return the Capability information.
Definition: mgt-headers.cc:944
See IEEE 802.11 chapter 7.3.1.11 Header format: | category: 1 | action value: 1 |.
Definition: mgt-headers.h:870
SupportedRates GetSupportedRates(void) const
Return the supported rates.
Definition: mgt-headers.cc:106
HtCapabilities m_htCapability
HT capabilities.
Definition: mgt-headers.h:608
SupportedRates m_rates
List of supported rates.
Definition: mgt-headers.h:166
static TypeId GetTypeId(void)
Register this type.
Definition: mgt-headers.cc:126
void SetImmediateBlockAck()
Enable immediate BlockAck.
bool IsAmsduSupported(void) const
Return whether A-MSDU capability is supported.
SupportedRates m_rates
List of supported rates.
Definition: mgt-headers.h:827
static TypeId GetTypeId(void)
Register this type.
Definition: mgt-headers.cc:819
VhtCapabilities m_vhtCapability
VHT capabilities.
Definition: mgt-headers.h:308
uint8_t m_dialogToken
Not used for now.
Definition: mgt-headers.h:1121
def start()
Definition: core.py:1855
CapabilityInformation m_capability
Capability information.
Definition: mgt-headers.h:495
CapabilityInformation m_capability
Capability information.
Definition: mgt-headers.h:828
void SetBufferSize(uint16_t size)
Set buffer size.
void SetHeCapabilities(HeCapabilities heCapabilities)
Set the HE capabilities.
Implement the header for management frames of type Add Block Ack request.
Definition: mgt-headers.h:1003
void SetAssociationId(uint16_t aid)
Set the association ID.
HtCapabilities m_htCapability
HT capabilities.
Definition: mgt-headers.h:169
HeCapabilities m_heCapability
HE capabilities.
Definition: mgt-headers.h:610
The Extended Capabilities Information ElementThis class knows how to serialise and deserialise the Ex...
The VHT Operation Information ElementThis class knows how to serialise and deserialise the VHT Operat...
Definition: vht-operation.h:37
VhtCapabilities m_vhtCapability
VHT capabilities.
Definition: mgt-headers.h:609
uint16_t GetStartingSequenceControl(void) const
Return the raw sequence control.
void SetListenInterval(uint16_t interval)
Set the listen interval.
Definition: mgt-headers.cc:729
The HT Capabilities Information ElementThis class knows how to serialise and deserialise the HT Capab...
uint16_t GetBufferSize(void) const
Return the buffer size.
void SetCapabilities(CapabilityInformation capabilities)
Set the Capability information.
Definition: mgt-headers.cc:220
void SetSsid(Ssid ssid)
Set the Service Set Identifier (SSID).
Definition: mgt-headers.cc:530
void SetSsid(Ssid ssid)
Set the Service Set Identifier (SSID).
Definition: mgt-headers.cc:717
HeCapabilities GetHeCapabilities(void) const
Return the HE capabilities.
Definition: mgt-headers.cc:789
VhtOperation GetVhtOperation(void) const
Return the VHT operation.
uint16_t m_startingSeq
Starting sequence number.
Definition: mgt-headers.h:1127
The HT Operation Information ElementThis class knows how to serialise and deserialise the HT Operatio...
Definition: ht-operation.h:52
CategoryValue
CategoryValue enumeration.
Definition: mgt-headers.h:882
VhtOperation m_vhtOperation
VHT operation.
Definition: mgt-headers.h:834
HtCapabilities GetHtCapabilities(void) const
Return the HT capabilities.
Definition: mgt-headers.cc:76
uint16_t GetBufferSize(void) const
Return the buffer size.
HtOperation GetHtOperation(void) const
Return the HT operation.
Definition: mgt-headers.cc:262
CategoryValue GetCategory()
Return the category value.
HeCapabilities GetHeCapabilities(void) const
Return the HE capabilities.
Definition: mgt-headers.cc:100
void SetDelayedBlockAck()
Enable delayed BlockAck.
ns3::Time timeout
ExtendedCapabilities m_extendedCapability
extended capabilities
Definition: mgt-headers.h:830
void Print(std::ostream &os) const
HeCapabilities m_heCapability
HE capabilities.
Definition: mgt-headers.h:309
CapabilityInformation GetCapabilities(void) const
Return the Capability information.
Definition: mgt-headers.cc:741
void SetStatusCode(StatusCode code)
Set the status code.
The Supported Rates Information ElementThis class knows how to serialise and deserialise the Supporte...
CapabilityInformation m_capability
Capability information.
Definition: mgt-headers.h:167
uint16_t GetTimeout(void) const
Return the timeout.
uint16_t m_bufferSize
Buffer size.
Definition: mgt-headers.h:1125
ErpInformation m_erpInformation
ERP information.
Definition: mgt-headers.h:503
void SetTimeout(uint16_t timeout)
Set timeout.
ExtendedCapabilities GetExtendedCapabilities(void) const
Return the extended capabilities.
Definition: mgt-headers.cc:566
Capability information.
void SetSupportedRates(SupportedRates rates)
Set the supported rates.
Definition: mgt-headers.cc:52
void SetAmsduSupport(bool supported)
Enable or disable A-MSDU support.
iterator in a Buffer instance
Definition: buffer.h:98
HeOperation GetHeOperation(void) const
Return the HE operation.
void SetSupportedRates(SupportedRates rates)
Set the supported rates.
Definition: mgt-headers.cc:536
uint32_t GetSerializedSize(void) const
Definition: mgt-headers.cc:399
void SetDsssParameterSet(DsssParameterSet dsssParameterSet)
Set the DSSS Parameter Set.
Definition: mgt-headers.cc:346
Mac48Address m_currentApAddr
Address of the current access point.
Definition: mgt-headers.h:302
uint16_t GetParameterSet(void) const
Return the raw parameter set.
TypeId GetInstanceTypeId(void) const
Get the most derived TypeId for this Object.
Definition: mgt-headers.cc:137
TypeId GetInstanceTypeId(void) const
Get the most derived TypeId for this Object.
uint16_t m_reasonCode
Not used for now.
Definition: mgt-headers.h:1318
void Serialize(Buffer::Iterator start) const
void SetTid(uint8_t tid)
Set Traffic ID (TID).
uint8_t GetTid(void) const
Return the Traffic ID (TID).
void SetListenInterval(uint16_t interval)
Set the listen interval.
Definition: mgt-headers.cc:542
static TypeId GetTypeId(void)
Register this type.
void SetHeCapabilities(HeCapabilities heCapabilities)
Set the HE capabilities.
Definition: mgt-headers.cc:292
uint8_t m_amsduSupport
Flag if A-MSDU is supported.
Definition: mgt-headers.h:1244
bool IsByOriginator(void) const
Check if the initiator bit in the DELBA is set.
void SetErpInformation(ErpInformation erpInformation)
Set the ERP information.
Definition: mgt-headers.cc:358
EdcaParameterSet GetEdcaParameterSet(void) const
Return the EDCA Parameter Set.
Definition: mgt-headers.cc:376
uint32_t GetSerializedSize() const
uint16_t m_initiator
initiator
Definition: mgt-headers.h:1316
bool IsImmediateBlockAck(void) const
Return whether the Block Ack policy is immediate Block Ack.
std::string CategoryValueToString(CategoryValue value) const
Category value to string function.
void SetParameterSet(uint16_t params)
Set the parameter set from the given raw value.
VhtCapabilities GetVhtCapabilities(void) const
Return the VHT capabilities.
Definition: mgt-headers.cc:590
ExtendedCapabilities m_extendedCapability
Extended capabilities.
Definition: mgt-headers.h:168
uint8_t m_tid
Traffic ID.
Definition: mgt-headers.h:1124
ErpInformation GetErpInformation(void) const
Return the ERP information.
Definition: mgt-headers.cc:364
SupportedRates m_rates
List of supported rates.
Definition: mgt-headers.h:606
void SetHtCapabilities(HtCapabilities htCapabilities)
Set the HT capabilities.
Definition: mgt-headers.cc:962
void SetHeOperation(HeOperation heOperation)
Set the HE operation.
Definition: mgt-headers.cc:304
Ssid GetSsid(void) const
Return the Service Set Identifier (SSID).
Definition: mgt-headers.cc:795
The IEEE 802.11ac VHT Capabilities.
void SetStartingSequenceControl(uint16_t seqControl)
Set sequence control with the given raw value.
CfParameterSet GetCfParameterSet(void) const
Return the CF parameter set.
Definition: mgt-headers.cc:322
void SetErpInformation(ErpInformation erpInformation)
Set the ERP information.
void Print(std::ostream &os) const
void SetImmediateBlockAck()
Enable immediate BlockAck.
TypeId GetInstanceTypeId() const
Get the most derived TypeId for this Object.
void SetExtendedCapabilities(ExtendedCapabilities extendedCapabilities)
Set the extended capabilities.
Definition: mgt-headers.cc:58
void SetHeOperation(HeOperation heOperation)
Set the HE operation.
void SetTid(uint8_t tid)
Set Traffic ID (TID).
void SetParameterSet(uint16_t params)
Set the parameter set from the given raw value.
ssid
Definition: third.py:100
SupportedRates GetSupportedRates(void) const
Return the supported rates.
Definition: mgt-headers.cc:214
HeCapabilities m_heCapability
HE capabilities.
Definition: mgt-headers.h:505
SupportedRates GetSupportedRates(void) const
Return the supported rates.
Definition: mgt-headers.cc:614
The CF Parameter SetThis class knows how to serialise and deserialise the CF Parameter Set...
uint32_t Deserialize(Buffer::Iterator start)
Definition: mgt-headers.cc:167
MeshActionValue meshAction
mesh action
Definition: mgt-headers.h:943
HtOperation GetHtOperation(void) const
Return the HT operation.
Definition: mgt-headers.cc:980
ExtendedCapabilities m_extendedCapability
extended capabilities
Definition: mgt-headers.h:607
void SetVhtCapabilities(VhtCapabilities vhtCapabilities)
Set the VHT capabilities.
Definition: mgt-headers.cc:584
uint8_t m_amsduSupport
Flag if A-MSDU is supported.
Definition: mgt-headers.h:1122
void SetVhtOperation(VhtOperation vhtOperation)
Set the VHT operation.
Definition: mgt-headers.cc:280
HeOperation m_heOperation
HE operation.
Definition: mgt-headers.h:506
VhtOperation m_vhtOperation
VHT operation.
Definition: mgt-headers.h:502
void SetStartingSequence(uint16_t seq)
Set the starting sequence number.
CfParameterSet m_cfParameterSet
CF parameter set.
Definition: mgt-headers.h:839
void Serialize(Buffer::Iterator start) const
void SetCfParameterSet(CfParameterSet cfParameterSet)
Set the CF parameter set.
Definition: mgt-headers.cc:316
ExtendedCapabilities GetExtendedCapabilities(void) const
Return the extended capabilities.
Definition: mgt-headers.cc:238
void Serialize(Buffer::Iterator start) const
Definition: mgt-headers.cc:865
VhtCapabilities GetVhtCapabilities(void) const
Return the VHT capabilities.
Definition: mgt-headers.cc:88
void SetVhtCapabilities(VhtCapabilities vhtCapabilities)
Set the VHT capabilities.
Definition: mgt-headers.cc:771
void SetExtendedCapabilities(ExtendedCapabilities extendedCapabilities)
Set the extended capabilities.
Definition: mgt-headers.cc:232
void SetHtOperation(HtOperation htOperation)
Set the HT operation.
Definition: mgt-headers.cc:256
ErpInformation m_erpInformation
ERP information.
Definition: mgt-headers.h:837
void SetEdcaParameterSet(EdcaParameterSet edcaParameterSet)
Set the EDCA Parameter Set.
Definition: mgt-headers.cc:370
uint32_t GetSerializedSize(void) const
uint64_t GetBeaconIntervalUs(void) const
Return the beacon interval in microseconds unit.
Definition: mgt-headers.cc:208
void Serialize(Buffer::Iterator start) const
DsssParameterSet GetDsssParameterSet(void) const
Return the DSSS Parameter Set.
Definition: mgt-headers.cc:352
SupportedRates GetSupportedRates(void)
Return the supported rates.
Definition: mgt-headers.cc:920
EdcaParameterSet GetEdcaParameterSet(void) const
Return the EDCA Parameter Set.
ErpInformation GetErpInformation(void) const
Return the ERP information.
uint64_t m_timestamp
Timestamp.
Definition: mgt-headers.h:824
EdcaParameterSet m_edcaParameterSet
EDCA Parameter Set.
Definition: mgt-headers.h:838
uint16_t m_listenInterval
listen interval
Definition: mgt-headers.h:172
uint64_t GetTimestamp()
Return the time stamp.
Definition: mgt-headers.cc:196
ExtendedCapabilities GetExtendedCapabilities(void) const
Return the extended capabilities.
Definition: mgt-headers.cc:64
void SetByOriginator(void)
Set the initiator bit in the DELBA.
void Print(std::ostream &os) const
Definition: mgt-headers.cc:659
void Print(std::ostream &os) const
Status code for association response.
Definition: status-code.h:31
void SetSsid(Ssid ssid)
Set the Service Set Identifier (SSID).
Definition: mgt-headers.cc:328
HeCapabilities GetHeCapabilities(void) const
Return the HE capabilities.
Definition: mgt-headers.cc:602
void SetByRecipient(void)
Un-set the initiator bit in the DELBA.
static TypeId GetTypeId(void)
Register this type.
VhtCapabilities m_vhtCapability
VHT capabilities.
Definition: mgt-headers.h:833
Every class exported by the ns3 library is enclosed in the ns3 namespace.
HtCapabilities GetHtCapabilities(void) const
Return the HT capabilities.
Definition: mgt-headers.cc:250
StatusCode GetStatusCode(void) const
Return the status code.
void SetBeaconIntervalUs(uint64_t us)
Set the beacon interval in microseconds unit.
Definition: mgt-headers.cc:334
The EDCA Parameter SetThis class knows how to serialise and deserialise the EDCA Parameter Set...
void Print(std::ostream &os) const
Definition: mgt-headers.cc:143
BlockAckActionValue
Block Ack Action field values See 802.11 Table 8-202.
Definition: mgt-headers.h:930
static TypeId GetTypeId(void)
Register this type.
Definition: mgt-headers.cc:382
TypeId GetInstanceTypeId(void) const
Get the most derived TypeId for this Object.
Definition: mgt-headers.cc:830
void SetBufferSize(uint16_t size)
Set buffer size.
CapabilityInformation GetCapabilities(void) const
Return the Capability information.
Definition: mgt-headers.cc:554
uint32_t Deserialize(Buffer::Iterator start)
an EUI-48 address
Definition: mac48-address.h:43
VhtCapabilities m_vhtCapability
VHT capabilities.
Definition: mgt-headers.h:170
void SetExtendedCapabilities(ExtendedCapabilities extendedCapabilities)
Set the Extended Capabilities.
Definition: mgt-headers.cc:747
HtCapabilities m_htCapability
HT capabilities.
Definition: mgt-headers.h:831
void SetTid(uint8_t tid)
Set Traffic ID (TID).
uint32_t Deserialize(Buffer::Iterator start)
Definition: mgt-headers.cc:470
Ssid GetSsid(void) const
Return the Service Set Identifier (SSID).
Definition: mgt-headers.cc:202
static TypeId GetTypeId(void)
Register this type.
Definition: mgt-headers.cc:503
uint32_t Deserialize(Buffer::Iterator start)
Definition: mgt-headers.cc:881
MeshActionValue
MeshActionValue enumeration.
Definition: mgt-headers.h:911
uint8_t m_tid
Traffic ID.
Definition: mgt-headers.h:1246
uint8_t m_actionValue
Action value.
Definition: mgt-headers.h:995
The IEEE 802.11 SSID Information Element.
Definition: ssid.h:35
void SetVhtCapabilities(VhtCapabilities vhtCapabilities)
Set the VHT capabilities.
Definition: mgt-headers.cc:268
void SetVhtOperation(VhtOperation vhtOperation)
Set the VHT operation.
Definition: mgt-headers.cc:998
uint16_t GetParameterSet(void) const
Return the raw parameter set.
Implement the header for management frames of type probe request.
Definition: mgt-headers.h:514
void SetHtOperation(HtOperation htOperation)
Set the HT operation.
Definition: mgt-headers.cc:974
void SetExtendedCapabilities(ExtendedCapabilities extendedCapabilities)
Set the Extended Capabilities.
Definition: mgt-headers.cc:560
Implement the header for management frames of type association and reassociation response.
Definition: mgt-headers.h:318
uint8_t GetTid(void) const
Return the Traffic ID (TID).
ExtendedCapabilities GetExtendedCapabilities(void) const
Return the extended capabilities.
Definition: mgt-headers.cc:956
uint32_t Deserialize(Buffer::Iterator start)
StatusCode m_code
Status code.
Definition: mgt-headers.h:496
MultihopActionValue
MultihopActionValue enumeration.
Definition: mgt-headers.h:904
The DSSS Parameter SetThis class knows how to serialise and deserialise the DSSS Parameter Set...
SelfProtectedActionValue selfProtectedAction
self protected action
Definition: mgt-headers.h:945
ExtendedCapabilities m_extendedCapability
extended capabilities
Definition: mgt-headers.h:498
void SetCapabilities(CapabilityInformation capabilities)
Set the Capability information.
Definition: mgt-headers.cc:938
void SetEdcaParameterSet(EdcaParameterSet edcaParameterSet)
Set the EDCA Parameter Set.
uint16_t m_tid
Traffic ID.
Definition: mgt-headers.h:1317
static TypeId GetTypeId(void)
Register this type.
HtOperation m_htOperation
HT operation.
Definition: mgt-headers.h:832
void SetHtCapabilities(HtCapabilities htCapabilities)
Set the HT capabilities.
Definition: mgt-headers.cc:70
ExtendedCapabilities m_extendedCapability
Extended capabilities.
Definition: mgt-headers.h:306
void SetCurrentApAddress(Mac48Address currentApAddr)
Set the address of the current access point.
Definition: mgt-headers.cc:813
void SetExtendedCapabilities(ExtendedCapabilities extendedCapabilities)
Set the extended capabilities.
Definition: mgt-headers.cc:950
Ssid GetSsid(void) const
Return the Service Set Identifier (SSID).
Definition: mgt-headers.cc:46
void Print(std::ostream &os) const
BlockAckActionValue blockAck
block ack
Definition: mgt-headers.h:946
bool IsAmsduSupported(void) const
Return whether A-MSDU capability is supported.
static TypeId GetTypeId(void)
Register this type.
void SetSupportedRates(SupportedRates rates)
Set the supported rates.
Definition: mgt-headers.cc:932
uint8_t m_dialogToken
Not used for now.
Definition: mgt-headers.h:1242
uint16_t m_listenInterval
listen interval
Definition: mgt-headers.h:310
HeCapabilities GetHeCapabilities(void) const
Return the HE capabilities.
MultihopActionValue multihopAction
multi hop action
Definition: mgt-headers.h:944
Implement the header for management frames of type Add Block Ack response.
Definition: mgt-headers.h:1135
Implement the header for management frames of type Delete Block Ack.
Definition: mgt-headers.h:1256
HeOperation GetHeOperation(void) const
Return the HE operation.
Definition: mgt-headers.cc:310
std::string SelfProtectedActionValueToString(SelfProtectedActionValue value) const
Self protected action value to string function.
VhtCapabilities GetVhtCapabilities(void) const
Return the VHT capabilities.
Definition: mgt-headers.cc:777
HtCapabilities GetHtCapabilities(void) const
Return the HT capabilities.
Definition: mgt-headers.cc:968
typedef for union of different ActionValues
Definition: mgt-headers.h:941
EdcaParameterSet m_edcaParameterSet
EDCA Parameter Set.
Definition: mgt-headers.h:504
TypeId GetInstanceTypeId(void) const
Get the most derived TypeId for this Object.
HeCapabilities m_heCapability
HE capabilities.
Definition: mgt-headers.h:835
void Serialize(Buffer::Iterator start) const
Definition: mgt-headers.cc:154
HtCapabilities m_htCapability
HT capabilities.
Definition: mgt-headers.h:307
VhtOperation GetVhtOperation(void) const
Return the VHT operation.
Definition: mgt-headers.cc:286
VhtCapabilities GetVhtCapabilities(void) const
Return the VHT capabilities.
Definition: mgt-headers.cc:992
void Serialize(Buffer::Iterator start) const
Definition: mgt-headers.cc:670
uint8_t m_policy
Block Ack policy.
Definition: mgt-headers.h:1123
HtCapabilities m_htCapability
HT capabilities.
Definition: mgt-headers.h:499
void SetSupportedRates(SupportedRates rates)
Set the supported rates.
Definition: mgt-headers.cc:340
Ssid m_ssid
Service Set ID (SSID)
Definition: mgt-headers.h:605
void SetHeCapabilities(HeCapabilities heCapabilities)
Set the HE capabilities.
Definition: mgt-headers.cc:596
TypeId GetInstanceTypeId(void) const
Get the most derived TypeId for this Object.
uint16_t GetStartingSequence(void) const
Return the starting sequence number.
void Serialize(Buffer::Iterator start) const
void SetHeCapabilities(HeCapabilities heCapabilities)
Set the HE capabilities.
Definition: mgt-headers.cc:94
The ErpInformation Information ElementThis class knows how to serialise and deserialise the ErpInform...
void SetSsid(Ssid ssid)
Set the Service Set Identifier (SSID).
Definition: mgt-headers.cc:40
void SetHtCapabilities(HtCapabilities htCapabilities)
Set the HT capabilities.
Definition: mgt-headers.cc:572
void SetStatusCode(StatusCode code)
Set the status code.
Definition: mgt-headers.cc:926
void Print(std::ostream &os) const
Definition: mgt-headers.cc:853
void SetHtCapabilities(HtCapabilities htCapabilities)
Set the HT capabilities.
Definition: mgt-headers.cc:244
CapabilityInformation GetCapabilities(void) const
Return the Capability information.
Definition: mgt-headers.cc:226
void SetParameterSet(uint16_t params)
Set the parameter set from the given raw value.
uint32_t GetSerializedSize(void) const
Definition: mgt-headers.cc:112
void SetAmsduSupport(bool supported)
Enable or disable A-MSDU support.
uint8_t GetTid(void) const
Return the Traffic ID (TID).
HtOperation m_htOperation
HT operation.
Definition: mgt-headers.h:500
HtCapabilities GetHtCapabilities(void) const
Return the HT capabilities.
Definition: mgt-headers.cc:578
void SetCapabilities(CapabilityInformation capabilities)
Set the Capability information.
Definition: mgt-headers.cc:735
uint8_t m_category
Category of the action.
Definition: mgt-headers.h:994
void SetDelayedBlockAck()
Enable delayed BlockAck.
uint32_t Deserialize(Buffer::Iterator start)
Definition: mgt-headers.cc:685
void SetTimeout(uint16_t timeout)
Set timeout.
The HE Operation Information ElementThis class knows how to serialise and deserialise the HE Operatio...
Definition: he-operation.h:37
void Serialize(Buffer::Iterator start) const
Definition: mgt-headers.cc:438
Implement the header for management frames of type probe response.
Definition: mgt-headers.h:618
VhtCapabilities m_vhtCapability
VHT capabilities.
Definition: mgt-headers.h:501
ActionValue GetAction()
Return the action value.
SelfProtectedActionValue
SelfProtectedActionValue enumeration.
Definition: mgt-headers.h:894
SupportedRates m_rates
List of supported rates.
Definition: mgt-headers.h:304
uint16_t m_bufferSize
Buffer size.
Definition: mgt-headers.h:1247
uint64_t m_beaconInterval
Beacon interval.
Definition: mgt-headers.h:826
The IEEE 802.11ax HE Capabilities.
uint16_t GetListenInterval(void) const
Return the listen interval.
Definition: mgt-headers.cc:807
HeCapabilities m_heCapability
HE capabilities.
Definition: mgt-headers.h:171
uint32_t GetSerializedSize(void) const
Definition: mgt-headers.cc:643
uint16_t m_timeoutValue
Timeout.
Definition: mgt-headers.h:1248
Ssid m_ssid
Service Set ID (SSID)
Definition: mgt-headers.h:165
void SetAction(CategoryValue type, ActionValue action)
Set action for this Action header.
a unique identifier for an interface.
Definition: type-id.h:58
bool IsImmediateBlockAck(void) const
Return whether the Block Ack policy is immediate Block Ack.
uint32_t GetSerializedSize(void) const
void Serialize(Buffer::Iterator start) const
Implement the header for management frames of type beacon.
Definition: mgt-headers.h:847
Ssid GetSsid(void) const
Return the Service Set Identifier (SSID).
Definition: mgt-headers.cc:608
TypeId GetInstanceTypeId(void) const
Get the most derived TypeId for this Object.
Definition: mgt-headers.cc:393
Implement the header for management frames of type reassociation request.
Definition: mgt-headers.h:180
void Print(std::ostream &os) const
uint32_t Deserialize(Buffer::Iterator start)
StatusCode GetStatusCode(void)
Return the status code.
Definition: mgt-headers.cc:914
CapabilityInformation m_capability
Capability information.
Definition: mgt-headers.h:305
HtCapabilities GetHtCapabilities(void) const
Return the HT capabilities.
Definition: mgt-headers.cc:765
VhtCapabilities GetVhtCapabilities(void) const
Return the VHT capabilities.
Definition: mgt-headers.cc:274
Ssid m_ssid
Service set ID (SSID)
Definition: mgt-headers.h:825
void SetHtCapabilities(HtCapabilities htCapabilities)
Set the HT capabilities.
Definition: mgt-headers.cc:759
HeOperation m_heOperation
HE operation.
Definition: mgt-headers.h:836
uint32_t Deserialize(Buffer::Iterator start)
uint16_t GetAssociationId(void) const
Return the association ID.
HeCapabilities GetHeCapabilities(void) const
Return the HE capabilities.
Definition: mgt-headers.cc:298
uint16_t GetListenInterval(void) const
Return the listen interval.
Definition: mgt-headers.cc:620
uint32_t GetSerializedSize(void) const