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  ErpInformation GetErpInformation (void) const;
401  void SetCapabilities (CapabilityInformation capabilities);
407  void SetExtendedCapabilities (ExtendedCapabilities extendedcapabilities);
413  void SetVhtOperation (VhtOperation vhtoperation);
419  void SetVhtCapabilities (VhtCapabilities vhtcapabilities);
425  void SetHtCapabilities (HtCapabilities htcapabilities);
431  void SetHtOperation (HtOperation htoperation);
437  void SetSupportedRates (SupportedRates rates);
443  void SetStatusCode (StatusCode code);
449  void SetAssociationId (uint16_t aid);
455  void SetErpInformation (ErpInformation erpInformation);
461  void SetEdcaParameterSet (EdcaParameterSet edcaParameterSet);
467  void SetHeCapabilities (HeCapabilities hecapabilities);
473  void SetHeOperation (HeOperation heoperation);
474 
479  static TypeId GetTypeId (void);
480  TypeId GetInstanceTypeId (void) const;
481  void Print (std::ostream &os) const;
482  uint32_t GetSerializedSize (void) const;
483  void Serialize (Buffer::Iterator start) const;
485 
486 
487 private:
491  uint16_t m_aid;
501 };
502 
503 
509 {
510 public:
512 
518  void SetSsid (Ssid ssid);
524  void SetSupportedRates (SupportedRates rates);
530  void SetExtendedCapabilities (ExtendedCapabilities extendedcapabilities);
536  void SetHtCapabilities (HtCapabilities htcapabilities);
542  void SetVhtCapabilities (VhtCapabilities vhtcapabilities);
548  void SetHeCapabilities (HeCapabilities hecapabilities);
554  Ssid GetSsid (void) const;
560  SupportedRates GetSupportedRates (void) const;
572  HtCapabilities GetHtCapabilities (void) const;
578  VhtCapabilities GetVhtCapabilities (void) const;
584  HeCapabilities GetHeCapabilities (void) const;
585 
590  static TypeId GetTypeId (void);
591  TypeId GetInstanceTypeId (void) const;
592  void Print (std::ostream &os) const;
593  uint32_t GetSerializedSize (void) const;
594  void Serialize (Buffer::Iterator start) const;
596 
597 
598 private:
605 };
606 
607 
613 {
614 public:
617 
623  Ssid GetSsid (void) const;
629  uint64_t GetBeaconIntervalUs (void) const;
635  SupportedRates GetSupportedRates (void) const;
659  HtCapabilities GetHtCapabilities (void) const;
665  HtOperation GetHtOperation (void) const;
671  VhtCapabilities GetVhtCapabilities (void) const;
677  VhtOperation GetVhtOperation (void) const;
683  HeCapabilities GetHeCapabilities (void) const;
689  HeOperation GetHeOperation (void) const;
695  ErpInformation GetErpInformation (void) const;
707  CfParameterSet GetCfParameterSet (void) const;
713  void SetCapabilities (CapabilityInformation capabilities);
719  void SetExtendedCapabilities (ExtendedCapabilities extendedcapabilities);
725  void SetHtCapabilities (HtCapabilities htcapabilities);
731  void SetHtOperation (HtOperation htoperation);
737  void SetVhtCapabilities (VhtCapabilities vhtcapabilities);
743  void SetVhtOperation (VhtOperation vhtoperation);
749  void SetHeCapabilities (HeCapabilities hecapabilities);
755  void SetHeOperation (HeOperation heoperation);
761  void SetSsid (Ssid ssid);
767  void SetBeaconIntervalUs (uint64_t us);
773  void SetSupportedRates (SupportedRates rates);
779  void SetDsssParameterSet (DsssParameterSet dsssParameterSet);
785  void SetErpInformation (ErpInformation erpInformation);
791  void SetEdcaParameterSet (EdcaParameterSet edcaParameterSet);
797  void SetCfParameterSet (CfParameterSet cfparameterset);
803  uint64_t GetTimestamp ();
804 
809  static TypeId GetTypeId (void);
810  TypeId GetInstanceTypeId (void) const;
811  void Print (std::ostream &os) const;
812  uint32_t GetSerializedSize (void) const;
813  void Serialize (Buffer::Iterator start) const;
815 
816 
817 private:
818  uint64_t m_timestamp;
820  uint64_t m_beaconInterval;
834 };
835 
836 
842 {
843 public:
849  static TypeId GetTypeId (void);
850 };
851 
852 
853 /****************************
854 * Action frames
855 *****************************/
856 
864 class WifiActionHeader : public Header
865 {
866 public:
867  WifiActionHeader ();
869 
870  /*
871  * Compatible with table 8-38 IEEE 802.11, Part11, (Year 2012)
872  * Category values - see 802.11-2012 Table 8-38
873  */
874 
876  enum CategoryValue //table 8-38 staring from IEEE 802.11, Part11, (Year 2012)
877  {
879  MESH = 13, //Category: Mesh
880  MULTIHOP = 14, //not used so far
881  SELF_PROTECTED = 15, //Category: Self Protected
882  //Since vendor specific action has no stationary Action value,the parse process is not here.
883  //Refer to vendor-specific-action in wave module.
885  };
886 
888  enum SelfProtectedActionValue //Category: 15 (Self Protected)
889  {
890  PEER_LINK_OPEN = 1, //Mesh Peering Open
891  PEER_LINK_CONFIRM = 2, //Mesh Peering Confirm
892  PEER_LINK_CLOSE = 3, //Mesh Peering Close
893  GROUP_KEY_INFORM = 4, //Mesh Group Key Inform
894  GROUP_KEY_ACK = 5, //Mesh Group Key Acknowledge
895  };
896 
899  {
900  PROXY_UPDATE = 0, //not used so far
901  PROXY_UPDATE_CONFIRMATION = 1, //not used so far
902  };
903 
906  {
907  LINK_METRIC_REPORT = 0, //Action Value:0 in Category 13: Mesh
908  PATH_SELECTION = 1, //Action Value:1 in Category 13: Mesh
909  PORTAL_ANNOUNCEMENT = 2, //Action Value:2 in Category 13: Mesh
910  CONGESTION_CONTROL_NOTIFICATION = 3, //Action Value:3 in Category 13: Mesh
911  MDA_SETUP_REQUEST = 4, //Action Value:4 in Category 13: Mesh MCCA-Setup-Request (not used so far)
912  MDA_SETUP_REPLY = 5, //Action Value:5 in Category 13: Mesh MCCA-Setup-Reply (not used so far)
913  MDAOP_ADVERTISMENT_REQUEST = 6, //Action Value:6 in Category 13: Mesh MCCA-Advertisement-Request (not used so far)
914  MDAOP_ADVERTISMENTS = 7, //Action Value:7 in Category 13: Mesh (not used so far)
915  MDAOP_SET_TEARDOWN = 8, //Action Value:8 in Category 13: Mesh (not used so far)
916  TBTT_ADJUSTMENT_REQUEST = 9, //Action Value:9 in Category 13: Mesh (not used so far)
917  TBTT_ADJUSTMENT_RESPONSE = 10, //Action Value:10 in Category 13: Mesh (not used so far)
918  };
919 
925  {
929  };
930 
931 
935  typedef union
936  {
941  } ActionValue;
942 
948  void SetAction (CategoryValue type, ActionValue action);
949 
962 
967  static TypeId GetTypeId (void);
968  TypeId GetInstanceTypeId () const;
969  void Print (std::ostream &os) const;
970  uint32_t GetSerializedSize () const;
971  void Serialize (Buffer::Iterator start) const;
973 
974 
975 private:
981  std::string CategoryValueToString (CategoryValue value) const;
988  uint8_t m_category;
989  uint8_t m_actionValue;
990 };
991 
992 
998 {
999 public:
1001 
1006  static TypeId GetTypeId (void);
1007  TypeId GetInstanceTypeId (void) const;
1008  void Print (std::ostream &os) const;
1009  uint32_t GetSerializedSize (void) const;
1010  void Serialize (Buffer::Iterator start) const;
1011  uint32_t Deserialize (Buffer::Iterator start);
1012 
1016  void SetDelayedBlockAck ();
1020  void SetImmediateBlockAck ();
1026  void SetTid (uint8_t tid);
1032  void SetTimeout (uint16_t timeout);
1038  void SetBufferSize (uint16_t size);
1044  void SetStartingSequence (uint16_t seq);
1050  void SetAmsduSupport (bool supported);
1051 
1057  uint16_t GetStartingSequence (void) const;
1063  uint8_t GetTid (void) const;
1069  bool IsImmediateBlockAck (void) const;
1075  uint16_t GetTimeout (void) const;
1081  uint16_t GetBufferSize (void) const;
1087  bool IsAmsduSupported (void) const;
1088 
1089 private:
1095  uint16_t GetParameterSet (void) const;
1101  void SetParameterSet (uint16_t params);
1107  uint16_t GetStartingSequenceControl (void) const;
1113  void SetStartingSequenceControl (uint16_t seqControl);
1114 
1115  uint8_t m_dialogToken;
1116  uint8_t m_amsduSupport;
1117  uint8_t m_policy;
1118  uint8_t m_tid;
1119  uint16_t m_bufferSize;
1120  uint16_t m_timeoutValue;
1121  uint16_t m_startingSeq;
1122 };
1123 
1124 
1130 {
1131 public:
1133 
1138  static TypeId GetTypeId (void);
1139  TypeId GetInstanceTypeId (void) const;
1140  void Print (std::ostream &os) const;
1141  uint32_t GetSerializedSize (void) const;
1142  void Serialize (Buffer::Iterator start) const;
1143  uint32_t Deserialize (Buffer::Iterator start);
1144 
1148  void SetDelayedBlockAck ();
1152  void SetImmediateBlockAck ();
1158  void SetTid (uint8_t tid);
1164  void SetTimeout (uint16_t timeout);
1170  void SetBufferSize (uint16_t size);
1176  void SetStatusCode (StatusCode code);
1182  void SetAmsduSupport (bool supported);
1183 
1189  StatusCode GetStatusCode (void) const;
1195  uint8_t GetTid (void) const;
1201  bool IsImmediateBlockAck (void) const;
1207  uint16_t GetTimeout (void) const;
1213  uint16_t GetBufferSize (void) const;
1219  bool IsAmsduSupported (void) const;
1220 
1221 
1222 private:
1228  uint16_t GetParameterSet (void) const;
1234  void SetParameterSet (uint16_t params);
1235 
1236  uint8_t m_dialogToken;
1238  uint8_t m_amsduSupport;
1239  uint8_t m_policy;
1240  uint8_t m_tid;
1241  uint16_t m_bufferSize;
1242  uint16_t m_timeoutValue;
1243 };
1244 
1245 
1250 class MgtDelBaHeader : public Header
1251 {
1252 public:
1253  MgtDelBaHeader ();
1254 
1259  static TypeId GetTypeId (void);
1260  // Inherited
1261  TypeId GetInstanceTypeId (void) const;
1262  void Print (std::ostream &os) const;
1263  uint32_t GetSerializedSize (void) const;
1264  void Serialize (Buffer::Iterator start) const;
1265  uint32_t Deserialize (Buffer::Iterator start);
1266 
1273  bool IsByOriginator (void) const;
1279  uint8_t GetTid (void) const;
1285  void SetTid (uint8_t tid);
1289  void SetByOriginator (void);
1293  void SetByRecipient (void);
1294 
1295 
1296 private:
1302  uint16_t GetParameterSet (void) const;
1308  void SetParameterSet (uint16_t params);
1309 
1310  uint16_t m_initiator;
1311  uint16_t m_tid;
1312  uint16_t m_reasonCode;
1313 };
1314 
1315 } //namespace ns3
1316 
1317 #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:729
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:807
TypeId GetInstanceTypeId(void) const
Get the most derived TypeId for this Object.
Definition: mgt-headers.cc:643
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:1237
uint16_t GetTimeout(void) const
Return the timeout.
void SetHeCapabilities(HeCapabilities hecapabilities)
Set the HE capabilities.
Definition: mgt-headers.cc:100
ExtendedCapabilities GetExtendedCapabilities(void) const
Return the extended capabilities.
Definition: mgt-headers.cc:759
Implement the header for management frames of type association request.
Definition: mgt-headers.h:49
DsssParameterSet m_dsssParameterSet
DSSS Parameter Set.
Definition: mgt-headers.h:823
void SetCapabilities(CapabilityInformation capabilities)
Set the Capability information.
Definition: mgt-headers.cc:554
uint8_t m_policy
Block ACK policy.
Definition: mgt-headers.h:1239
void Print(std::ostream &os) const
Definition: mgt-headers.cc:429
Ssid m_ssid
Service Set ID (SSID)
Definition: mgt-headers.h:303
uint32_t GetSerializedSize(void) const
Definition: mgt-headers.cc:842
SupportedRates m_rates
List of supported rates.
Definition: mgt-headers.h:488
static TypeId GetTypeId(void)
Register this type.
Definition: mgt-headers.cc:632
uint32_t GetSerializedSize(void) const
uint16_t m_timeoutValue
Timeout.
Definition: mgt-headers.h:1120
CapabilityInformation GetCapabilities(void) const
Return the Capability information.
Definition: mgt-headers.cc:950
See IEEE 802.11 chapter 7.3.1.11 Header format: | category: 1 | action value: 1 |.
Definition: mgt-headers.h:864
SupportedRates GetSupportedRates(void) const
Return the supported rates.
Definition: mgt-headers.cc:112
HtCapabilities m_htCapability
HT capabilities.
Definition: mgt-headers.h:602
SupportedRates m_rates
List of supported rates.
Definition: mgt-headers.h:166
static TypeId GetTypeId(void)
Register this type.
Definition: mgt-headers.cc:132
void SetImmediateBlockAck()
Enable immediate Block ACK.
bool IsAmsduSupported(void) const
Return whether A-MSDU capability is supported.
SupportedRates m_rates
List of supported rates.
Definition: mgt-headers.h:821
static TypeId GetTypeId(void)
Register this type.
Definition: mgt-headers.cc:825
VhtCapabilities m_vhtCapability
VHT capabilities.
Definition: mgt-headers.h:308
uint8_t m_dialogToken
Not used for now.
Definition: mgt-headers.h:1115
def start()
Definition: core.py:1844
CapabilityInformation m_capability
Capability information.
Definition: mgt-headers.h:489
CapabilityInformation m_capability
Capability information.
Definition: mgt-headers.h:822
void SetBufferSize(uint16_t size)
Set buffer size.
Implement the header for management frames of type add block ack request.
Definition: mgt-headers.h:997
void SetAssociationId(uint16_t aid)
Set the association ID.
Definition: mgt-headers.cc:52
HtCapabilities m_htCapability
HT capabilities.
Definition: mgt-headers.h:169
HeCapabilities m_heCapability
HE capabilities.
Definition: mgt-headers.h:604
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:603
uint16_t GetStartingSequenceControl(void) const
Return the raw sequence control.
void SetListenInterval(uint16_t interval)
Set the listen interval.
Definition: mgt-headers.cc:735
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 SetHtCapabilities(HtCapabilities htcapabilities)
Set the HT capabilities.
Definition: mgt-headers.cc:578
void SetCapabilities(CapabilityInformation capabilities)
Set the Capability information.
Definition: mgt-headers.cc:226
void SetSsid(Ssid ssid)
Set the Service Set Identifier (SSID).
Definition: mgt-headers.cc:536
void SetSsid(Ssid ssid)
Set the Service Set Identifier (SSID).
Definition: mgt-headers.cc:723
HeCapabilities GetHeCapabilities(void) const
Return the HE capabilities.
Definition: mgt-headers.cc:795
VhtOperation GetVhtOperation(void) const
Return the VHT operation.
void SetExtendedCapabilities(ExtendedCapabilities extendedcapabilities)
Set the extended capabilities.
Definition: mgt-headers.cc:64
uint16_t m_startingSeq
Starting sequence number.
Definition: mgt-headers.h:1121
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:876
VhtOperation m_vhtOperation
VHT operation.
Definition: mgt-headers.h:828
HtCapabilities GetHtCapabilities(void) const
Return the HT capabilities.
Definition: mgt-headers.cc:82
uint16_t GetBufferSize(void) const
Return the buffer size.
HtOperation GetHtOperation(void) const
Return the HT operation.
Definition: mgt-headers.cc:268
CategoryValue GetCategory()
Return the category value.
void SetVhtOperation(VhtOperation vhtoperation)
Set the VHT operation.
HeCapabilities GetHeCapabilities(void) const
Return the HE capabilities.
Definition: mgt-headers.cc:106
void SetDelayedBlockAck()
Enable delayed Block ACK.
ns3::Time timeout
ExtendedCapabilities m_extendedCapability
extended capabilities
Definition: mgt-headers.h:824
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:747
void SetHeCapabilities(HeCapabilities hecapabilities)
Set the HE capabilities.
Definition: mgt-headers.cc:602
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.
void SetHtOperation(HtOperation htoperation)
Set the HT operation.
Definition: mgt-headers.cc:980
uint16_t m_bufferSize
Buffer size.
Definition: mgt-headers.h:1119
ErpInformation m_erpInformation
ERP information.
Definition: mgt-headers.h:497
void SetTimeout(uint16_t timeout)
Set timeout.
ExtendedCapabilities GetExtendedCapabilities(void) const
Return the extended capabilities.
Definition: mgt-headers.cc:572
Capability information.
void SetSupportedRates(SupportedRates rates)
Set the supported rates.
Definition: mgt-headers.cc:58
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:542
uint32_t GetSerializedSize(void) const
Definition: mgt-headers.cc:405
void SetDsssParameterSet(DsssParameterSet dsssParameterSet)
Set the DSSS Parameter Set.
Definition: mgt-headers.cc:352
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:143
TypeId GetInstanceTypeId(void) const
Get the most derived TypeId for this Object.
uint16_t m_reasonCode
Not used for now.
Definition: mgt-headers.h:1312
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:548
static TypeId GetTypeId(void)
Register this type.
uint8_t m_amsduSupport
Flag if A-MSDU is supported.
Definition: mgt-headers.h:1238
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:364
EdcaParameterSet GetEdcaParameterSet(void) const
Return the EDCA Parameter Set.
Definition: mgt-headers.cc:382
uint32_t GetSerializedSize() const
uint16_t m_initiator
initiator
Definition: mgt-headers.h:1310
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 SetVhtCapabilities(VhtCapabilities vhtcapabilities)
Set the VHT capabilities.
Definition: mgt-headers.cc:777
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:596
ExtendedCapabilities m_extendedCapability
Extended capabilities.
Definition: mgt-headers.h:168
uint8_t m_tid
Traffic ID.
Definition: mgt-headers.h:1118
ErpInformation GetErpInformation(void) const
Return the ERP information.
Definition: mgt-headers.cc:370
SupportedRates m_rates
List of supported rates.
Definition: mgt-headers.h:600
Ssid GetSsid(void) const
Return the Service Set Identifier (SSID).
Definition: mgt-headers.cc:801
void SetHtCapabilities(HtCapabilities htcapabilities)
Set the HT capabilities.
Definition: mgt-headers.cc:765
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:328
void SetErpInformation(ErpInformation erpInformation)
Set the ERP information.
void Print(std::ostream &os) const
void SetExtendedCapabilities(ExtendedCapabilities extendedcapabilities)
Set the Extended Capabilities.
Definition: mgt-headers.cc:566
void SetImmediateBlockAck()
Enable immediate Block ACK.
TypeId GetInstanceTypeId() const
Get the most derived TypeId for this Object.
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:93
SupportedRates GetSupportedRates(void) const
Return the supported rates.
Definition: mgt-headers.cc:220
HeCapabilities m_heCapability
HE capabilities.
Definition: mgt-headers.h:499
SupportedRates GetSupportedRates(void) const
Return the supported rates.
Definition: mgt-headers.cc:620
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:173
void SetExtendedCapabilities(ExtendedCapabilities extendedcapabilities)
Set the extended capabilities.
Definition: mgt-headers.cc:238
MeshActionValue meshAction
mesh action
Definition: mgt-headers.h:937
HtOperation GetHtOperation(void) const
Return the HT operation.
Definition: mgt-headers.cc:986
ExtendedCapabilities m_extendedCapability
extended capabilities
Definition: mgt-headers.h:601
uint8_t m_amsduSupport
Flag if A-MSDU is supported.
Definition: mgt-headers.h:1116
HeOperation m_heOperation
HE operation.
Definition: mgt-headers.h:500
VhtOperation m_vhtOperation
VHT operation.
Definition: mgt-headers.h:496
void SetStartingSequence(uint16_t seq)
Set the starting sequence number.
CfParameterSet m_cfParameterSet
CF parameter set.
Definition: mgt-headers.h:833
void Serialize(Buffer::Iterator start) const
ExtendedCapabilities GetExtendedCapabilities(void) const
Return the extended capabilities.
Definition: mgt-headers.cc:244
void Serialize(Buffer::Iterator start) const
Definition: mgt-headers.cc:871
VhtCapabilities GetVhtCapabilities(void) const
Return the VHT capabilities.
Definition: mgt-headers.cc:94
void SetVhtCapabilities(VhtCapabilities vhtcapabilities)
Set the VHT capabilities.
Definition: mgt-headers.cc:992
ErpInformation m_erpInformation
ERP information.
Definition: mgt-headers.h:831
void SetEdcaParameterSet(EdcaParameterSet edcaParameterSet)
Set the EDCA Parameter Set.
Definition: mgt-headers.cc:376
uint32_t GetSerializedSize(void) const
uint64_t GetBeaconIntervalUs(void) const
Return the beacon interval in microseconds unit.
Definition: mgt-headers.cc:214
void Serialize(Buffer::Iterator start) const
DsssParameterSet GetDsssParameterSet(void) const
Return the DSSS Parameter Set.
Definition: mgt-headers.cc:358
SupportedRates GetSupportedRates(void)
Return the supported rates.
Definition: mgt-headers.cc:926
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:818
EdcaParameterSet m_edcaParameterSet
EDCA Parameter Set.
Definition: mgt-headers.h:832
void SetHtCapabilities(HtCapabilities htcapabilities)
Set the HT capabilities.
Definition: mgt-headers.cc:76
uint16_t m_listenInterval
listen interval
Definition: mgt-headers.h:172
void SetExtendedCapabilities(ExtendedCapabilities extendedcapabilities)
Set the extended capabilities.
Definition: mgt-headers.cc:956
uint64_t GetTimestamp()
Return the time stamp.
Definition: mgt-headers.cc:202
void SetVhtOperation(VhtOperation vhtoperation)
Set the VHT operation.
Definition: mgt-headers.cc:286
ExtendedCapabilities GetExtendedCapabilities(void) const
Return the extended capabilities.
Definition: mgt-headers.cc:70
void SetByOriginator(void)
Set the initiator bit in the DELBA.
void Print(std::ostream &os) const
Definition: mgt-headers.cc:665
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:334
HeCapabilities GetHeCapabilities(void) const
Return the HE capabilities.
Definition: mgt-headers.cc:608
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:827
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:256
StatusCode GetStatusCode(void) const
Return the status code.
void SetBeaconIntervalUs(uint64_t us)
Set the beacon interval in microseconds unit.
Definition: mgt-headers.cc:340
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:149
BlockAckActionValue
Block ACK action field values See 802.11 Table 8-202.
Definition: mgt-headers.h:924
static TypeId GetTypeId(void)
Register this type.
Definition: mgt-headers.cc:388
TypeId GetInstanceTypeId(void) const
Get the most derived TypeId for this Object.
Definition: mgt-headers.cc:836
void SetBufferSize(uint16_t size)
Set buffer size.
void SetHtOperation(HtOperation htoperation)
Set the HT operation.
Definition: mgt-headers.cc:262
CapabilityInformation GetCapabilities(void) const
Return the Capability information.
Definition: mgt-headers.cc:560
uint32_t Deserialize(Buffer::Iterator start)
an EUI-48 address
Definition: mac48-address.h:43
void SetHeCapabilities(HeCapabilities hecapabilities)
Set the HE capabilities.
Definition: mgt-headers.cc:298
void SetVhtCapabilities(VhtCapabilities vhtcapabilities)
Set the VHT capabilities.
Definition: mgt-headers.cc:590
VhtCapabilities m_vhtCapability
VHT capabilities.
Definition: mgt-headers.h:170
HtCapabilities m_htCapability
HT capabilities.
Definition: mgt-headers.h:825
void SetTid(uint8_t tid)
Set Traffic ID (TID).
uint32_t Deserialize(Buffer::Iterator start)
Definition: mgt-headers.cc:476
Ssid GetSsid(void) const
Return the Service Set Identifier (SSID).
Definition: mgt-headers.cc:208
static TypeId GetTypeId(void)
Register this type.
Definition: mgt-headers.cc:509
void SetHeCapabilities(HeCapabilities hecapabilities)
Set the HE capabilities.
Definition: mgt-headers.cc:789
uint32_t Deserialize(Buffer::Iterator start)
Definition: mgt-headers.cc:887
MeshActionValue
MeshActionValue enumeration.
Definition: mgt-headers.h:905
uint8_t m_tid
Traffic ID.
Definition: mgt-headers.h:1240
uint8_t m_actionValue
Action value.
Definition: mgt-headers.h:989
The IEEE 802.11 SSID Information Element.
Definition: ssid.h:35
uint16_t GetParameterSet(void) const
Return the raw parameter set.
Implement the header for management frames of type probe request.
Definition: mgt-headers.h:508
void SetVhtCapabilities(VhtCapabilities vhtcapabilities)
Set the VHT capabilities.
Definition: mgt-headers.cc:274
void SetHeOperation(HeOperation heoperation)
Set the HE operation.
Implement the header for management frames of type association and reassociation response.
Definition: mgt-headers.h:318
void SetCfParameterSet(CfParameterSet cfparameterset)
Set the CF parameter set.
Definition: mgt-headers.cc:322
uint8_t GetTid(void) const
Return the Traffic ID (TID).
ExtendedCapabilities GetExtendedCapabilities(void) const
Return the extended capabilities.
Definition: mgt-headers.cc:962
uint32_t Deserialize(Buffer::Iterator start)
StatusCode m_code
Status code.
Definition: mgt-headers.h:490
MultihopActionValue
MultihopActionValue enumeration.
Definition: mgt-headers.h:898
The DSSS Parameter SetThis class knows how to serialise and deserialise the DSSS Parameter Set...
SelfProtectedActionValue selfProtectedAction
self protected action
Definition: mgt-headers.h:939
ExtendedCapabilities m_extendedCapability
extended capabilities
Definition: mgt-headers.h:492
void SetCapabilities(CapabilityInformation capabilities)
Set the Capability information.
Definition: mgt-headers.cc:944
void SetEdcaParameterSet(EdcaParameterSet edcaParameterSet)
Set the EDCA Parameter Set.
uint16_t m_tid
Traffic ID.
Definition: mgt-headers.h:1311
static TypeId GetTypeId(void)
Register this type.
HtOperation m_htOperation
HT operation.
Definition: mgt-headers.h:826
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:819
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:940
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:938
uint8_t m_dialogToken
Not used for now.
Definition: mgt-headers.h:1236
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:938
Implement the header for management frames of type add block ack response.
Definition: mgt-headers.h:1129
Implement the header for management frames of type del block ack.
Definition: mgt-headers.h:1250
HeOperation GetHeOperation(void) const
Return the HE operation.
Definition: mgt-headers.cc:316
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:783
HtCapabilities GetHtCapabilities(void) const
Return the HT capabilities.
Definition: mgt-headers.cc:974
typedef for union of different ActionValues
Definition: mgt-headers.h:935
EdcaParameterSet m_edcaParameterSet
EDCA Parameter Set.
Definition: mgt-headers.h:498
TypeId GetInstanceTypeId(void) const
Get the most derived TypeId for this Object.
HeCapabilities m_heCapability
HE capabilities.
Definition: mgt-headers.h:829
void SetHeOperation(HeOperation heoperation)
Set the HE operation.
Definition: mgt-headers.cc:310
void Serialize(Buffer::Iterator start) const
Definition: mgt-headers.cc:160
HtCapabilities m_htCapability
HT capabilities.
Definition: mgt-headers.h:307
VhtOperation GetVhtOperation(void) const
Return the VHT operation.
Definition: mgt-headers.cc:292
VhtCapabilities GetVhtCapabilities(void) const
Return the VHT capabilities.
Definition: mgt-headers.cc:998
void Serialize(Buffer::Iterator start) const
Definition: mgt-headers.cc:676
uint8_t m_policy
Block ACK policy.
Definition: mgt-headers.h:1117
HtCapabilities m_htCapability
HT capabilities.
Definition: mgt-headers.h:493
void SetSupportedRates(SupportedRates rates)
Set the supported rates.
Definition: mgt-headers.cc:346
Ssid m_ssid
Service Set ID (SSID)
Definition: mgt-headers.h:599
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 SetHtCapabilities(HtCapabilities htcapabilities)
Set the HT capabilities.
Definition: mgt-headers.cc:968
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 SetStatusCode(StatusCode code)
Set the status code.
Definition: mgt-headers.cc:932
void Print(std::ostream &os) const
Definition: mgt-headers.cc:859
CapabilityInformation GetCapabilities(void) const
Return the Capability information.
Definition: mgt-headers.cc:232
void SetParameterSet(uint16_t params)
Set the parameter set from the given raw value.
uint32_t GetSerializedSize(void) const
Definition: mgt-headers.cc:118
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:494
HtCapabilities GetHtCapabilities(void) const
Return the HT capabilities.
Definition: mgt-headers.cc:584
void SetCapabilities(CapabilityInformation capabilities)
Set the Capability information.
Definition: mgt-headers.cc:741
uint8_t m_category
Category of the action.
Definition: mgt-headers.h:988
void SetDelayedBlockAck()
Enable delayed Block ACK.
uint32_t Deserialize(Buffer::Iterator start)
Definition: mgt-headers.cc:691
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:444
Implement the header for management frames of type probe response.
Definition: mgt-headers.h:612
VhtCapabilities m_vhtCapability
VHT capabilities.
Definition: mgt-headers.h:495
ActionValue GetAction()
Return the action value.
SelfProtectedActionValue
SelfProtectedActionValue enumeration.
Definition: mgt-headers.h:888
SupportedRates m_rates
List of supported rates.
Definition: mgt-headers.h:304
uint16_t m_bufferSize
Buffer size.
Definition: mgt-headers.h:1241
uint64_t m_beaconInterval
Beacon interval.
Definition: mgt-headers.h:820
The IEEE 802.11ax HE Capabilities.
uint16_t GetListenInterval(void) const
Return the listen interval.
Definition: mgt-headers.cc:813
HeCapabilities m_heCapability
HE capabilities.
Definition: mgt-headers.h:171
uint32_t GetSerializedSize(void) const
Definition: mgt-headers.cc:649
uint16_t m_timeoutValue
Timeout.
Definition: mgt-headers.h:1242
Ssid m_ssid
Service Set ID (SSID)
Definition: mgt-headers.h:165
void SetExtendedCapabilities(ExtendedCapabilities extendedcapabilities)
Set the Extended Capabilities.
Definition: mgt-headers.cc:753
void SetAction(CategoryValue type, ActionValue action)
Set action for this Action header.
void SetHeCapabilities(HeCapabilities hecapabilities)
Set the HE capabilities.
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.
void SetHtCapabilities(HtCapabilities htcapabilities)
Set the HT capabilities.
Definition: mgt-headers.cc:250
uint32_t GetSerializedSize(void) const
void Serialize(Buffer::Iterator start) const
Implement the header for management frames of type beacon.
Definition: mgt-headers.h:841
Ssid GetSsid(void) const
Return the Service Set Identifier (SSID).
Definition: mgt-headers.cc:614
TypeId GetInstanceTypeId(void) const
Get the most derived TypeId for this Object.
Definition: mgt-headers.cc:399
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:920
CapabilityInformation m_capability
Capability information.
Definition: mgt-headers.h:305
HtCapabilities GetHtCapabilities(void) const
Return the HT capabilities.
Definition: mgt-headers.cc:771
VhtCapabilities GetVhtCapabilities(void) const
Return the VHT capabilities.
Definition: mgt-headers.cc:280
Ssid m_ssid
Service set ID (SSID)
Definition: mgt-headers.h:819
void SetVhtCapabilities(VhtCapabilities vhtcapabilities)
Set the VHT capabilities.
Definition: mgt-headers.cc:88
HeOperation m_heOperation
HE operation.
Definition: mgt-headers.h:830
uint32_t Deserialize(Buffer::Iterator start)
HeCapabilities GetHeCapabilities(void) const
Return the HE capabilities.
Definition: mgt-headers.cc:304
uint16_t GetListenInterval(void) const
Return the listen interval.
Definition: mgt-headers.cc:626
uint32_t GetSerializedSize(void) const