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 "ht-capabilities.h"
32 #include "ht-operation.h"
33 #include "vht-capabilities.h"
34 #include "vht-operation.h"
35 #include "erp-information.h"
36 #include "edca-parameter-set.h"
37 #include "he-capabilities.h"
38 
39 namespace ns3 {
40 
46 {
47 public:
50 
56  void SetSsid (Ssid ssid);
62  void SetSupportedRates (SupportedRates rates);
68  void SetListenInterval (uint16_t interval);
74  void SetCapabilities (CapabilityInformation capabilities);
80  void SetHtCapabilities (HtCapabilities htcapabilities);
86  void SetVhtCapabilities (VhtCapabilities vhtcapabilities);
92  void SetHeCapabilities (HeCapabilities hecapabilities);
104  HtCapabilities GetHtCapabilities (void) const;
110  VhtCapabilities GetVhtCapabilities (void) const;
116  HeCapabilities GetHeCapabilities (void) const;
122  Ssid GetSsid (void) const;
128  SupportedRates GetSupportedRates (void) const;
134  uint16_t GetListenInterval (void) const;
135 
140  static TypeId GetTypeId (void);
141  TypeId GetInstanceTypeId (void) const;
142  void Print (std::ostream &os) const;
143  uint32_t GetSerializedSize (void) const;
144  void Serialize (Buffer::Iterator start) const;
145  uint32_t Deserialize (Buffer::Iterator start);
146 
147 
148 private:
155  uint16_t m_listenInterval;
156 };
157 
158 
164 {
165 public:
168 
174  StatusCode GetStatusCode (void);
192  HtCapabilities GetHtCapabilities (void) const;
198  HtOperation GetHtOperation (void) const;
204  VhtCapabilities GetVhtCapabilities (void) const;
210  VhtOperation GetVhtOperation (void) const;
216  HeCapabilities GetHeCapabilities (void) const;
222  ErpInformation GetErpInformation (void) const;
234  void SetCapabilities (CapabilityInformation capabilities);
240  void SetVhtOperation (VhtOperation vhtoperation);
246  void SetVhtCapabilities (VhtCapabilities vhtcapabilities);
252  void SetHtCapabilities (HtCapabilities htcapabilities);
258  void SetHtOperation (HtOperation htoperation);
264  void SetSupportedRates (SupportedRates rates);
270  void SetStatusCode (StatusCode code);
276  void SetErpInformation (ErpInformation erpInformation);
282  void SetEdcaParameterSet (EdcaParameterSet edcaParameterSet);
288  void SetHeCapabilities (HeCapabilities hecapabilities);
289 
294  static TypeId GetTypeId (void);
295  TypeId GetInstanceTypeId (void) const;
296  void Print (std::ostream &os) const;
297  uint32_t GetSerializedSize (void) const;
298  void Serialize (Buffer::Iterator start) const;
299  uint32_t Deserialize (Buffer::Iterator start);
300 
301 
302 private:
306  uint16_t m_aid;
314 };
315 
316 
322 {
323 public:
325 
331  void SetSsid (Ssid ssid);
337  void SetSupportedRates (SupportedRates rates);
343  void SetHtCapabilities (HtCapabilities htcapabilities);
349  void SetVhtCapabilities (VhtCapabilities vhtcapabilities);
355  void SetHeCapabilities (HeCapabilities hecapabilities);
361  Ssid GetSsid (void) const;
367  SupportedRates GetSupportedRates (void) const;
373  HtCapabilities GetHtCapabilities (void) const;
379  VhtCapabilities GetVhtCapabilities (void) const;
385  HeCapabilities GetHeCapabilities (void) const;
386 
391  static TypeId GetTypeId (void);
392  TypeId GetInstanceTypeId (void) const;
393  void Print (std::ostream &os) const;
394  uint32_t GetSerializedSize (void) const;
395  void Serialize (Buffer::Iterator start) const;
396  uint32_t Deserialize (Buffer::Iterator start);
397 
398 
399 private:
405 };
406 
407 
413 {
414 public:
417 
423  Ssid GetSsid (void) const;
429  uint64_t GetBeaconIntervalUs (void) const;
435  SupportedRates GetSupportedRates (void) const;
453  HtCapabilities GetHtCapabilities (void) const;
459  HtOperation GetHtOperation (void) const;
465  VhtCapabilities GetVhtCapabilities (void) const;
471  VhtOperation GetVhtOperation (void) const;
477  HeCapabilities GetHeCapabilities (void) const;
483  ErpInformation GetErpInformation (void) const;
495  void SetCapabilities (CapabilityInformation capabilities);
501  void SetHtCapabilities (HtCapabilities htcapabilities);
507  void SetHtOperation (HtOperation htoperation);
513  void SetVhtCapabilities (VhtCapabilities vhtcapabilities);
519  void SetVhtOperation (VhtOperation vhtoperation);
525  void SetHeCapabilities (HeCapabilities hecapabilities);
531  void SetSsid (Ssid ssid);
537  void SetBeaconIntervalUs (uint64_t us);
543  void SetSupportedRates (SupportedRates rates);
549  void SetDsssParameterSet (DsssParameterSet dsssParameterSet);
555  void SetErpInformation (ErpInformation erpInformation);
561  void SetEdcaParameterSet (EdcaParameterSet edcaParameterSet);
567  uint64_t GetTimestamp ();
568 
573  static TypeId GetTypeId (void);
574  TypeId GetInstanceTypeId (void) const;
575  void Print (std::ostream &os) const;
576  uint32_t GetSerializedSize (void) const;
577  void Serialize (Buffer::Iterator start) const;
578  uint32_t Deserialize (Buffer::Iterator start);
579 
580 
581 private:
582  uint64_t m_timestamp;
584  uint64_t m_beaconInterval;
595 };
596 
597 
603 {
604 public:
610  static TypeId GetTypeId (void);
611 };
612 
613 
614 /****************************
615 * Action frames
616 *****************************/
617 
625 class WifiActionHeader : public Header
626 {
627 public:
628  WifiActionHeader ();
630 
631  /*
632  * Compatible with table 8-38 IEEE 802.11, Part11, (Year 2012)
633  * Category values - see 802.11-2012 Table 8-38
634  */
635 
637  enum CategoryValue //table 8-38 staring from IEEE 802.11, Part11, (Year 2012)
638  {
640  MESH = 13, //Category: Mesh
641  MULTIHOP = 14, //not used so far
642  SELF_PROTECTED = 15, //Category: Self Protected
643  //Since vendor specific action has no stationary Action value,the parse process is not here.
644  //Refer to vendor-specific-action in wave module.
646  };
647 
649  enum SelfProtectedActionValue //Category: 15 (Self Protected)
650  {
651  PEER_LINK_OPEN = 1, //Mesh Peering Open
652  PEER_LINK_CONFIRM = 2, //Mesh Peering Confirm
653  PEER_LINK_CLOSE = 3, //Mesh Peering Close
654  GROUP_KEY_INFORM = 4, //Mesh Group Key Inform
655  GROUP_KEY_ACK = 5, //Mesh Group Key Acknowledge
656  };
657 
660  {
661  PROXY_UPDATE = 0, //not used so far
662  PROXY_UPDATE_CONFIRMATION = 1, //not used so far
663  };
664 
667  {
668  LINK_METRIC_REPORT = 0, //Action Value:0 in Category 13: Mesh
669  PATH_SELECTION = 1, //Action Value:1 in Category 13: Mesh
670  PORTAL_ANNOUNCEMENT = 2, //Action Value:2 in Category 13: Mesh
671  CONGESTION_CONTROL_NOTIFICATION = 3, //Action Value:3 in Category 13: Mesh
672  MDA_SETUP_REQUEST = 4, //Action Value:4 in Category 13: Mesh MCCA-Setup-Request (not used so far)
673  MDA_SETUP_REPLY = 5, //Action Value:5 in Category 13: Mesh MCCA-Setup-Reply (not used so far)
674  MDAOP_ADVERTISMENT_REQUEST = 6, //Action Value:6 in Category 13: Mesh MCCA-Advertisement-Request (not used so far)
675  MDAOP_ADVERTISMENTS = 7, //Action Value:7 in Category 13: Mesh (not used so far)
676  MDAOP_SET_TEARDOWN = 8, //Action Value:8 in Category 13: Mesh (not used so far)
677  TBTT_ADJUSTMENT_REQUEST = 9, //Action Value:9 in Category 13: Mesh (not used so far)
678  TBTT_ADJUSTMENT_RESPONSE = 10, //Action Value:10 in Category 13: Mesh (not used so far)
679  };
680 
686  {
690  };
691 
692 
696  typedef union
697  {
702  } ActionValue;
703 
709  void SetAction (CategoryValue type, ActionValue action);
710 
723 
728  static TypeId GetTypeId (void);
729  TypeId GetInstanceTypeId () const;
730  void Print (std::ostream &os) const;
731  uint32_t GetSerializedSize () const;
732  void Serialize (Buffer::Iterator start) const;
734 
735 
736 private:
742  std::string CategoryValueToString (CategoryValue value) const;
749  uint8_t m_category;
750  uint8_t m_actionValue;
751 };
752 
753 
759 {
760 public:
762 
767  static TypeId GetTypeId (void);
768  TypeId GetInstanceTypeId (void) const;
769  void Print (std::ostream &os) const;
770  uint32_t GetSerializedSize (void) const;
771  void Serialize (Buffer::Iterator start) const;
772  uint32_t Deserialize (Buffer::Iterator start);
773 
777  void SetDelayedBlockAck ();
781  void SetImmediateBlockAck ();
787  void SetTid (uint8_t tid);
793  void SetTimeout (uint16_t timeout);
799  void SetBufferSize (uint16_t size);
805  void SetStartingSequence (uint16_t seq);
811  void SetAmsduSupport (bool supported);
812 
818  uint16_t GetStartingSequence (void) const;
824  uint8_t GetTid (void) const;
830  bool IsImmediateBlockAck (void) const;
836  uint16_t GetTimeout (void) const;
842  uint16_t GetBufferSize (void) const;
848  bool IsAmsduSupported (void) const;
849 
850 private:
856  uint16_t GetParameterSet (void) const;
862  void SetParameterSet (uint16_t params);
868  uint16_t GetStartingSequenceControl (void) const;
874  void SetStartingSequenceControl (uint16_t seqControl);
875 
876  uint8_t m_dialogToken;
877  uint8_t m_amsduSupport;
878  uint8_t m_policy;
879  uint8_t m_tid;
880  uint16_t m_bufferSize;
881  uint16_t m_timeoutValue;
882  uint16_t m_startingSeq;
883 };
884 
885 
891 {
892 public:
894 
899  static TypeId GetTypeId (void);
900  TypeId GetInstanceTypeId (void) const;
901  void Print (std::ostream &os) const;
902  uint32_t GetSerializedSize (void) const;
903  void Serialize (Buffer::Iterator start) const;
904  uint32_t Deserialize (Buffer::Iterator start);
905 
909  void SetDelayedBlockAck ();
913  void SetImmediateBlockAck ();
919  void SetTid (uint8_t tid);
925  void SetTimeout (uint16_t timeout);
931  void SetBufferSize (uint16_t size);
937  void SetStatusCode (StatusCode code);
943  void SetAmsduSupport (bool supported);
944 
950  StatusCode GetStatusCode (void) const;
956  uint8_t GetTid (void) const;
962  bool IsImmediateBlockAck (void) const;
968  uint16_t GetTimeout (void) const;
974  uint16_t GetBufferSize (void) const;
980  bool IsAmsduSupported (void) const;
981 
982 
983 private:
989  uint16_t GetParameterSet (void) const;
995  void SetParameterSet (uint16_t params);
996 
997  uint8_t m_dialogToken;
999  uint8_t m_amsduSupport;
1000  uint8_t m_policy;
1001  uint8_t m_tid;
1002  uint16_t m_bufferSize;
1003  uint16_t m_timeoutValue;
1004 };
1005 
1006 
1011 class MgtDelBaHeader : public Header
1012 {
1013 public:
1014  MgtDelBaHeader ();
1015 
1020  static TypeId GetTypeId (void);
1021  // Inherited
1022  TypeId GetInstanceTypeId (void) const;
1023  void Print (std::ostream &os) const;
1024  uint32_t GetSerializedSize (void) const;
1025  void Serialize (Buffer::Iterator start) const;
1026  uint32_t Deserialize (Buffer::Iterator start);
1027 
1034  bool IsByOriginator (void) const;
1040  uint8_t GetTid (void) const;
1046  void SetTid (uint8_t);
1050  void SetByOriginator (void);
1054  void SetByRecipient (void);
1055 
1056 
1057 private:
1063  uint16_t GetParameterSet (void) const;
1069  void SetParameterSet (uint16_t params);
1070 
1071  uint16_t m_initiator;
1072  uint16_t m_tid;
1073  uint16_t m_reasonCode;
1074 };
1075 
1076 } //namespace ns3
1077 
1078 #endif /* MGT_HEADERS_H */
Protocol header serialization and deserialization.
Definition: header.h:42
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:93
uint16_t GetBufferSize(void) const
Return the buffer size.
void Serialize(Buffer::Iterator start) const
Definition: mgt-headers.cc:806
StatusCode m_code
Status code.
Definition: mgt-headers.h:998
uint32_t GetSerializedSize(void) const
void SetHeCapabilities(HeCapabilities hecapabilities)
Set the HE capabilities.
Definition: mgt-headers.cc:81
SupportedRates GetSupportedRates(void) const
Return the supported rates.
Definition: mgt-headers.cc:197
TypeId GetInstanceTypeId(void) const
Get the most derived TypeId for this Object.
Definition: mgt-headers.cc:561
Implement the header for management frames of type association request.
Definition: mgt-headers.h:45
DsssParameterSet m_dsssParameterSet
DSSS Parameter Set.
Definition: mgt-headers.h:587
void SetCapabilities(CapabilityInformation capabilities)
Set the Capability information.
Definition: mgt-headers.cc:484
uint8_t m_policy
Block ACK policy.
Definition: mgt-headers.h:1000
void Print(std::ostream &os) const
VhtCapabilities GetVhtCapabilities(void) const
Return the VHT capabilities.
Definition: mgt-headers.cc:75
CapabilityInformation GetCapabilities(void) const
Return the Capability information.
Definition: mgt-headers.cc:667
TypeId GetInstanceTypeId(void) const
Get the most derived TypeId for this Object.
Definition: mgt-headers.cc:340
Ssid GetSsid(void) const
Return the Service Set Identifier (SSID).
Definition: mgt-headers.cc:185
SupportedRates m_rates
List of supported rates.
Definition: mgt-headers.h:303
CategoryValue
CategoryValue enumeration.
Definition: mgt-headers.h:637
static TypeId GetTypeId(void)
Register this type.
Definition: mgt-headers.cc:550
uint16_t m_timeoutValue
Timeout.
Definition: mgt-headers.h:881
HeCapabilities GetHeCapabilities(void) const
Return the HE capabilities.
Definition: mgt-headers.cc:727
See IEEE 802.11 chapter 7.3.1.11 Header format: | category: 1 | action value: 1 |.
Definition: mgt-headers.h:625
void Print(std::ostream &os) const
HtCapabilities m_htCapability
HT capabilities.
Definition: mgt-headers.h:402
uint64_t GetBeaconIntervalUs(void) const
Return the beacon interval in microseconds unit.
Definition: mgt-headers.cc:191
SupportedRates m_rates
List of supported rates.
Definition: mgt-headers.h:150
static TypeId GetTypeId(void)
Register this type.
Definition: mgt-headers.cc:112
void SetImmediateBlockAck()
Enable immediate Block ACK.
SupportedRates m_rates
List of supported rates.
Definition: mgt-headers.h:585
uint8_t m_dialogToken
Not used for now.
Definition: mgt-headers.h:876
def start()
Definition: core.py:1790
CapabilityInformation m_capability
Capability information.
Definition: mgt-headers.h:304
CapabilityInformation m_capability
Capability information.
Definition: mgt-headers.h:586
void SetBufferSize(uint16_t size)
Set buffer size.
Implement the header for management frames of type add block ack request.
Definition: mgt-headers.h:758
bool IsImmediateBlockAck(void) const
Return whether the Block ACK policy is immediate Block ACK.
HtCapabilities m_htCapability
HT capabilities.
Definition: mgt-headers.h:152
HeCapabilities m_heCapability
HE capabilities.
Definition: mgt-headers.h:404
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:403
uint32_t GetSerializedSize(void) const
Definition: mgt-headers.cc:567
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:496
void SetCapabilities(CapabilityInformation capabilities)
Set the Capability information.
Definition: mgt-headers.cc:203
void SetSsid(Ssid ssid)
Set the Service Set Identifier (SSID).
Definition: mgt-headers.cc:466
void Print(std::ostream &os) const
uint16_t m_startingSeq
Starting sequence number.
Definition: mgt-headers.h:882
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:591
uint16_t GetBufferSize(void) const
Return the buffer size.
VhtCapabilities GetVhtCapabilities(void) const
Return the VHT capabilities.
Definition: mgt-headers.cc:703
TypeId GetInstanceTypeId(void) const
Get the most derived TypeId for this Object.
CategoryValue GetCategory()
Return the category value.
Definition: mgt-headers.cc:888
void SetVhtOperation(VhtOperation vhtoperation)
Set the VHT operation.
Definition: mgt-headers.cc:709
void SetDelayedBlockAck()
Enable delayed Block ACK.
ns3::Time timeout
void SetTid(uint8_t)
Set Traffic ID (TID).
void SetHeCapabilities(HeCapabilities hecapabilities)
Set the HE capabilities.
Definition: mgt-headers.cc:520
void SetStatusCode(StatusCode code)
Set the status code.
BlockAckActionValue
Block ACK action field values See 802.11 Table 8-202.
Definition: mgt-headers.h:685
The Supported Rates Information ElementThis class knows how to serialise and deserialise the Supporte...
CapabilityInformation m_capability
Capability information.
Definition: mgt-headers.h:151
void SetHtOperation(HtOperation htoperation)
Set the HT operation.
Definition: mgt-headers.cc:685
uint16_t m_bufferSize
Buffer size.
Definition: mgt-headers.h:880
ErpInformation m_erpInformation
ERP information.
Definition: mgt-headers.h:311
TypeId GetInstanceTypeId(void) const
Get the most derived TypeId for this Object.
Definition: mgt-headers.cc:123
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:51
void SetAmsduSupport(bool supported)
Enable or disable A-MSDU support.
Ssid GetSsid(void) const
Return the Service Set Identifier (SSID).
Definition: mgt-headers.cc:532
iterator in a Buffer instance
Definition: buffer.h:98
TypeId GetInstanceTypeId(void) const
Get the most derived TypeId for this Object.
void SetSupportedRates(SupportedRates rates)
Set the supported rates.
Definition: mgt-headers.cc:472
ErpInformation GetErpInformation(void) const
Return the ERP information.
Definition: mgt-headers.cc:739
void SetDsssParameterSet(DsssParameterSet dsssParameterSet)
Set the DSSS Parameter Set.
Definition: mgt-headers.cc:293
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:1073
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:367
void Serialize(Buffer::Iterator start) const
Definition: mgt-headers.cc:381
VhtCapabilities GetVhtCapabilities(void) const
Return the VHT capabilities.
Definition: mgt-headers.cc:245
SupportedRates GetSupportedRates(void) const
Return the supported rates.
Definition: mgt-headers.cc:538
void SetListenInterval(uint16_t interval)
Set the listen interval.
Definition: mgt-headers.cc:478
static TypeId GetTypeId(void)
Register this type.
uint8_t m_amsduSupport
Flag if A-MSDU is supported.
Definition: mgt-headers.h:999
void SetErpInformation(ErpInformation erpInformation)
Set the ERP information.
Definition: mgt-headers.cc:305
TypeId GetInstanceTypeId(void) const
Get the most derived TypeId for this Object.
uint16_t m_initiator
initiator
Definition: mgt-headers.h:1071
TypeId GetInstanceTypeId() const
Get the most derived TypeId for this Object.
MultihopActionValue
MultihopActionValue enumeration.
Definition: mgt-headers.h:659
void SetParameterSet(uint16_t params)
Set the parameter set from the given raw value.
uint8_t m_tid
Traffic ID.
Definition: mgt-headers.h:879
SupportedRates m_rates
List of supported rates.
Definition: mgt-headers.h:401
ErpInformation GetErpInformation(void) const
Return the ERP information.
Definition: mgt-headers.cc:311
CapabilityInformation GetCapabilities(void) const
Return the Capability information.
Definition: mgt-headers.cc:490
uint32_t GetSerializedSize() const
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.
Definition: mgt-headers.cc:733
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:544
void SetParameterSet(uint16_t params)
Set the parameter set from the given raw value.
void Print(std::ostream &os) const
Definition: mgt-headers.cc:129
HeCapabilities m_heCapability
HE capabilities.
Definition: mgt-headers.h:313
uint32_t Deserialize(Buffer::Iterator start)
Definition: mgt-headers.cc:151
MeshActionValue meshAction
mesh action
Definition: mgt-headers.h:698
uint8_t m_amsduSupport
Flag if A-MSDU is supported.
Definition: mgt-headers.h:877
VhtOperation m_vhtOperation
VHT operation.
Definition: mgt-headers.h:310
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:697
ErpInformation m_erpInformation
ERP information.
Definition: mgt-headers.h:593
EdcaParameterSet GetEdcaParameterSet(void) const
Return the EDCA Parameter Set.
Definition: mgt-headers.cc:751
void SetEdcaParameterSet(EdcaParameterSet edcaParameterSet)
Set the EDCA Parameter Set.
Definition: mgt-headers.cc:317
VhtOperation GetVhtOperation(void) const
Return the VHT operation.
Definition: mgt-headers.cc:715
SupportedRates GetSupportedRates(void)
Return the supported rates.
Definition: mgt-headers.cc:643
uint64_t m_timestamp
Timestamp.
Definition: mgt-headers.h:582
EdcaParameterSet m_edcaParameterSet
EDCA Parameter Set.
Definition: mgt-headers.h:594
void SetHtCapabilities(HtCapabilities htcapabilities)
Set the HT capabilities.
Definition: mgt-headers.cc:57
uint16_t m_listenInterval
listen interval
Definition: mgt-headers.h:155
TypeId GetInstanceTypeId(void) const
Get the most derived TypeId for this Object.
Definition: mgt-headers.cc:768
uint64_t GetTimestamp()
Return the time stamp.
Definition: mgt-headers.cc:179
uint32_t GetSerializedSize(void) const
void SetVhtOperation(VhtOperation vhtoperation)
Set the VHT operation.
Definition: mgt-headers.cc:251
void SetByOriginator(void)
Set the initiator bit in the DELBA.
Status code for association response.
Definition: status-code.h:31
void SetSsid(Ssid ssid)
Set the Service Set Identifier (SSID).
Definition: mgt-headers.cc:275
std::string SelfProtectedActionValueToString(SelfProtectedActionValue value) const
Self protected action value to string function.
void Print(std::ostream &os) const
Definition: mgt-headers.cc:582
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:514
VhtCapabilities m_vhtCapability
VHT capabilities.
Definition: mgt-headers.h:590
Every class exported by the ns3 library is enclosed in the ns3 namespace.
uint32_t GetSerializedSize(void) const
void SetBeaconIntervalUs(uint64_t us)
Set the beacon interval in microseconds unit.
Definition: mgt-headers.cc:281
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:329
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:227
void Serialize(Buffer::Iterator start) const
uint32_t Deserialize(Buffer::Iterator start)
HtCapabilities GetHtCapabilities(void) const
Return the HT capabilities.
Definition: mgt-headers.cc:221
StatusCode GetStatusCode(void) const
Return the status code.
HtCapabilities GetHtCapabilities(void) const
Return the HT capabilities.
Definition: mgt-headers.cc:63
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:263
HtOperation GetHtOperation(void) const
Return the HT operation.
Definition: mgt-headers.cc:691
void SetVhtCapabilities(VhtCapabilities vhtcapabilities)
Set the VHT capabilities.
Definition: mgt-headers.cc:508
tuple ssid
Definition: third.py:93
VhtCapabilities m_vhtCapability
VHT capabilities.
Definition: mgt-headers.h:153
HtCapabilities m_htCapability
HT capabilities.
Definition: mgt-headers.h:588
uint32_t Deserialize(Buffer::Iterator start)
Definition: mgt-headers.cc:410
static TypeId GetTypeId(void)
Register this type.
Definition: mgt-headers.cc:439
uint8_t m_tid
Traffic ID.
Definition: mgt-headers.h:1001
void Print(std::ostream &os) const
Definition: mgt-headers.cc:793
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:750
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:321
void SetVhtCapabilities(VhtCapabilities vhtcapabilities)
Set the VHT capabilities.
Definition: mgt-headers.cc:239
bool IsImmediateBlockAck(void) const
Return whether the Block ACK policy is immediate Block ACK.
Implement the header for management frames of type association response.
Definition: mgt-headers.h:163
uint32_t Deserialize(Buffer::Iterator start)
StatusCode m_code
Status code.
Definition: mgt-headers.h:305
The DSSS Parameter SetThis class knows how to serialise and deserialise the DSSS Parameter Set...
SelfProtectedActionValue selfProtectedAction
self protected action
Definition: mgt-headers.h:700
uint16_t GetStartingSequence(void) const
Return the starting sequence number.
void SetCapabilities(CapabilityInformation capabilities)
Set the Capability information.
Definition: mgt-headers.cc:661
HeCapabilities GetHeCapabilities(void) const
Return the HE capabilities.
Definition: mgt-headers.cc:87
void SetEdcaParameterSet(EdcaParameterSet edcaParameterSet)
Set the EDCA Parameter Set.
Definition: mgt-headers.cc:745
uint16_t m_tid
Traffic ID.
Definition: mgt-headers.h:1072
static TypeId GetTypeId(void)
Register this type.
HtOperation m_htOperation
HT operation.
Definition: mgt-headers.h:589
BlockAckActionValue blockAck
block ack
Definition: mgt-headers.h:701
static TypeId GetTypeId(void)
Register this type.
Definition: mgt-headers.cc:757
void SetSupportedRates(SupportedRates rates)
Set the supported rates.
Definition: mgt-headers.cc:655
uint8_t m_dialogToken
Not used for now.
Definition: mgt-headers.h:997
uint16_t GetParameterSet(void) const
Return the raw parameter set.
MultihopActionValue multihopAction
multi hop action
Definition: mgt-headers.h:699
Implement the header for management frames of type add block ack response.
Definition: mgt-headers.h:890
EdcaParameterSet GetEdcaParameterSet(void) const
Return the EDCA Parameter Set.
Definition: mgt-headers.cc:323
Implement the header for management frames of type del block ack.
Definition: mgt-headers.h:1011
typedef for union of different ActionValues
Definition: mgt-headers.h:696
EdcaParameterSet m_edcaParameterSet
EDCA Parameter Set.
Definition: mgt-headers.h:312
HeCapabilities m_heCapability
HE capabilities.
Definition: mgt-headers.h:592
VhtOperation GetVhtOperation(void) const
Return the VHT operation.
Definition: mgt-headers.cc:257
HtOperation GetHtOperation(void) const
Return the HT operation.
Definition: mgt-headers.cc:233
uint8_t m_policy
Block ACK policy.
Definition: mgt-headers.h:878
HtCapabilities m_htCapability
HT capabilities.
Definition: mgt-headers.h:307
void SetSupportedRates(SupportedRates rates)
Set the supported rates.
Definition: mgt-headers.cc:287
Ssid m_ssid
Service Set ID (SSID)
Definition: mgt-headers.h:400
void SetHtCapabilities(HtCapabilities htcapabilities)
Set the HT capabilities.
Definition: mgt-headers.cc:673
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:209
void SetSsid(Ssid ssid)
Set the Service Set Identifier (SSID).
Definition: mgt-headers.cc:39
void SetStatusCode(StatusCode code)
Set the status code.
Definition: mgt-headers.cc:649
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:308
MeshActionValue
MeshActionValue enumeration.
Definition: mgt-headers.h:666
uint8_t m_category
Category of the action.
Definition: mgt-headers.h:749
void SetDelayedBlockAck()
Enable delayed Block ACK.
uint32_t Deserialize(Buffer::Iterator start)
Definition: mgt-headers.cc:606
void SetTimeout(uint16_t timeout)
Set timeout.
Implement the header for management frames of type probe response.
Definition: mgt-headers.h:412
VhtCapabilities m_vhtCapability
VHT capabilities.
Definition: mgt-headers.h:309
uint16_t GetParameterSet(void) const
Return the raw parameter set.
ActionValue GetAction()
Return the action value.
Definition: mgt-headers.cc:909
uint16_t m_bufferSize
Buffer size.
Definition: mgt-headers.h:1002
uint16_t GetParameterSet(void) const
Return the raw parameter set.
uint64_t m_beaconInterval
Beacon interval.
Definition: mgt-headers.h:584
HeCapabilities GetHeCapabilities(void) const
Return the HE capabilities.
Definition: mgt-headers.cc:269
DsssParameterSet GetDsssParameterSet(void) const
Return the DSSS Parameter Set.
Definition: mgt-headers.cc:299
uint32_t GetSerializedSize(void) const
Definition: mgt-headers.cc:99
The IEEE 802.11ax HE Capabilities.
HeCapabilities m_heCapability
HE capabilities.
Definition: mgt-headers.h:154
uint16_t m_timeoutValue
Timeout.
Definition: mgt-headers.h:1003
Ssid m_ssid
Service Set ID (SSID)
Definition: mgt-headers.h:149
void SetAction(CategoryValue type, ActionValue action)
Set action for this Action header.
Definition: mgt-headers.cc:854
HtCapabilities GetHtCapabilities(void) const
Return the HT capabilities.
Definition: mgt-headers.cc:502
uint32_t GetSerializedSize(void) const
Definition: mgt-headers.cc:346
void SetHeCapabilities(HeCapabilities hecapabilities)
Set the HE capabilities.
Definition: mgt-headers.cc:721
a unique identifier for an interface.
Definition: type-id.h:58
void Serialize(Buffer::Iterator start) const
Definition: mgt-headers.cc:139
void SetHtCapabilities(HtCapabilities htcapabilities)
Set the HT capabilities.
Definition: mgt-headers.cc:215
Implement the header for management frames of type beacon.
Definition: mgt-headers.h:602
HeCapabilities GetHeCapabilities(void) const
Return the HE capabilities.
Definition: mgt-headers.cc:526
uint32_t Deserialize(Buffer::Iterator start)
Definition: mgt-headers.cc:824
uint32_t GetSerializedSize(void) const
Definition: mgt-headers.cc:774
StatusCode GetStatusCode(void)
Return the status code.
Definition: mgt-headers.cc:637
Ssid m_ssid
Service set ID (SSID)
Definition: mgt-headers.h:583
void SetVhtCapabilities(VhtCapabilities vhtcapabilities)
Set the VHT capabilities.
Definition: mgt-headers.cc:69
void Serialize(Buffer::Iterator start) const
uint32_t Deserialize(Buffer::Iterator start)
SelfProtectedActionValue
SelfProtectedActionValue enumeration.
Definition: mgt-headers.h:649
uint16_t GetTimeout(void) const
Return the timeout.
HtCapabilities GetHtCapabilities(void) const
Return the HT capabilities.
Definition: mgt-headers.cc:679
void Print(std::ostream &os) const
void Serialize(Buffer::Iterator start) const
Definition: mgt-headers.cc:592