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  TypeId GetInstanceTypeId (void) const;
157  void Print (std::ostream &os) const;
158  uint32_t GetSerializedSize (void) const;
159  void Serialize (Buffer::Iterator start) const;
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;
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  uint16_t GetAssociationId (void) const;
394  ErpInformation GetErpInformation (void) const;
406  void SetCapabilities (CapabilityInformation capabilities);
412  void SetExtendedCapabilities (ExtendedCapabilities extendedCapabilities);
418  void SetVhtOperation (VhtOperation vhtOperation);
424  void SetVhtCapabilities (VhtCapabilities vhtCapabilities);
430  void SetHtCapabilities (HtCapabilities htCapabilities);
436  void SetHtOperation (HtOperation htOperation);
442  void SetSupportedRates (SupportedRates rates);
448  void SetStatusCode (StatusCode code);
454  void SetAssociationId (uint16_t aid);
460  void SetErpInformation (ErpInformation erpInformation);
466  void SetEdcaParameterSet (EdcaParameterSet edcaParameterSet);
472  void SetHeCapabilities (HeCapabilities heCapabilities);
478  void SetHeOperation (HeOperation heOperation);
479 
484  static TypeId GetTypeId (void);
485  TypeId GetInstanceTypeId (void) const;
486  void Print (std::ostream &os) const;
487  uint32_t GetSerializedSize (void) const;
488  void Serialize (Buffer::Iterator start) const;
490 
491 
492 private:
496  uint16_t m_aid;
506 };
507 
508 
514 {
515 public:
517 
523  void SetSsid (Ssid ssid);
529  void SetSupportedRates (SupportedRates rates);
535  void SetExtendedCapabilities (ExtendedCapabilities extendedCapabilities);
541  void SetHtCapabilities (HtCapabilities htCapabilities);
547  void SetVhtCapabilities (VhtCapabilities vhtCapabilities);
553  void SetHeCapabilities (HeCapabilities heCapabilities);
559  Ssid GetSsid (void) const;
565  SupportedRates GetSupportedRates (void) const;
577  HtCapabilities GetHtCapabilities (void) const;
583  VhtCapabilities GetVhtCapabilities (void) const;
589  HeCapabilities GetHeCapabilities (void) const;
590 
595  static TypeId GetTypeId (void);
596  TypeId GetInstanceTypeId (void) const;
597  void Print (std::ostream &os) const;
598  uint32_t GetSerializedSize (void) const;
599  void Serialize (Buffer::Iterator start) const;
601 
602 
603 private:
610 };
611 
612 
618 {
619 public:
622 
628  Ssid GetSsid (void) const;
634  uint64_t GetBeaconIntervalUs (void) const;
640  SupportedRates GetSupportedRates (void) const;
664  HtCapabilities GetHtCapabilities (void) const;
670  HtOperation GetHtOperation (void) const;
676  VhtCapabilities GetVhtCapabilities (void) const;
682  VhtOperation GetVhtOperation (void) const;
688  HeCapabilities GetHeCapabilities (void) const;
694  HeOperation GetHeOperation (void) const;
700  ErpInformation GetErpInformation (void) const;
712  void SetCapabilities (CapabilityInformation capabilities);
718  void SetExtendedCapabilities (ExtendedCapabilities extendedCapabilities);
724  void SetHtCapabilities (HtCapabilities htCapabilities);
730  void SetHtOperation (HtOperation htOperation);
736  void SetVhtCapabilities (VhtCapabilities vhtCapabilities);
742  void SetVhtOperation (VhtOperation vhtOperation);
748  void SetHeCapabilities (HeCapabilities heCapabilities);
754  void SetHeOperation (HeOperation heOperation);
760  void SetSsid (Ssid ssid);
766  void SetBeaconIntervalUs (uint64_t us);
772  void SetSupportedRates (SupportedRates rates);
778  void SetDsssParameterSet (DsssParameterSet dsssParameterSet);
784  void SetErpInformation (ErpInformation erpInformation);
790  void SetEdcaParameterSet (EdcaParameterSet edcaParameterSet);
796  uint64_t GetTimestamp ();
797 
802  static TypeId GetTypeId (void);
803  TypeId GetInstanceTypeId (void) const;
804  void Print (std::ostream &os) const;
805  uint32_t GetSerializedSize (void) const;
806  void Serialize (Buffer::Iterator start) const;
808 
809 
810 private:
811  uint64_t m_timestamp;
813  uint64_t m_beaconInterval;
826 };
827 
828 
834 {
835 public:
841  static TypeId GetTypeId (void);
842 };
843 
844 
845 /****************************
846 * Action frames
847 *****************************/
848 
856 class WifiActionHeader : public Header
857 {
858 public:
859  WifiActionHeader ();
861 
862  /*
863  * Compatible with table 8-38 IEEE 802.11, Part11, (Year 2012)
864  * Category values - see 802.11-2012 Table 8-38
865  */
866 
868  enum CategoryValue //table 8-38 staring from IEEE 802.11, Part11, (Year 2012)
869  {
871  MESH = 13, //Category: Mesh
872  MULTIHOP = 14, //not used so far
873  SELF_PROTECTED = 15, //Category: Self Protected
874  //Since vendor specific action has no stationary Action value,the parse process is not here.
875  //Refer to vendor-specific-action in wave module.
877  };
878 
880  enum SelfProtectedActionValue //Category: 15 (Self Protected)
881  {
882  PEER_LINK_OPEN = 1, //Mesh Peering Open
883  PEER_LINK_CONFIRM = 2, //Mesh Peering Confirm
884  PEER_LINK_CLOSE = 3, //Mesh Peering Close
885  GROUP_KEY_INFORM = 4, //Mesh Group Key Inform
886  GROUP_KEY_ACK = 5, //Mesh Group Key Acknowledge
887  };
888 
891  {
892  PROXY_UPDATE = 0, //not used so far
893  PROXY_UPDATE_CONFIRMATION = 1, //not used so far
894  };
895 
898  {
899  LINK_METRIC_REPORT = 0, //Action Value:0 in Category 13: Mesh
900  PATH_SELECTION = 1, //Action Value:1 in Category 13: Mesh
901  PORTAL_ANNOUNCEMENT = 2, //Action Value:2 in Category 13: Mesh
902  CONGESTION_CONTROL_NOTIFICATION = 3, //Action Value:3 in Category 13: Mesh
903  MDA_SETUP_REQUEST = 4, //Action Value:4 in Category 13: Mesh MCCA-Setup-Request (not used so far)
904  MDA_SETUP_REPLY = 5, //Action Value:5 in Category 13: Mesh MCCA-Setup-Reply (not used so far)
905  MDAOP_ADVERTISMENT_REQUEST = 6, //Action Value:6 in Category 13: Mesh MCCA-Advertisement-Request (not used so far)
906  MDAOP_ADVERTISMENTS = 7, //Action Value:7 in Category 13: Mesh (not used so far)
907  MDAOP_SET_TEARDOWN = 8, //Action Value:8 in Category 13: Mesh (not used so far)
908  TBTT_ADJUSTMENT_REQUEST = 9, //Action Value:9 in Category 13: Mesh (not used so far)
909  TBTT_ADJUSTMENT_RESPONSE = 10, //Action Value:10 in Category 13: Mesh (not used so far)
910  };
911 
917  {
921  };
922 
923 
927  typedef union
928  {
933  } ActionValue;
934 
940  void SetAction (CategoryValue type, ActionValue action);
941 
954 
959  static TypeId GetTypeId (void);
960  TypeId GetInstanceTypeId () const;
961  void Print (std::ostream &os) const;
962  uint32_t GetSerializedSize () const;
963  void Serialize (Buffer::Iterator start) const;
965 
966 
967 private:
973  std::string CategoryValueToString (CategoryValue value) const;
980  uint8_t m_category;
981  uint8_t m_actionValue;
982 };
983 
984 
990 {
991 public:
993 
998  static TypeId GetTypeId (void);
999  TypeId GetInstanceTypeId (void) const;
1000  void Print (std::ostream &os) const;
1001  uint32_t GetSerializedSize (void) const;
1002  void Serialize (Buffer::Iterator start) const;
1003  uint32_t Deserialize (Buffer::Iterator start);
1004 
1008  void SetDelayedBlockAck ();
1012  void SetImmediateBlockAck ();
1018  void SetTid (uint8_t tid);
1024  void SetTimeout (uint16_t timeout);
1030  void SetBufferSize (uint16_t size);
1036  void SetStartingSequence (uint16_t seq);
1042  void SetAmsduSupport (bool supported);
1043 
1049  uint16_t GetStartingSequence (void) const;
1055  uint8_t GetTid (void) const;
1061  bool IsImmediateBlockAck (void) const;
1067  uint16_t GetTimeout (void) const;
1073  uint16_t GetBufferSize (void) const;
1079  bool IsAmsduSupported (void) const;
1080 
1081 private:
1087  uint16_t GetParameterSet (void) const;
1093  void SetParameterSet (uint16_t params);
1099  uint16_t GetStartingSequenceControl (void) const;
1105  void SetStartingSequenceControl (uint16_t seqControl);
1106 
1107  uint8_t m_dialogToken;
1108  uint8_t m_amsduSupport;
1109  uint8_t m_policy;
1110  uint8_t m_tid;
1111  uint16_t m_bufferSize;
1112  uint16_t m_timeoutValue;
1113  uint16_t m_startingSeq;
1114 };
1115 
1116 
1122 {
1123 public:
1125 
1130  static TypeId GetTypeId (void);
1131  TypeId GetInstanceTypeId (void) const;
1132  void Print (std::ostream &os) const;
1133  uint32_t GetSerializedSize (void) const;
1134  void Serialize (Buffer::Iterator start) const;
1135  uint32_t Deserialize (Buffer::Iterator start);
1136 
1140  void SetDelayedBlockAck ();
1144  void SetImmediateBlockAck ();
1150  void SetTid (uint8_t tid);
1156  void SetTimeout (uint16_t timeout);
1162  void SetBufferSize (uint16_t size);
1168  void SetStatusCode (StatusCode code);
1174  void SetAmsduSupport (bool supported);
1175 
1181  StatusCode GetStatusCode (void) const;
1187  uint8_t GetTid (void) const;
1193  bool IsImmediateBlockAck (void) const;
1199  uint16_t GetTimeout (void) const;
1205  uint16_t GetBufferSize (void) const;
1211  bool IsAmsduSupported (void) const;
1212 
1213 
1214 private:
1220  uint16_t GetParameterSet (void) const;
1226  void SetParameterSet (uint16_t params);
1227 
1228  uint8_t m_dialogToken;
1230  uint8_t m_amsduSupport;
1231  uint8_t m_policy;
1232  uint8_t m_tid;
1233  uint16_t m_bufferSize;
1234  uint16_t m_timeoutValue;
1235 };
1236 
1237 
1242 class MgtDelBaHeader : public Header
1243 {
1244 public:
1245  MgtDelBaHeader ();
1246 
1251  static TypeId GetTypeId (void);
1252  // Inherited
1253  TypeId GetInstanceTypeId (void) const;
1254  void Print (std::ostream &os) const;
1255  uint32_t GetSerializedSize (void) const;
1256  void Serialize (Buffer::Iterator start) const;
1257  uint32_t Deserialize (Buffer::Iterator start);
1258 
1265  bool IsByOriginator (void) const;
1271  uint8_t GetTid (void) const;
1277  void SetTid (uint8_t tid);
1281  void SetByOriginator (void);
1285  void SetByRecipient (void);
1286 
1287 
1288 private:
1294  uint16_t GetParameterSet (void) const;
1300  void SetParameterSet (uint16_t params);
1301 
1302  uint16_t m_initiator;
1303  uint16_t m_tid;
1304  uint16_t m_reasonCode;
1305 };
1306 
1307 } //namespace ns3
1308 
1309 #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
TypeId GetInstanceTypeId(void) const
Get the most derived TypeId for this Object.
Definition: mgt-headers.cc:622
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:1229
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:816
void SetCapabilities(CapabilityInformation capabilities)
Set the Capability information.
Definition: mgt-headers.cc:533
uint8_t m_policy
Block ACK policy.
Definition: mgt-headers.h:1231
void Print(std::ostream &os) const
Definition: mgt-headers.cc:410
Ssid m_ssid
Service Set ID (SSID)
Definition: mgt-headers.h:302
uint32_t GetSerializedSize(void) const
Definition: mgt-headers.cc:821
SupportedRates m_rates
List of supported rates.
Definition: mgt-headers.h:493
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:1112
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:856
SupportedRates GetSupportedRates(void) const
Return the supported rates.
Definition: mgt-headers.cc:106
HtCapabilities m_htCapability
HT capabilities.
Definition: mgt-headers.h:607
SupportedRates m_rates
List of supported rates.
Definition: mgt-headers.h:165
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:814
static TypeId GetTypeId(void)
Register this type.
Definition: mgt-headers.cc:804
VhtCapabilities m_vhtCapability
VHT capabilities.
Definition: mgt-headers.h:307
uint8_t m_dialogToken
Not used for now.
Definition: mgt-headers.h:1107
def start()
Definition: core.py:1855
CapabilityInformation m_capability
Capability information.
Definition: mgt-headers.h:494
CapabilityInformation m_capability
Capability information.
Definition: mgt-headers.h:815
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:989
void SetAssociationId(uint16_t aid)
Set the association ID.
HtCapabilities m_htCapability
HT capabilities.
Definition: mgt-headers.h:168
HeCapabilities m_heCapability
HE capabilities.
Definition: mgt-headers.h:609
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:608
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:1113
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:868
VhtOperation m_vhtOperation
VHT operation.
Definition: mgt-headers.h:821
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:817
void Print(std::ostream &os) const
HeCapabilities m_heCapability
HE capabilities.
Definition: mgt-headers.h:308
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:166
uint16_t GetTimeout(void) const
Return the timeout.
uint16_t m_bufferSize
Buffer size.
Definition: mgt-headers.h:1111
ErpInformation m_erpInformation
ERP information.
Definition: mgt-headers.h:502
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:301
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:1304
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:1230
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:1302
bool IsImmediateBlockAck(void) const
Return whether the Block Ack policy is immediate Block Ack.
std::string CategoryValueToString(CategoryValue value) const
Category value to string function.
void SetParameterSet(uint16_t params)
Set the parameter set from the given raw value.
VhtCapabilities GetVhtCapabilities(void) const
Return the VHT capabilities.
Definition: mgt-headers.cc:575
ExtendedCapabilities m_extendedCapability
Extended capabilities.
Definition: mgt-headers.h:167
uint8_t m_tid
Traffic ID.
Definition: mgt-headers.h:1110
ErpInformation GetErpInformation(void) const
Return the ERP information.
Definition: mgt-headers.cc:352
SupportedRates m_rates
List of supported rates.
Definition: mgt-headers.h:605
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:504
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:929
HtOperation GetHtOperation(void) const
Return the HT operation.
Definition: mgt-headers.cc:965
ExtendedCapabilities m_extendedCapability
extended capabilities
Definition: mgt-headers.h:606
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:1108
void SetVhtOperation(VhtOperation vhtOperation)
Set the VHT operation.
Definition: mgt-headers.cc:280
HeOperation m_heOperation
HE operation.
Definition: mgt-headers.h:505
VhtOperation m_vhtOperation
VHT operation.
Definition: mgt-headers.h:501
void SetStartingSequence(uint16_t seq)
Set the starting sequence number.
void Serialize(Buffer::Iterator start) const
ExtendedCapabilities GetExtendedCapabilities(void) const
Return the extended capabilities.
Definition: mgt-headers.cc:238
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
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:824
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:811
EdcaParameterSet m_edcaParameterSet
EDCA Parameter Set.
Definition: mgt-headers.h:825
uint16_t m_listenInterval
listen interval
Definition: mgt-headers.h:171
uint64_t GetTimestamp()
Return the time stamp.
Definition: mgt-headers.cc:196
ExtendedCapabilities GetExtendedCapabilities(void) const
Return the extended capabilities.
Definition: mgt-headers.cc:64
void SetByOriginator(void)
Set the initiator bit in the DELBA.
void Print(std::ostream &os) const
Definition: mgt-headers.cc:644
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:820
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:916
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:169
void SetExtendedCapabilities(ExtendedCapabilities extendedCapabilities)
Set the Extended Capabilities.
Definition: mgt-headers.cc:732
HtCapabilities m_htCapability
HT capabilities.
Definition: mgt-headers.h:818
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:897
uint8_t m_tid
Traffic ID.
Definition: mgt-headers.h:1232
uint8_t m_actionValue
Action value.
Definition: mgt-headers.h:981
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:513
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:317
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:495
MultihopActionValue
MultihopActionValue enumeration.
Definition: mgt-headers.h:890
The DSSS Parameter SetThis class knows how to serialise and deserialise the DSSS Parameter Set...
SelfProtectedActionValue selfProtectedAction
self protected action
Definition: mgt-headers.h:931
ExtendedCapabilities m_extendedCapability
extended capabilities
Definition: mgt-headers.h:497
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:1303
static TypeId GetTypeId(void)
Register this type.
HtOperation m_htOperation
HT operation.
Definition: mgt-headers.h:819
void SetHtCapabilities(HtCapabilities htCapabilities)
Set the HT capabilities.
Definition: mgt-headers.cc:70
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: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:932
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:1228
uint16_t m_listenInterval
listen interval
Definition: mgt-headers.h:309
HeCapabilities GetHeCapabilities(void) const
Return the HE capabilities.
MultihopActionValue multihopAction
multi hop action
Definition: mgt-headers.h:930
Implement the header for management frames of type Add Block Ack response.
Definition: mgt-headers.h:1121
Implement the header for management frames of type Delete Block Ack.
Definition: mgt-headers.h:1242
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:927
EdcaParameterSet m_edcaParameterSet
EDCA Parameter Set.
Definition: mgt-headers.h:503
TypeId GetInstanceTypeId(void) const
Get the most derived TypeId for this Object.
HeCapabilities m_heCapability
HE capabilities.
Definition: mgt-headers.h:822
void Serialize(Buffer::Iterator start) const
Definition: mgt-headers.cc:154
HtCapabilities m_htCapability
HT capabilities.
Definition: mgt-headers.h:306
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
void Serialize(Buffer::Iterator start) const
Definition: mgt-headers.cc:655
uint8_t m_policy
Block Ack policy.
Definition: mgt-headers.h:1109
HtCapabilities m_htCapability
HT capabilities.
Definition: mgt-headers.h:498
void SetSupportedRates(SupportedRates rates)
Set the supported rates.
Definition: mgt-headers.cc:328
Ssid m_ssid
Service Set ID (SSID)
Definition: mgt-headers.h:604
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:499
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:980
void SetDelayedBlockAck()
Enable delayed BlockAck.
uint32_t Deserialize(Buffer::Iterator start)
Definition: mgt-headers.cc:670
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:617
VhtCapabilities m_vhtCapability
VHT capabilities.
Definition: mgt-headers.h:500
ActionValue GetAction()
Return the action value.
SelfProtectedActionValue
SelfProtectedActionValue enumeration.
Definition: mgt-headers.h:880
SupportedRates m_rates
List of supported rates.
Definition: mgt-headers.h:303
uint16_t m_bufferSize
Buffer size.
Definition: mgt-headers.h:1233
uint64_t m_beaconInterval
Beacon interval.
Definition: mgt-headers.h:813
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:170
uint32_t GetSerializedSize(void) const
Definition: mgt-headers.cc:628
uint16_t m_timeoutValue
Timeout.
Definition: mgt-headers.h:1234
Ssid m_ssid
Service Set ID (SSID)
Definition: mgt-headers.h:164
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:833
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:179
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:304
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:812
void SetHtCapabilities(HtCapabilities htCapabilities)
Set the HT capabilities.
Definition: mgt-headers.cc:744
HeOperation m_heOperation
HE operation.
Definition: mgt-headers.h:823
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