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 "ns3/dsss-parameter-set.h"
32 #include "extended-capabilities.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 
42 namespace ns3 {
43 
49 {
50 public:
53 
59  void SetSsid (Ssid ssid);
65  void SetSupportedRates (SupportedRates rates);
71  void SetListenInterval (uint16_t interval);
77  void SetCapabilities (CapabilityInformation capabilities);
83  void SetExtendedCapabilities (ExtendedCapabilities extendedCapabilities);
89  void SetHtCapabilities (HtCapabilities htCapabilities);
95  void SetVhtCapabilities (VhtCapabilities vhtCapabilities);
101  void SetHeCapabilities (HeCapabilities heCapabilities);
119  HtCapabilities GetHtCapabilities (void) const;
125  VhtCapabilities GetVhtCapabilities (void) const;
131  HeCapabilities GetHeCapabilities (void) const;
137  Ssid GetSsid (void) const;
143  SupportedRates GetSupportedRates (void) const;
149  uint16_t GetListenInterval (void) const;
150 
155  static TypeId GetTypeId (void);
156 
157  TypeId GetInstanceTypeId (void) const override;
158  void Print (std::ostream &os) const override;
159  uint32_t GetSerializedSize (void) const override;
160  void Serialize (Buffer::Iterator start) const override;
161  uint32_t Deserialize (Buffer::Iterator start) override;
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  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  uint64_t GetTimestamp ();
798 
803  static TypeId GetTypeId (void);
804  TypeId GetInstanceTypeId (void) const;
805  void Print (std::ostream &os) const;
806  uint32_t GetSerializedSize (void) const;
807  void Serialize (Buffer::Iterator start) const;
809 
810 
811 private:
812  uint64_t m_timestamp;
814  uint64_t m_beaconInterval;
827 };
828 
829 
835 {
836 public:
842  static TypeId GetTypeId (void);
843 };
844 
845 
846 /****************************
847 * Action frames
848 *****************************/
849 
857 class WifiActionHeader : public Header
858 {
859 public:
860  WifiActionHeader ();
862 
863  /*
864  * Compatible with table 8-38 IEEE 802.11, Part11, (Year 2012)
865  * Category values - see 802.11-2012 Table 8-38
866  */
867 
869  enum CategoryValue //table 8-38 staring from IEEE 802.11, Part11, (Year 2012)
870  {
872  MESH = 13, //Category: Mesh
873  MULTIHOP = 14, //not used so far
874  SELF_PROTECTED = 15, //Category: Self Protected
875  //Since vendor specific action has no stationary Action value,the parse process is not here.
876  //Refer to vendor-specific-action in wave module.
878  };
879 
881  enum SelfProtectedActionValue //Category: 15 (Self Protected)
882  {
883  PEER_LINK_OPEN = 1, //Mesh Peering Open
884  PEER_LINK_CONFIRM = 2, //Mesh Peering Confirm
885  PEER_LINK_CLOSE = 3, //Mesh Peering Close
886  GROUP_KEY_INFORM = 4, //Mesh Group Key Inform
887  GROUP_KEY_ACK = 5, //Mesh Group Key Acknowledge
888  };
889 
892  {
893  PROXY_UPDATE = 0, //not used so far
894  PROXY_UPDATE_CONFIRMATION = 1, //not used so far
895  };
896 
899  {
900  LINK_METRIC_REPORT = 0, //Action Value:0 in Category 13: Mesh
901  PATH_SELECTION = 1, //Action Value:1 in Category 13: Mesh
902  PORTAL_ANNOUNCEMENT = 2, //Action Value:2 in Category 13: Mesh
903  CONGESTION_CONTROL_NOTIFICATION = 3, //Action Value:3 in Category 13: Mesh
904  MDA_SETUP_REQUEST = 4, //Action Value:4 in Category 13: Mesh MCCA-Setup-Request (not used so far)
905  MDA_SETUP_REPLY = 5, //Action Value:5 in Category 13: Mesh MCCA-Setup-Reply (not used so far)
906  MDAOP_ADVERTISMENT_REQUEST = 6, //Action Value:6 in Category 13: Mesh MCCA-Advertisement-Request (not used so far)
907  MDAOP_ADVERTISMENTS = 7, //Action Value:7 in Category 13: Mesh (not used so far)
908  MDAOP_SET_TEARDOWN = 8, //Action Value:8 in Category 13: Mesh (not used so far)
909  TBTT_ADJUSTMENT_REQUEST = 9, //Action Value:9 in Category 13: Mesh (not used so far)
910  TBTT_ADJUSTMENT_RESPONSE = 10, //Action Value:10 in Category 13: Mesh (not used so far)
911  };
912 
918  {
922  };
923 
924 
928  typedef union
929  {
934  } ActionValue;
935 
941  void SetAction (CategoryValue type, ActionValue action);
942 
955 
960  static TypeId GetTypeId (void);
961  TypeId GetInstanceTypeId () const;
962  void Print (std::ostream &os) const;
963  uint32_t GetSerializedSize () const;
964  void Serialize (Buffer::Iterator start) const;
966 
967 
968 private:
974  std::string CategoryValueToString (CategoryValue value) const;
981  uint8_t m_category;
982  uint8_t m_actionValue;
983 };
984 
985 
991 {
992 public:
994 
999  static TypeId GetTypeId (void);
1000  TypeId GetInstanceTypeId (void) const;
1001  void Print (std::ostream &os) const;
1002  uint32_t GetSerializedSize (void) const;
1003  void Serialize (Buffer::Iterator start) const;
1004  uint32_t Deserialize (Buffer::Iterator start);
1005 
1009  void SetDelayedBlockAck ();
1013  void SetImmediateBlockAck ();
1019  void SetTid (uint8_t tid);
1025  void SetTimeout (uint16_t timeout);
1031  void SetBufferSize (uint16_t size);
1037  void SetStartingSequence (uint16_t seq);
1043  void SetAmsduSupport (bool supported);
1044 
1050  uint16_t GetStartingSequence (void) const;
1056  uint8_t GetTid (void) const;
1062  bool IsImmediateBlockAck (void) const;
1068  uint16_t GetTimeout (void) const;
1074  uint16_t GetBufferSize (void) const;
1080  bool IsAmsduSupported (void) const;
1081 
1082 private:
1088  uint16_t GetParameterSet (void) const;
1094  void SetParameterSet (uint16_t params);
1100  uint16_t GetStartingSequenceControl (void) const;
1106  void SetStartingSequenceControl (uint16_t seqControl);
1107 
1108  uint8_t m_dialogToken;
1109  uint8_t m_amsduSupport;
1110  uint8_t m_policy;
1111  uint8_t m_tid;
1112  uint16_t m_bufferSize;
1113  uint16_t m_timeoutValue;
1114  uint16_t m_startingSeq;
1115 };
1116 
1117 
1123 {
1124 public:
1126 
1131  static TypeId GetTypeId (void);
1132  TypeId GetInstanceTypeId (void) const;
1133  void Print (std::ostream &os) const;
1134  uint32_t GetSerializedSize (void) const;
1135  void Serialize (Buffer::Iterator start) const;
1136  uint32_t Deserialize (Buffer::Iterator start);
1137 
1141  void SetDelayedBlockAck ();
1145  void SetImmediateBlockAck ();
1151  void SetTid (uint8_t tid);
1157  void SetTimeout (uint16_t timeout);
1163  void SetBufferSize (uint16_t size);
1169  void SetStatusCode (StatusCode code);
1175  void SetAmsduSupport (bool supported);
1176 
1182  StatusCode GetStatusCode (void) const;
1188  uint8_t GetTid (void) const;
1194  bool IsImmediateBlockAck (void) const;
1200  uint16_t GetTimeout (void) const;
1206  uint16_t GetBufferSize (void) const;
1212  bool IsAmsduSupported (void) const;
1213 
1214 
1215 private:
1221  uint16_t GetParameterSet (void) const;
1227  void SetParameterSet (uint16_t params);
1228 
1229  uint8_t m_dialogToken;
1231  uint8_t m_amsduSupport;
1232  uint8_t m_policy;
1233  uint8_t m_tid;
1234  uint16_t m_bufferSize;
1235  uint16_t m_timeoutValue;
1236 };
1237 
1238 
1243 class MgtDelBaHeader : public Header
1244 {
1245 public:
1246  MgtDelBaHeader ();
1247 
1252  static TypeId GetTypeId (void);
1253 
1254  TypeId GetInstanceTypeId (void) const;
1255  void Print (std::ostream &os) const;
1256  uint32_t GetSerializedSize (void) const;
1257  void Serialize (Buffer::Iterator start) const;
1258  uint32_t Deserialize (Buffer::Iterator start);
1259 
1266  bool IsByOriginator (void) const;
1272  uint8_t GetTid (void) const;
1278  void SetTid (uint8_t tid);
1282  void SetByOriginator (void);
1286  void SetByRecipient (void);
1287 
1288 
1289 private:
1295  uint16_t GetParameterSet (void) const;
1301  void SetParameterSet (uint16_t params);
1302 
1303  uint16_t m_initiator;
1304  uint16_t m_tid;
1305  uint16_t m_reasonCode;
1306 };
1307 
1308 } //namespace ns3
1309 
1310 #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:708
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:786
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:1230
uint16_t GetTimeout(void) const
Return the timeout.
void SetVhtCapabilities(VhtCapabilities vhtCapabilities)
Set the VHT capabilities.
Definition: mgt-headers.cc:971
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:738
Implement the header for management frames of type association request.
Definition: mgt-headers.h:48
void SetHeCapabilities(HeCapabilities heCapabilities)
Set the HE capabilities.
Definition: mgt-headers.cc:768
DsssParameterSet m_dsssParameterSet
DSSS Parameter Set.
Definition: mgt-headers.h:817
void SetCapabilities(CapabilityInformation capabilities)
Set the Capability information.
Definition: mgt-headers.cc:533
uint8_t m_policy
Block ACK policy.
Definition: mgt-headers.h:1232
void Print(std::ostream &os) const
Definition: mgt-headers.cc:410
Ssid m_ssid
Service Set ID (SSID)
Definition: mgt-headers.h:303
uint32_t GetSerializedSize(void) const
Definition: mgt-headers.cc:821
SupportedRates m_rates
List of supported rates.
Definition: mgt-headers.h:494
static TypeId GetTypeId(void)
Register this type.
Definition: mgt-headers.cc:611
uint32_t GetSerializedSize(void) const
uint16_t m_timeoutValue
Timeout.
Definition: mgt-headers.h:1113
CapabilityInformation GetCapabilities(void) const
Return the Capability information.
Definition: mgt-headers.cc:929
See IEEE 802.11 chapter 7.3.1.11 Header format: | category: 1 | action value: 1 |.
Definition: mgt-headers.h:857
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:815
static TypeId GetTypeId(void)
Register this type.
Definition: mgt-headers.cc:804
VhtCapabilities m_vhtCapability
VHT capabilities.
Definition: mgt-headers.h:308
uint8_t m_dialogToken
Not used for now.
Definition: mgt-headers.h:1108
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:816
void SetBufferSize(uint16_t size)
Set buffer size.
void SetHeCapabilities(HeCapabilities heCapabilities)
Set the HE capabilities.
Definition: mgt-headers.cc:995
Implement the header for management frames of type Add Block Ack request.
Definition: mgt-headers.h:990
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:35
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:714
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:515
void SetSsid(Ssid ssid)
Set the Service Set Identifier (SSID).
Definition: mgt-headers.cc:702
HeCapabilities GetHeCapabilities(void) const
Return the HE capabilities.
Definition: mgt-headers.cc:774
VhtOperation GetVhtOperation(void) const
Return the VHT operation.
Definition: mgt-headers.cc:989
uint16_t m_startingSeq
Starting sequence number.
Definition: mgt-headers.h:1114
The HT Operation Information ElementThis class knows how to serialise and deserialise the HT Operatio...
Definition: ht-operation.h:50
CategoryValue
CategoryValue enumeration.
Definition: mgt-headers.h:869
VhtOperation m_vhtOperation
VHT operation.
Definition: mgt-headers.h:822
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:818
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:726
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:1112
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:551
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:521
uint32_t GetSerializedSize(void) const
Definition: mgt-headers.cc:387
void SetDsssParameterSet(DsssParameterSet dsssParameterSet)
Set the DSSS Parameter Set.
Definition: mgt-headers.cc:334
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:1305
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:527
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:1231
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:346
EdcaParameterSet GetEdcaParameterSet(void) const
Return the EDCA Parameter Set.
Definition: mgt-headers.cc:364
uint32_t GetSerializedSize() const
uint16_t m_initiator
initiator
Definition: mgt-headers.h:1303
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 Serialize(Buffer::Iterator start) const override
Definition: mgt-headers.cc:655
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:575
ExtendedCapabilities m_extendedCapability
Extended capabilities.
Definition: mgt-headers.h:168
uint8_t m_tid
Traffic ID.
Definition: mgt-headers.h:1111
ErpInformation GetErpInformation(void) const
Return the ERP information.
Definition: mgt-headers.cc:352
SupportedRates m_rates
List of supported rates.
Definition: mgt-headers.h:606
void SetHtCapabilities(HtCapabilities htCapabilities)
Set the HT capabilities.
Definition: mgt-headers.cc:947
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:780
The IEEE 802.11ac VHT Capabilities.
void SetStartingSequenceControl(uint16_t seqControl)
Set sequence control with the given raw value.
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:599
uint32_t Deserialize(Buffer::Iterator start)
Definition: mgt-headers.cc:167
MeshActionValue meshAction
mesh action
Definition: mgt-headers.h:930
HtOperation GetHtOperation(void) const
Return the HT operation.
Definition: mgt-headers.cc:965
ExtendedCapabilities m_extendedCapability
extended capabilities
Definition: mgt-headers.h:607
void SetVhtCapabilities(VhtCapabilities vhtCapabilities)
Set the VHT capabilities.
Definition: mgt-headers.cc:569
uint8_t m_amsduSupport
Flag if A-MSDU is supported.
Definition: mgt-headers.h:1109
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.
uint32_t GetSerializedSize(void) const override
Definition: mgt-headers.cc:628
void Serialize(Buffer::Iterator start) const
ExtendedCapabilities GetExtendedCapabilities(void) const
Return the extended capabilities.
Definition: mgt-headers.cc:238
uint32_t Deserialize(Buffer::Iterator start) override
Definition: mgt-headers.cc:670
void Serialize(Buffer::Iterator start) const
Definition: mgt-headers.cc:850
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:756
TypeId GetInstanceTypeId(void) const override
Get the most derived TypeId for this Object.
Definition: mgt-headers.cc:622
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:825
void SetEdcaParameterSet(EdcaParameterSet edcaParameterSet)
Set the EDCA Parameter Set.
Definition: mgt-headers.cc:358
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:340
SupportedRates GetSupportedRates(void)
Return the supported rates.
Definition: mgt-headers.cc:905
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:812
EdcaParameterSet m_edcaParameterSet
EDCA Parameter Set.
Definition: mgt-headers.h:826
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
Status code for association response.
Definition: status-code.h:31
void SetSsid(Ssid ssid)
Set the Service Set Identifier (SSID).
Definition: mgt-headers.cc:316
HeCapabilities GetHeCapabilities(void) const
Return the HE capabilities.
Definition: mgt-headers.cc:587
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:821
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:322
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:917
static TypeId GetTypeId(void)
Register this type.
Definition: mgt-headers.cc:370
TypeId GetInstanceTypeId(void) const
Get the most derived TypeId for this Object.
Definition: mgt-headers.cc:815
void SetBufferSize(uint16_t size)
Set buffer size.
CapabilityInformation GetCapabilities(void) const
Return the Capability information.
Definition: mgt-headers.cc:539
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:732
HtCapabilities m_htCapability
HT capabilities.
Definition: mgt-headers.h:819
void SetTid(uint8_t tid)
Set Traffic ID (TID).
uint32_t Deserialize(Buffer::Iterator start)
Definition: mgt-headers.cc:456
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:488
uint32_t Deserialize(Buffer::Iterator start)
Definition: mgt-headers.cc:866
MeshActionValue
MeshActionValue enumeration.
Definition: mgt-headers.h:898
uint8_t m_tid
Traffic ID.
Definition: mgt-headers.h:1233
uint8_t m_actionValue
Action value.
Definition: mgt-headers.h:982
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:983
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:959
void SetExtendedCapabilities(ExtendedCapabilities extendedCapabilities)
Set the Extended Capabilities.
Definition: mgt-headers.cc:545
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:941
uint32_t Deserialize(Buffer::Iterator start)
StatusCode m_code
Status code.
Definition: mgt-headers.h:496
MultihopActionValue
MultihopActionValue enumeration.
Definition: mgt-headers.h:891
The DSSS Parameter SetThis class knows how to serialise and deserialise the DSSS Parameter Set...
SelfProtectedActionValue selfProtectedAction
self protected action
Definition: mgt-headers.h:932
ExtendedCapabilities m_extendedCapability
extended capabilities
Definition: mgt-headers.h:498
void SetCapabilities(CapabilityInformation capabilities)
Set the Capability information.
Definition: mgt-headers.cc:923
void SetEdcaParameterSet(EdcaParameterSet edcaParameterSet)
Set the EDCA Parameter Set.
uint16_t m_tid
Traffic ID.
Definition: mgt-headers.h:1304
static TypeId GetTypeId(void)
Register this type.
HtOperation m_htOperation
HT operation.
Definition: mgt-headers.h:820
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:798
void SetExtendedCapabilities(ExtendedCapabilities extendedCapabilities)
Set the extended capabilities.
Definition: mgt-headers.cc:935
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:933
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:917
uint8_t m_dialogToken
Not used for now.
Definition: mgt-headers.h:1229
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:931
Implement the header for management frames of type Add Block Ack response.
Definition: mgt-headers.h:1122
Implement the header for management frames of type Delete Block Ack.
Definition: mgt-headers.h:1243
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:762
HtCapabilities GetHtCapabilities(void) const
Return the HT capabilities.
Definition: mgt-headers.cc:953
typedef for union of different ActionValues
Definition: mgt-headers.h:928
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:823
void Print(std::ostream &os) const override
Definition: mgt-headers.cc:644
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:977
uint8_t m_policy
Block Ack policy.
Definition: mgt-headers.h:1110
HtCapabilities m_htCapability
HT capabilities.
Definition: mgt-headers.h:499
void SetSupportedRates(SupportedRates rates)
Set the supported rates.
Definition: mgt-headers.cc:328
Ssid m_ssid
Service Set ID (SSID)
Definition: mgt-headers.h:605
void SetHeCapabilities(HeCapabilities heCapabilities)
Set the HE capabilities.
Definition: mgt-headers.cc:581
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:557
void SetStatusCode(StatusCode code)
Set the status code.
Definition: mgt-headers.cc:911
void Print(std::ostream &os) const
Definition: mgt-headers.cc:838
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:563
void SetCapabilities(CapabilityInformation capabilities)
Set the Capability information.
Definition: mgt-headers.cc:720
uint8_t m_category
Category of the action.
Definition: mgt-headers.h:981
void SetDelayedBlockAck()
Enable delayed BlockAck.
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:35
void Serialize(Buffer::Iterator start) const
Definition: mgt-headers.cc:425
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:881
SupportedRates m_rates
List of supported rates.
Definition: mgt-headers.h:304
uint16_t m_bufferSize
Buffer size.
Definition: mgt-headers.h:1234
uint64_t m_beaconInterval
Beacon interval.
Definition: mgt-headers.h:814
The IEEE 802.11ax HE Capabilities.
uint16_t GetListenInterval(void) const
Return the listen interval.
Definition: mgt-headers.cc:792
HeCapabilities m_heCapability
HE capabilities.
Definition: mgt-headers.h:171
uint16_t m_timeoutValue
Timeout.
Definition: mgt-headers.h:1235
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:834
Ssid GetSsid(void) const
Return the Service Set Identifier (SSID).
Definition: mgt-headers.cc:593
TypeId GetInstanceTypeId(void) const
Get the most derived TypeId for this Object.
Definition: mgt-headers.cc:381
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:899
CapabilityInformation m_capability
Capability information.
Definition: mgt-headers.h:305
HtCapabilities GetHtCapabilities(void) const
Return the HT capabilities.
Definition: mgt-headers.cc:750
VhtCapabilities GetVhtCapabilities(void) const
Return the VHT capabilities.
Definition: mgt-headers.cc:274
Ssid m_ssid
Service set ID (SSID)
Definition: mgt-headers.h:813
void SetHtCapabilities(HtCapabilities htCapabilities)
Set the HT capabilities.
Definition: mgt-headers.cc:744
HeOperation m_heOperation
HE operation.
Definition: mgt-headers.h:824
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:605
uint32_t GetSerializedSize(void) const