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 "status-code.h"
27 #include "capability-information.h"
28 #include "supported-rates.h"
29 #include "ssid.h"
30 #include "dsss-parameter-set.h"
31 #include "extended-capabilities.h"
32 #include "ht-capabilities.h"
33 #include "ht-operation.h"
34 #include "vht-capabilities.h"
35 #include "vht-operation.h"
36 #include "erp-information.h"
37 #include "edca-parameter-set.h"
38 #include "he-capabilities.h"
39 #include "he-operation.h"
40 #include "ns3/address-utils.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  TypeId GetInstanceTypeId (void) const;
157  void Print (std::ostream &os) const;
158  uint32_t GetSerializedSize (void) const;
159  void Serialize (Buffer::Iterator start) const;
160  uint32_t Deserialize (Buffer::Iterator start);
161 
162 
163 private:
171  uint16_t m_listenInterval;
172 };
173 
174 
180 {
181 public:
184 
190  void SetSsid (Ssid ssid);
196  void SetSupportedRates (SupportedRates rates);
202  void SetListenInterval (uint16_t interval);
208  void SetCapabilities (CapabilityInformation capabilities);
214  void SetExtendedCapabilities (ExtendedCapabilities extendedcapabilities);
220  void SetHtCapabilities (HtCapabilities htcapabilities);
226  void SetVhtCapabilities (VhtCapabilities vhtcapabilities);
232  void SetHeCapabilities (HeCapabilities hecapabilities);
250  HtCapabilities GetHtCapabilities (void) const;
256  VhtCapabilities GetVhtCapabilities (void) const;
262  HeCapabilities GetHeCapabilities (void) const;
268  Ssid GetSsid (void) const;
274  SupportedRates GetSupportedRates (void) const;
280  uint16_t GetListenInterval (void) const;
286  void SetCurrentApAddress (Mac48Address currentApAddr);
287 
292  static TypeId GetTypeId (void);
293  TypeId GetInstanceTypeId (void) const;
294  void Print (std::ostream &os) const;
295  uint32_t GetSerializedSize (void) const;
296  void Serialize (Buffer::Iterator start) const;
297  uint32_t Deserialize (Buffer::Iterator start);
298 
299 
300 private:
309  uint16_t m_listenInterval;
310 };
311 
312 
318 {
319 public:
322 
328  StatusCode GetStatusCode (void);
352  HtCapabilities GetHtCapabilities (void) const;
358  HtOperation GetHtOperation (void) const;
364  VhtCapabilities GetVhtCapabilities (void) const;
370  VhtOperation GetVhtOperation (void) const;
376  HeCapabilities GetHeCapabilities (void) const;
382  HeOperation GetHeOperation (void) const;
388  ErpInformation GetErpInformation (void) const;
400  void SetCapabilities (CapabilityInformation capabilities);
406  void SetExtendedCapabilities (ExtendedCapabilities extendedcapabilities);
412  void SetVhtOperation (VhtOperation vhtoperation);
418  void SetVhtCapabilities (VhtCapabilities vhtcapabilities);
424  void SetHtCapabilities (HtCapabilities htcapabilities);
430  void SetHtOperation (HtOperation htoperation);
436  void SetSupportedRates (SupportedRates rates);
442  void SetStatusCode (StatusCode code);
448  void SetAssociationId (uint16_t aid);
454  void SetErpInformation (ErpInformation erpInformation);
460  void SetEdcaParameterSet (EdcaParameterSet edcaParameterSet);
466  void SetHeCapabilities (HeCapabilities hecapabilities);
472  void SetHeOperation (HeOperation heoperation);
473 
478  static TypeId GetTypeId (void);
479  TypeId GetInstanceTypeId (void) const;
480  void Print (std::ostream &os) const;
481  uint32_t GetSerializedSize (void) const;
482  void Serialize (Buffer::Iterator start) const;
483  uint32_t Deserialize (Buffer::Iterator start);
484 
485 
486 private:
490  uint16_t m_aid;
500 };
501 
502 
508 {
509 public:
511 
517  void SetSsid (Ssid ssid);
523  void SetSupportedRates (SupportedRates rates);
529  void SetExtendedCapabilities (ExtendedCapabilities extendedcapabilities);
535  void SetHtCapabilities (HtCapabilities htcapabilities);
541  void SetVhtCapabilities (VhtCapabilities vhtcapabilities);
547  void SetHeCapabilities (HeCapabilities hecapabilities);
553  Ssid GetSsid (void) const;
559  SupportedRates GetSupportedRates (void) const;
571  HtCapabilities GetHtCapabilities (void) const;
577  VhtCapabilities GetVhtCapabilities (void) const;
583  HeCapabilities GetHeCapabilities (void) const;
584 
589  static TypeId GetTypeId (void);
590  TypeId GetInstanceTypeId (void) const;
591  void Print (std::ostream &os) const;
592  uint32_t GetSerializedSize (void) const;
593  void Serialize (Buffer::Iterator start) const;
594  uint32_t Deserialize (Buffer::Iterator start);
595 
596 
597 private:
604 };
605 
606 
612 {
613 public:
616 
622  Ssid GetSsid (void) const;
628  uint64_t GetBeaconIntervalUs (void) const;
634  SupportedRates GetSupportedRates (void) const;
658  HtCapabilities GetHtCapabilities (void) const;
664  HtOperation GetHtOperation (void) const;
670  VhtCapabilities GetVhtCapabilities (void) const;
676  VhtOperation GetVhtOperation (void) const;
682  HeCapabilities GetHeCapabilities (void) const;
688  HeOperation GetHeOperation (void) const;
694  ErpInformation GetErpInformation (void) const;
706  void SetCapabilities (CapabilityInformation capabilities);
712  void SetExtendedCapabilities (ExtendedCapabilities extendedcapabilities);
718  void SetHtCapabilities (HtCapabilities htcapabilities);
724  void SetHtOperation (HtOperation htoperation);
730  void SetVhtCapabilities (VhtCapabilities vhtcapabilities);
736  void SetVhtOperation (VhtOperation vhtoperation);
742  void SetHeCapabilities (HeCapabilities hecapabilities);
748  void SetHeOperation (HeOperation heoperation);
754  void SetSsid (Ssid ssid);
760  void SetBeaconIntervalUs (uint64_t us);
766  void SetSupportedRates (SupportedRates rates);
772  void SetDsssParameterSet (DsssParameterSet dsssParameterSet);
778  void SetErpInformation (ErpInformation erpInformation);
784  void SetEdcaParameterSet (EdcaParameterSet edcaParameterSet);
790  uint64_t GetTimestamp ();
791 
796  static TypeId GetTypeId (void);
797  TypeId GetInstanceTypeId (void) const;
798  void Print (std::ostream &os) const;
799  uint32_t GetSerializedSize (void) const;
800  void Serialize (Buffer::Iterator start) const;
801  uint32_t Deserialize (Buffer::Iterator start);
802 
803 
804 private:
805  uint64_t m_timestamp;
807  uint64_t m_beaconInterval;
820 };
821 
822 
828 {
829 public:
835  static TypeId GetTypeId (void);
836 };
837 
838 
839 /****************************
840 * Action frames
841 *****************************/
842 
850 class WifiActionHeader : public Header
851 {
852 public:
853  WifiActionHeader ();
855 
856  /*
857  * Compatible with table 8-38 IEEE 802.11, Part11, (Year 2012)
858  * Category values - see 802.11-2012 Table 8-38
859  */
860 
862  enum CategoryValue //table 8-38 staring from IEEE 802.11, Part11, (Year 2012)
863  {
865  MESH = 13, //Category: Mesh
866  MULTIHOP = 14, //not used so far
867  SELF_PROTECTED = 15, //Category: Self Protected
868  //Since vendor specific action has no stationary Action value,the parse process is not here.
869  //Refer to vendor-specific-action in wave module.
871  };
872 
874  enum SelfProtectedActionValue //Category: 15 (Self Protected)
875  {
876  PEER_LINK_OPEN = 1, //Mesh Peering Open
877  PEER_LINK_CONFIRM = 2, //Mesh Peering Confirm
878  PEER_LINK_CLOSE = 3, //Mesh Peering Close
879  GROUP_KEY_INFORM = 4, //Mesh Group Key Inform
880  GROUP_KEY_ACK = 5, //Mesh Group Key Acknowledge
881  };
882 
885  {
886  PROXY_UPDATE = 0, //not used so far
887  PROXY_UPDATE_CONFIRMATION = 1, //not used so far
888  };
889 
892  {
893  LINK_METRIC_REPORT = 0, //Action Value:0 in Category 13: Mesh
894  PATH_SELECTION = 1, //Action Value:1 in Category 13: Mesh
895  PORTAL_ANNOUNCEMENT = 2, //Action Value:2 in Category 13: Mesh
896  CONGESTION_CONTROL_NOTIFICATION = 3, //Action Value:3 in Category 13: Mesh
897  MDA_SETUP_REQUEST = 4, //Action Value:4 in Category 13: Mesh MCCA-Setup-Request (not used so far)
898  MDA_SETUP_REPLY = 5, //Action Value:5 in Category 13: Mesh MCCA-Setup-Reply (not used so far)
899  MDAOP_ADVERTISMENT_REQUEST = 6, //Action Value:6 in Category 13: Mesh MCCA-Advertisement-Request (not used so far)
900  MDAOP_ADVERTISMENTS = 7, //Action Value:7 in Category 13: Mesh (not used so far)
901  MDAOP_SET_TEARDOWN = 8, //Action Value:8 in Category 13: Mesh (not used so far)
902  TBTT_ADJUSTMENT_REQUEST = 9, //Action Value:9 in Category 13: Mesh (not used so far)
903  TBTT_ADJUSTMENT_RESPONSE = 10, //Action Value:10 in Category 13: Mesh (not used so far)
904  };
905 
911  {
915  };
916 
917 
921  typedef union
922  {
927  } ActionValue;
928 
934  void SetAction (CategoryValue type, ActionValue action);
935 
948 
953  static TypeId GetTypeId (void);
954  TypeId GetInstanceTypeId () const;
955  void Print (std::ostream &os) const;
956  uint32_t GetSerializedSize () const;
957  void Serialize (Buffer::Iterator start) const;
959 
960 
961 private:
967  std::string CategoryValueToString (CategoryValue value) const;
974  uint8_t m_category;
975  uint8_t m_actionValue;
976 };
977 
978 
984 {
985 public:
987 
992  static TypeId GetTypeId (void);
993  TypeId GetInstanceTypeId (void) const;
994  void Print (std::ostream &os) const;
995  uint32_t GetSerializedSize (void) const;
996  void Serialize (Buffer::Iterator start) const;
997  uint32_t Deserialize (Buffer::Iterator start);
998 
1002  void SetDelayedBlockAck ();
1006  void SetImmediateBlockAck ();
1012  void SetTid (uint8_t tid);
1018  void SetTimeout (uint16_t timeout);
1024  void SetBufferSize (uint16_t size);
1030  void SetStartingSequence (uint16_t seq);
1036  void SetAmsduSupport (bool supported);
1037 
1043  uint16_t GetStartingSequence (void) const;
1049  uint8_t GetTid (void) const;
1055  bool IsImmediateBlockAck (void) const;
1061  uint16_t GetTimeout (void) const;
1067  uint16_t GetBufferSize (void) const;
1073  bool IsAmsduSupported (void) const;
1074 
1075 private:
1081  uint16_t GetParameterSet (void) const;
1087  void SetParameterSet (uint16_t params);
1093  uint16_t GetStartingSequenceControl (void) const;
1099  void SetStartingSequenceControl (uint16_t seqControl);
1100 
1101  uint8_t m_dialogToken;
1102  uint8_t m_amsduSupport;
1103  uint8_t m_policy;
1104  uint8_t m_tid;
1105  uint16_t m_bufferSize;
1106  uint16_t m_timeoutValue;
1107  uint16_t m_startingSeq;
1108 };
1109 
1110 
1116 {
1117 public:
1119 
1124  static TypeId GetTypeId (void);
1125  TypeId GetInstanceTypeId (void) const;
1126  void Print (std::ostream &os) const;
1127  uint32_t GetSerializedSize (void) const;
1128  void Serialize (Buffer::Iterator start) const;
1129  uint32_t Deserialize (Buffer::Iterator start);
1130 
1134  void SetDelayedBlockAck ();
1138  void SetImmediateBlockAck ();
1144  void SetTid (uint8_t tid);
1150  void SetTimeout (uint16_t timeout);
1156  void SetBufferSize (uint16_t size);
1162  void SetStatusCode (StatusCode code);
1168  void SetAmsduSupport (bool supported);
1169 
1175  StatusCode GetStatusCode (void) const;
1181  uint8_t GetTid (void) const;
1187  bool IsImmediateBlockAck (void) const;
1193  uint16_t GetTimeout (void) const;
1199  uint16_t GetBufferSize (void) const;
1205  bool IsAmsduSupported (void) const;
1206 
1207 
1208 private:
1214  uint16_t GetParameterSet (void) const;
1220  void SetParameterSet (uint16_t params);
1221 
1222  uint8_t m_dialogToken;
1224  uint8_t m_amsduSupport;
1225  uint8_t m_policy;
1226  uint8_t m_tid;
1227  uint16_t m_bufferSize;
1228  uint16_t m_timeoutValue;
1229 };
1230 
1231 
1236 class MgtDelBaHeader : public Header
1237 {
1238 public:
1239  MgtDelBaHeader ();
1240 
1245  static TypeId GetTypeId (void);
1246  // Inherited
1247  TypeId GetInstanceTypeId (void) const;
1248  void Print (std::ostream &os) const;
1249  uint32_t GetSerializedSize (void) const;
1250  void Serialize (Buffer::Iterator start) const;
1251  uint32_t Deserialize (Buffer::Iterator start);
1252 
1259  bool IsByOriginator (void) const;
1265  uint8_t GetTid (void) const;
1271  void SetTid (uint8_t tid);
1275  void SetByOriginator (void);
1279  void SetByRecipient (void);
1280 
1281 
1282 private:
1288  uint16_t GetParameterSet (void) const;
1294  void SetParameterSet (uint16_t params);
1295 
1296  uint16_t m_initiator;
1297  uint16_t m_tid;
1298  uint16_t m_reasonCode;
1299 };
1300 
1301 } //namespace ns3
1302 
1303 #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:710
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:111
uint16_t GetBufferSize(void) const
Return the buffer size.
void Serialize(Buffer::Iterator start) const
StatusCode m_code
Status code.
Definition: mgt-headers.h:1223
uint32_t GetSerializedSize(void) const
CapabilityInformation GetCapabilities(void) const
Return the Capability information.
Definition: mgt-headers.cc:728
void SetHeCapabilities(HeCapabilities hecapabilities)
Set the HE capabilities.
Definition: mgt-headers.cc:99
SupportedRates GetSupportedRates(void) const
Return the supported rates.
Definition: mgt-headers.cc:218
TypeId GetInstanceTypeId(void) const
Get the most derived TypeId for this Object.
Definition: mgt-headers.cc:625
Implement the header for management frames of type association request.
Definition: mgt-headers.h:48
DsssParameterSet m_dsssParameterSet
DSSS Parameter Set.
Definition: mgt-headers.h:810
void SetCapabilities(CapabilityInformation capabilities)
Set the Capability information.
Definition: mgt-headers.cc:536
uint8_t m_policy
Block ACK policy.
Definition: mgt-headers.h:1225
void Print(std::ostream &os) const
Ssid m_ssid
Service Set ID (SSID)
Definition: mgt-headers.h:302
VhtCapabilities GetVhtCapabilities(void) const
Return the VHT capabilities.
Definition: mgt-headers.cc:93
CapabilityInformation GetCapabilities(void) const
Return the Capability information.
Definition: mgt-headers.cc:930
TypeId GetInstanceTypeId(void) const
Get the most derived TypeId for this Object.
Definition: mgt-headers.cc:385
Ssid GetSsid(void) const
Return the Service Set Identifier (SSID).
Definition: mgt-headers.cc:206
SupportedRates m_rates
List of supported rates.
Definition: mgt-headers.h:487
CategoryValue
CategoryValue enumeration.
Definition: mgt-headers.h:862
static TypeId GetTypeId(void)
Register this type.
Definition: mgt-headers.cc:614
uint16_t m_timeoutValue
Timeout.
Definition: mgt-headers.h:1106
HeCapabilities GetHeCapabilities(void) const
Return the HE capabilities.
SupportedRates GetSupportedRates(void) const
Return the supported rates.
Definition: mgt-headers.cc:788
See IEEE 802.11 chapter 7.3.1.11 Header format: | category: 1 | action value: 1 |.
Definition: mgt-headers.h:850
void Print(std::ostream &os) const
HtCapabilities m_htCapability
HT capabilities.
Definition: mgt-headers.h:601
uint64_t GetBeaconIntervalUs(void) const
Return the beacon interval in microseconds unit.
Definition: mgt-headers.cc:212
SupportedRates m_rates
List of supported rates.
Definition: mgt-headers.h:165
static TypeId GetTypeId(void)
Register this type.
Definition: mgt-headers.cc:131
void SetImmediateBlockAck()
Enable immediate Block ACK.
SupportedRates m_rates
List of supported rates.
Definition: mgt-headers.h:808
static TypeId GetTypeId(void)
Register this type.
Definition: mgt-headers.cc:806
VhtCapabilities m_vhtCapability
VHT capabilities.
Definition: mgt-headers.h:307
uint8_t m_dialogToken
Not used for now.
Definition: mgt-headers.h:1101
def start()
Definition: core.py:1790
ExtendedCapabilities GetExtendedCapabilities(void) const
Return the extended capabilities.
Definition: mgt-headers.cc:69
CapabilityInformation m_capability
Capability information.
Definition: mgt-headers.h:488
CapabilityInformation m_capability
Capability information.
Definition: mgt-headers.h:809
void SetBufferSize(uint16_t size)
Set buffer size.
Implement the header for management frames of type add block ack request.
Definition: mgt-headers.h:983
bool IsImmediateBlockAck(void) const
Return whether the Block ACK policy is immediate Block ACK.
void SetAssociationId(uint16_t aid)
Set the association ID.
Definition: mgt-headers.cc:51
HtCapabilities m_htCapability
HT capabilities.
Definition: mgt-headers.h:168
HeCapabilities m_heCapability
HE capabilities.
Definition: mgt-headers.h:603
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:602
uint32_t GetSerializedSize(void) const
Definition: mgt-headers.cc:631
void SetListenInterval(uint16_t interval)
Set the listen interval.
Definition: mgt-headers.cc:716
The HT Capabilities Information ElementThis class knows how to serialise and deserialise the HT Capab...
void SetHtCapabilities(HtCapabilities htcapabilities)
Set the HT capabilities.
Definition: mgt-headers.cc:560
void SetCapabilities(CapabilityInformation capabilities)
Set the Capability information.
Definition: mgt-headers.cc:224
void SetSsid(Ssid ssid)
Set the Service Set Identifier (SSID).
Definition: mgt-headers.cc:518
void SetSsid(Ssid ssid)
Set the Service Set Identifier (SSID).
Definition: mgt-headers.cc:704
void SetExtendedCapabilities(ExtendedCapabilities extendedcapabilities)
Set the extended capabilities.
Definition: mgt-headers.cc:63
void Print(std::ostream &os) const
uint16_t m_startingSeq
Starting sequence number.
Definition: mgt-headers.h:1107
The HT Operation Information ElementThis class knows how to serialise and deserialise the HT Operatio...
Definition: ht-operation.h:52
std::string CategoryValueToString(CategoryValue value) const
Category value to string function.
VhtOperation m_vhtOperation
VHT operation.
Definition: mgt-headers.h:815
uint16_t GetBufferSize(void) const
Return the buffer size.
VhtCapabilities GetVhtCapabilities(void) const
Return the VHT capabilities.
Definition: mgt-headers.cc:978
TypeId GetInstanceTypeId(void) const
Get the most derived TypeId for this Object.
CategoryValue GetCategory()
Return the category value.
void SetVhtOperation(VhtOperation vhtoperation)
Set the VHT operation.
Definition: mgt-headers.cc:984
void SetDelayedBlockAck()
Enable delayed Block ACK.
ns3::Time timeout
ExtendedCapabilities m_extendedCapability
extended capabilities
Definition: mgt-headers.h:811
HeCapabilities m_heCapability
HE capabilities.
Definition: mgt-headers.h:308
void SetHeCapabilities(HeCapabilities hecapabilities)
Set the HE capabilities.
Definition: mgt-headers.cc:584
void SetStatusCode(StatusCode code)
Set the status code.
BlockAckActionValue
Block ACK action field values See 802.11 Table 8-202.
Definition: mgt-headers.h:910
The Supported Rates Information ElementThis class knows how to serialise and deserialise the Supporte...
CapabilityInformation m_capability
Capability information.
Definition: mgt-headers.h:166
void SetHtOperation(HtOperation htoperation)
Set the HT operation.
Definition: mgt-headers.cc:960
uint16_t m_bufferSize
Buffer size.
Definition: mgt-headers.h:1105
ErpInformation m_erpInformation
ERP information.
Definition: mgt-headers.h:496
TypeId GetInstanceTypeId(void) const
Get the most derived TypeId for this Object.
Definition: mgt-headers.cc:142
void SetTimeout(uint16_t timeout)
Set timeout.
Ssid GetSsid(void) const
Return the Service Set Identifier (SSID).
Definition: mgt-headers.cc:45
Capability information.
void SetSupportedRates(SupportedRates rates)
Set the supported rates.
Definition: mgt-headers.cc:57
void SetAmsduSupport(bool supported)
Enable or disable A-MSDU support.
Ssid GetSsid(void) const
Return the Service Set Identifier (SSID).
Definition: mgt-headers.cc:596
iterator in a Buffer instance
Definition: buffer.h:98
TypeId GetInstanceTypeId(void) const
Get the most derived TypeId for this Object.
uint16_t GetListenInterval(void) const
Return the listen interval.
Definition: mgt-headers.cc:794
void SetSupportedRates(SupportedRates rates)
Set the supported rates.
Definition: mgt-headers.cc:524
ErpInformation GetErpInformation(void) const
Return the ERP information.
uint32_t GetSerializedSize(void) const
Definition: mgt-headers.cc:823
void SetDsssParameterSet(DsssParameterSet dsssParameterSet)
Set the DSSS Parameter Set.
Definition: mgt-headers.cc:338
Mac48Address m_currentApAddr
Address of the current access point.
Definition: mgt-headers.h:301
bool IsAmsduSupported(void) const
Return whether A-MSDU capability is supported.
uint16_t GetStartingSequenceControl(void) const
Return the raw sequence control.
uint16_t m_reasonCode
Not used for now.
Definition: mgt-headers.h:1298
void Serialize(Buffer::Iterator start) const
void SetTid(uint8_t tid)
Set Traffic ID (TID).
void Print(std::ostream &os) const
Definition: mgt-headers.cc:414
void Serialize(Buffer::Iterator start) const
Definition: mgt-headers.cc:428
VhtCapabilities GetVhtCapabilities(void) const
Return the VHT capabilities.
Definition: mgt-headers.cc:278
SupportedRates GetSupportedRates(void) const
Return the supported rates.
Definition: mgt-headers.cc:602
void SetListenInterval(uint16_t interval)
Set the listen interval.
Definition: mgt-headers.cc:530
static TypeId GetTypeId(void)
Register this type.
uint8_t m_amsduSupport
Flag if A-MSDU is supported.
Definition: mgt-headers.h:1224
void SetErpInformation(ErpInformation erpInformation)
Set the ERP information.
Definition: mgt-headers.cc:350
TypeId GetInstanceTypeId(void) const
Get the most derived TypeId for this Object.
HeCapabilities GetHeCapabilities(void) const
Return the HE capabilities.
Definition: mgt-headers.cc:776
uint16_t m_initiator
initiator
Definition: mgt-headers.h:1296
TypeId GetInstanceTypeId() const
Get the most derived TypeId for this Object.
MultihopActionValue
MultihopActionValue enumeration.
Definition: mgt-headers.h:884
void SetVhtCapabilities(VhtCapabilities vhtcapabilities)
Set the VHT capabilities.
Definition: mgt-headers.cc:758
TypeId GetInstanceTypeId(void) const
Get the most derived TypeId for this Object.
Definition: mgt-headers.cc:817
void SetParameterSet(uint16_t params)
Set the parameter set from the given raw value.
ExtendedCapabilities m_extendedCapability
Extended capabilities.
Definition: mgt-headers.h:167
uint8_t m_tid
Traffic ID.
Definition: mgt-headers.h:1104
SupportedRates m_rates
List of supported rates.
Definition: mgt-headers.h:599
ErpInformation GetErpInformation(void) const
Return the ERP information.
Definition: mgt-headers.cc:356
CapabilityInformation GetCapabilities(void) const
Return the Capability information.
Definition: mgt-headers.cc:542
uint32_t GetSerializedSize() const
void SetHtCapabilities(HtCapabilities htcapabilities)
Set the HT capabilities.
Definition: mgt-headers.cc:746
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 SetExtendedCapabilities(ExtendedCapabilities extendedcapabilities)
Set the Extended Capabilities.
Definition: mgt-headers.cc:548
void SetImmediateBlockAck()
Enable immediate Block ACK.
void SetTid(uint8_t tid)
Set Traffic ID (TID).
uint16_t GetListenInterval(void) const
Return the listen interval.
Definition: mgt-headers.cc:608
void SetParameterSet(uint16_t params)
Set the parameter set from the given raw value.
ExtendedCapabilities GetExtendedCapabilities(void) const
Return the extended capabilities.
Definition: mgt-headers.cc:554
void Print(std::ostream &os) const
Definition: mgt-headers.cc:148
HeCapabilities m_heCapability
HE capabilities.
Definition: mgt-headers.h:498
uint32_t Deserialize(Buffer::Iterator start)
Definition: mgt-headers.cc:171
void SetExtendedCapabilities(ExtendedCapabilities extendedcapabilities)
Set the extended capabilities.
Definition: mgt-headers.cc:236
MeshActionValue meshAction
mesh action
Definition: mgt-headers.h:923
ExtendedCapabilities m_extendedCapability
extended capabilities
Definition: mgt-headers.h:600
uint8_t m_amsduSupport
Flag if A-MSDU is supported.
Definition: mgt-headers.h:1102
HeOperation m_heOperation
HE operation.
Definition: mgt-headers.h:499
VhtOperation m_vhtOperation
VHT operation.
Definition: mgt-headers.h:495
void SetStartingSequence(uint16_t seq)
Set the starting sequence number.
void Serialize(Buffer::Iterator start) const
uint8_t GetTid(void) const
Return the Traffic ID (TID).
void SetVhtCapabilities(VhtCapabilities vhtcapabilities)
Set the VHT capabilities.
Definition: mgt-headers.cc:972
ErpInformation m_erpInformation
ERP information.
Definition: mgt-headers.h:818
EdcaParameterSet GetEdcaParameterSet(void) const
Return the EDCA Parameter Set.
void SetEdcaParameterSet(EdcaParameterSet edcaParameterSet)
Set the EDCA Parameter Set.
Definition: mgt-headers.cc:362
VhtOperation GetVhtOperation(void) const
Return the VHT operation.
Definition: mgt-headers.cc:990
SupportedRates GetSupportedRates(void)
Return the supported rates.
Definition: mgt-headers.cc:906
void Print(std::ostream &os) const
Definition: mgt-headers.cc:840
uint64_t m_timestamp
Timestamp.
Definition: mgt-headers.h:805
EdcaParameterSet m_edcaParameterSet
EDCA Parameter Set.
Definition: mgt-headers.h:819
void SetHtCapabilities(HtCapabilities htcapabilities)
Set the HT capabilities.
Definition: mgt-headers.cc:75
uint16_t m_listenInterval
listen interval
Definition: mgt-headers.h:171
void SetExtendedCapabilities(ExtendedCapabilities extendedcapabilities)
Set the extended capabilities.
Definition: mgt-headers.cc:936
TypeId GetInstanceTypeId(void) const
Get the most derived TypeId for this Object.
uint64_t GetTimestamp()
Return the time stamp.
Definition: mgt-headers.cc:200
uint32_t GetSerializedSize(void) const
void SetVhtOperation(VhtOperation vhtoperation)
Set the VHT operation.
Definition: mgt-headers.cc:284
void SetByOriginator(void)
Set the initiator bit in the DELBA.
Ssid GetSsid(void) const
Return the Service Set Identifier (SSID).
Definition: mgt-headers.cc:782
Status code for association response.
Definition: status-code.h:31
void SetSsid(Ssid ssid)
Set the Service Set Identifier (SSID).
Definition: mgt-headers.cc:320
std::string SelfProtectedActionValueToString(SelfProtectedActionValue value) const
Self protected action value to string function.
void Print(std::ostream &os) const
Definition: mgt-headers.cc:647
void SetByRecipient(void)
Un-set the initiator bit in the DELBA.
bool IsAmsduSupported(void) const
Return whether A-MSDU capability is supported.
static TypeId GetTypeId(void)
Register this type.
VhtCapabilities GetVhtCapabilities(void) const
Return the VHT capabilities.
Definition: mgt-headers.cc:578
VhtCapabilities m_vhtCapability
VHT capabilities.
Definition: mgt-headers.h:814
Every class exported by the ns3 library is enclosed in the ns3 namespace.
uint32_t GetSerializedSize(void) const
ExtendedCapabilities GetExtendedCapabilities(void) const
Return the extended capabilities.
Definition: mgt-headers.cc:242
void SetBeaconIntervalUs(uint64_t us)
Set the beacon interval in microseconds unit.
Definition: mgt-headers.cc:326
ExtendedCapabilities GetExtendedCapabilities(void) const
Return the extended capabilities.
Definition: mgt-headers.cc:942
The EDCA Parameter SetThis class knows how to serialise and deserialise the EDCA Parameter Set...
static TypeId GetTypeId(void)
Register this type.
Definition: mgt-headers.cc:374
HeOperation GetHeOperation(void) const
Return the HE operation.
void SetBufferSize(uint16_t size)
Set buffer size.
uint8_t GetTid(void) const
Return the Traffic ID (TID).
void SetHtOperation(HtOperation htoperation)
Set the HT operation.
Definition: mgt-headers.cc:260
void Serialize(Buffer::Iterator start) const
uint32_t Deserialize(Buffer::Iterator start)
HtCapabilities GetHtCapabilities(void) const
Return the HT capabilities.
Definition: mgt-headers.cc:254
StatusCode GetStatusCode(void) const
Return the status code.
HtCapabilities GetHtCapabilities(void) const
Return the HT capabilities.
Definition: mgt-headers.cc:81
an EUI-48 address
Definition: mac48-address.h:43
bool IsByOriginator(void) const
Check if the initiator bit in the DELBA is setted.
void SetHeCapabilities(HeCapabilities hecapabilities)
Set the HE capabilities.
Definition: mgt-headers.cc:296
HtOperation GetHtOperation(void) const
Return the HT operation.
Definition: mgt-headers.cc:966
void SetVhtCapabilities(VhtCapabilities vhtcapabilities)
Set the VHT capabilities.
Definition: mgt-headers.cc:572
tuple ssid
Definition: third.py:93
VhtCapabilities m_vhtCapability
VHT capabilities.
Definition: mgt-headers.h:169
HtCapabilities m_htCapability
HT capabilities.
Definition: mgt-headers.h:812
void SetTid(uint8_t tid)
Set Traffic ID (TID).
uint32_t Deserialize(Buffer::Iterator start)
Definition: mgt-headers.cc:459
ExtendedCapabilities GetExtendedCapabilities(void) const
Return the extended capabilities.
Definition: mgt-headers.cc:740
static TypeId GetTypeId(void)
Register this type.
Definition: mgt-headers.cc:491
void SetHeCapabilities(HeCapabilities hecapabilities)
Set the HE capabilities.
Definition: mgt-headers.cc:770
uint32_t Deserialize(Buffer::Iterator start)
Definition: mgt-headers.cc:867
uint8_t m_tid
Traffic ID.
Definition: mgt-headers.h:1226
void Print(std::ostream &os) const
uint16_t GetTimeout(void) const
Return the timeout.
uint8_t GetTid(void) const
Return the Traffic ID (TID).
uint8_t m_actionValue
Action value.
Definition: mgt-headers.h:975
The IEEE 802.11 SSID Information Element.
Definition: ssid.h:35
Implement the header for management frames of type probe request.
Definition: mgt-headers.h:507
void SetVhtCapabilities(VhtCapabilities vhtcapabilities)
Set the VHT capabilities.
Definition: mgt-headers.cc:272
void SetHeOperation(HeOperation heoperation)
Set the HE operation.
bool IsImmediateBlockAck(void) const
Return whether the Block ACK policy is immediate Block ACK.
Implement the header for management frames of type association and reassociation response.
Definition: mgt-headers.h:317
uint32_t Deserialize(Buffer::Iterator start)
StatusCode m_code
Status code.
Definition: mgt-headers.h:489
The DSSS Parameter SetThis class knows how to serialise and deserialise the DSSS Parameter Set...
SelfProtectedActionValue selfProtectedAction
self protected action
Definition: mgt-headers.h:925
ExtendedCapabilities m_extendedCapability
extended capabilities
Definition: mgt-headers.h:491
uint16_t GetStartingSequence(void) const
Return the starting sequence number.
void SetCapabilities(CapabilityInformation capabilities)
Set the Capability information.
Definition: mgt-headers.cc:924
void Serialize(Buffer::Iterator start) const
Definition: mgt-headers.cc:851
HeCapabilities GetHeCapabilities(void) const
Return the HE capabilities.
Definition: mgt-headers.cc:105
void SetEdcaParameterSet(EdcaParameterSet edcaParameterSet)
Set the EDCA Parameter Set.
uint16_t m_tid
Traffic ID.
Definition: mgt-headers.h:1297
static TypeId GetTypeId(void)
Register this type.
VhtCapabilities GetVhtCapabilities(void) const
Return the VHT capabilities.
Definition: mgt-headers.cc:764
HtOperation m_htOperation
HT operation.
Definition: mgt-headers.h:813
ExtendedCapabilities m_extendedCapability
Extended capabilities.
Definition: mgt-headers.h:305
void SetCurrentApAddress(Mac48Address currentApAddr)
Set the address of the current access point.
Definition: mgt-headers.cc:800
BlockAckActionValue blockAck
block ack
Definition: mgt-headers.h:926
static TypeId GetTypeId(void)
Register this type.
void SetSupportedRates(SupportedRates rates)
Set the supported rates.
Definition: mgt-headers.cc:918
uint8_t m_dialogToken
Not used for now.
Definition: mgt-headers.h:1222
uint16_t m_listenInterval
listen interval
Definition: mgt-headers.h:309
uint16_t GetParameterSet(void) const
Return the raw parameter set.
MultihopActionValue multihopAction
multi hop action
Definition: mgt-headers.h:924
Implement the header for management frames of type add block ack response.
Definition: mgt-headers.h:1115
EdcaParameterSet GetEdcaParameterSet(void) const
Return the EDCA Parameter Set.
Definition: mgt-headers.cc:368
Implement the header for management frames of type del block ack.
Definition: mgt-headers.h:1236
typedef for union of different ActionValues
Definition: mgt-headers.h:921
EdcaParameterSet m_edcaParameterSet
EDCA Parameter Set.
Definition: mgt-headers.h:497
HeCapabilities m_heCapability
HE capabilities.
Definition: mgt-headers.h:816
void SetHeOperation(HeOperation heoperation)
Set the HE operation.
Definition: mgt-headers.cc:308
VhtOperation GetVhtOperation(void) const
Return the VHT operation.
Definition: mgt-headers.cc:290
HtOperation GetHtOperation(void) const
Return the HT operation.
Definition: mgt-headers.cc:266
HtCapabilities GetHtCapabilities(void) const
Return the HT capabilities.
Definition: mgt-headers.cc:752
HtCapabilities m_htCapability
HT capabilities.
Definition: mgt-headers.h:306
uint8_t m_policy
Block ACK policy.
Definition: mgt-headers.h:1103
HtCapabilities m_htCapability
HT capabilities.
Definition: mgt-headers.h:492
void SetSupportedRates(SupportedRates rates)
Set the supported rates.
Definition: mgt-headers.cc:332
Ssid m_ssid
Service Set ID (SSID)
Definition: mgt-headers.h:598
void SetHtCapabilities(HtCapabilities htcapabilities)
Set the HT capabilities.
Definition: mgt-headers.cc:948
The ErpInformation Information ElementThis class knows how to serialise and deserialise the ErpInform...
CapabilityInformation GetCapabilities(void) const
Return the Capability information.
Definition: mgt-headers.cc:230
void SetSsid(Ssid ssid)
Set the Service Set Identifier (SSID).
Definition: mgt-headers.cc:39
HeOperation GetHeOperation(void) const
Return the HE operation.
Definition: mgt-headers.cc:314
void SetStatusCode(StatusCode code)
Set the status code.
Definition: mgt-headers.cc:912
void SetParameterSet(uint16_t params)
Set the parameter set from the given raw value.
void SetAmsduSupport(bool supported)
Enable or disable A-MSDU support.
HtOperation m_htOperation
HT operation.
Definition: mgt-headers.h:493
void SetCapabilities(CapabilityInformation capabilities)
Set the Capability information.
Definition: mgt-headers.cc:722
MeshActionValue
MeshActionValue enumeration.
Definition: mgt-headers.h:891
uint8_t m_category
Category of the action.
Definition: mgt-headers.h:974
void SetDelayedBlockAck()
Enable delayed Block ACK.
uint32_t Deserialize(Buffer::Iterator start)
Definition: mgt-headers.cc:672
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
Implement the header for management frames of type probe response.
Definition: mgt-headers.h:611
VhtCapabilities m_vhtCapability
VHT capabilities.
Definition: mgt-headers.h:494
uint16_t GetParameterSet(void) const
Return the raw parameter set.
ActionValue GetAction()
Return the action value.
SupportedRates m_rates
List of supported rates.
Definition: mgt-headers.h:303
uint16_t m_bufferSize
Buffer size.
Definition: mgt-headers.h:1227
uint16_t GetParameterSet(void) const
Return the raw parameter set.
uint64_t m_beaconInterval
Beacon interval.
Definition: mgt-headers.h:807
HeCapabilities GetHeCapabilities(void) const
Return the HE capabilities.
Definition: mgt-headers.cc:302
DsssParameterSet GetDsssParameterSet(void) const
Return the DSSS Parameter Set.
Definition: mgt-headers.cc:344
uint32_t GetSerializedSize(void) const
Definition: mgt-headers.cc:117
The IEEE 802.11ax HE Capabilities.
HeCapabilities m_heCapability
HE capabilities.
Definition: mgt-headers.h:170
uint16_t m_timeoutValue
Timeout.
Definition: mgt-headers.h:1228
Ssid m_ssid
Service Set ID (SSID)
Definition: mgt-headers.h:164
void SetExtendedCapabilities(ExtendedCapabilities extendedcapabilities)
Set the Extended Capabilities.
Definition: mgt-headers.cc:734
void SetAction(CategoryValue type, ActionValue action)
Set action for this Action header.
HtCapabilities GetHtCapabilities(void) const
Return the HT capabilities.
Definition: mgt-headers.cc:566
uint32_t GetSerializedSize(void) const
Definition: mgt-headers.cc:391
void SetHeCapabilities(HeCapabilities hecapabilities)
Set the HE capabilities.
Definition: mgt-headers.cc:996
a unique identifier for an interface.
Definition: type-id.h:58
void Serialize(Buffer::Iterator start) const
Definition: mgt-headers.cc:158
void SetHtCapabilities(HtCapabilities htcapabilities)
Set the HT capabilities.
Definition: mgt-headers.cc:248
Implement the header for management frames of type beacon.
Definition: mgt-headers.h:827
HeCapabilities GetHeCapabilities(void) const
Return the HE capabilities.
Definition: mgt-headers.cc:590
Implement the header for management frames of type reassociation request.
Definition: mgt-headers.h:179
uint32_t Deserialize(Buffer::Iterator start)
uint32_t GetSerializedSize(void) const
StatusCode GetStatusCode(void)
Return the status code.
Definition: mgt-headers.cc:900
CapabilityInformation m_capability
Capability information.
Definition: mgt-headers.h:304
Ssid m_ssid
Service set ID (SSID)
Definition: mgt-headers.h:806
void SetVhtCapabilities(VhtCapabilities vhtcapabilities)
Set the VHT capabilities.
Definition: mgt-headers.cc:87
void Serialize(Buffer::Iterator start) const
HeOperation m_heOperation
HE operation.
Definition: mgt-headers.h:817
uint32_t Deserialize(Buffer::Iterator start)
SelfProtectedActionValue
SelfProtectedActionValue enumeration.
Definition: mgt-headers.h:874
uint16_t GetTimeout(void) const
Return the timeout.
HtCapabilities GetHtCapabilities(void) const
Return the HT capabilities.
Definition: mgt-headers.cc:954
void Print(std::ostream &os) const
void Serialize(Buffer::Iterator start) const
Definition: mgt-headers.cc:657