This documentation is not the Latest Release.
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 <stdint.h>
27 
28 #include "ns3/header.h"
29 #include "status-code.h"
30 #include "capability-information.h"
31 #include "supported-rates.h"
32 #include "ssid.h"
33 #include "ht-capabilities.h"
34 #include "vht-capabilities.h"
35 
36 namespace ns3 {
37 
43 {
44 public:
47 
53  void SetSsid (Ssid ssid);
59  void SetSupportedRates (SupportedRates rates);
65  void SetListenInterval (uint16_t interval);
71  void SetCapabilities (CapabilityInformation capabilities);
77  void SetHtCapabilities (HtCapabilities htcapabilities);
83  void SetVhtCapabilities (VhtCapabilities vhtcapabilities);
95  HtCapabilities GetHtCapabilities (void) const;
101  VhtCapabilities GetVhtCapabilities (void) const;
107  Ssid GetSsid (void) const;
113  SupportedRates GetSupportedRates (void) const;
119  uint16_t GetListenInterval (void) const;
120 
125  static TypeId GetTypeId (void);
126  virtual TypeId GetInstanceTypeId (void) const;
127  virtual void Print (std::ostream &os) const;
128  virtual uint32_t GetSerializedSize (void) const;
129  virtual void Serialize (Buffer::Iterator start) const;
130  virtual uint32_t Deserialize (Buffer::Iterator start);
131 
132 
133 private:
140 };
141 
142 
148 {
149 public:
152 
158  StatusCode GetStatusCode (void);
176  void SetCapabilities (CapabilityInformation capabilities);
182  HtCapabilities GetHtCapabilities (void) const;
188  void SetVhtCapabilities (VhtCapabilities vhtcapabilities);
194  VhtCapabilities GetVhtCapabilities (void) const;
200  void SetHtCapabilities (HtCapabilities htcapabilities);
206  void SetSupportedRates (SupportedRates rates);
212  void SetStatusCode (StatusCode code);
213 
218  static TypeId GetTypeId (void);
219  virtual TypeId GetInstanceTypeId (void) const;
220  virtual void Print (std::ostream &os) const;
221  virtual uint32_t GetSerializedSize (void) const;
222  virtual void Serialize (Buffer::Iterator start) const;
223  virtual uint32_t Deserialize (Buffer::Iterator start);
224 
225 private:
229  uint16_t m_aid;
232 };
233 
234 
240 {
241 public:
243 
249  void SetSsid (Ssid ssid);
255  void SetSupportedRates (SupportedRates rates);
261  Ssid GetSsid (void) const;
267  SupportedRates GetSupportedRates (void) const;
273  HtCapabilities GetHtCapabilities (void) const;
279  void SetVhtCapabilities (VhtCapabilities vhtcapabilities);
285  VhtCapabilities GetVhtCapabilities (void) const;
286 
292  void SetHtCapabilities (HtCapabilities htcapabilities);
293 
298  static TypeId GetTypeId (void);
299  virtual TypeId GetInstanceTypeId (void) const;
300  virtual void Print (std::ostream &os) const;
301  virtual uint32_t GetSerializedSize (void) const;
302  virtual void Serialize (Buffer::Iterator start) const;
303  virtual uint32_t Deserialize (Buffer::Iterator start);
304 
305 
306 private:
311 };
312 
313 
319 {
320 public:
323 
329  Ssid GetSsid (void) const;
335  uint64_t GetBeaconIntervalUs (void) const;
341  SupportedRates GetSupportedRates (void) const;
353  HtCapabilities GetHtCapabilities (void) const;
359  VhtCapabilities GetVhtCapabilities (void) const;
365  void SetCapabilities (CapabilityInformation capabilities);
371  void SetHtCapabilities (HtCapabilities htcapabilities);
377  void SetVhtCapabilities (VhtCapabilities vhtcapabilities);
383  void SetSsid (Ssid ssid);
389  void SetBeaconIntervalUs (uint64_t us);
395  void SetSupportedRates (SupportedRates rates);
401  uint64_t GetTimestamp ();
402 
407  static TypeId GetTypeId (void);
408  virtual TypeId GetInstanceTypeId (void) const;
409  virtual void Print (std::ostream &os) const;
410  virtual uint32_t GetSerializedSize (void) const;
411  virtual void Serialize (Buffer::Iterator start) const;
412  virtual uint32_t Deserialize (Buffer::Iterator start);
413 
414 private:
415  uint64_t m_timestamp;
417  uint64_t m_beaconInterval;
422 };
423 
424 
430 {
431 public:
437  static TypeId GetTypeId (void);
438 };
439 
440 
441 /****************************
442 * Action frames
443 *****************************/
444 
452 class WifiActionHeader : public Header
453 {
454 public:
455  WifiActionHeader ();
457 
458  /*
459  * Compatible with table 8-38 IEEE 802.11, Part11, (Year 2012)
460  * Category values - see 802.11-2012 Table 8-38
461  */
462 
463  enum CategoryValue //table 8-38 staring from IEEE 802.11, Part11, (Year 2012)
464  {
466  MESH = 13, //Category: Mesh
467  MULTIHOP = 14, //not used so far
468  SELF_PROTECTED = 15, //Category: Self Protected
469  //Since vendor specific action has no stationary Action value,the parse process is not here.
470  //Refer to vendor-specific-action in wave module.
472  };
473 
474  enum SelfProtectedActionValue //Category: 15 (Self Protected)
475  {
476  PEER_LINK_OPEN = 1, //Mesh Peering Open
477  PEER_LINK_CONFIRM = 2, //Mesh Peering Confirm
478  PEER_LINK_CLOSE = 3, //Mesh Peering Close
479  GROUP_KEY_INFORM = 4, //Mesh Group Key Inform
480  GROUP_KEY_ACK = 5, //Mesh Group Key Acknowledge
481  };
482 
484  {
485  PROXY_UPDATE = 0, //not used so far
486  PROXY_UPDATE_CONFIRMATION = 1, //not used so far
487  };
488 
490  {
491  LINK_METRIC_REPORT = 0, //Action Value:0 in Category 13: Mesh
492  PATH_SELECTION = 1, //Action Value:1 in Category 13: Mesh
493  PORTAL_ANNOUNCEMENT = 2, //Action Value:2 in Category 13: Mesh
494  CONGESTION_CONTROL_NOTIFICATION = 3, //Action Value:3 in Category 13: Mesh
495  MDA_SETUP_REQUEST = 4, //Action Value:4 in Category 13: Mesh MCCA-Setup-Request (not used so far)
496  MDA_SETUP_REPLY = 5, //Action Value:5 in Category 13: Mesh MCCA-Setup-Reply (not used so far)
497  MDAOP_ADVERTISMENT_REQUEST = 6, //Action Value:6 in Category 13: Mesh MCCA-Advertisement-Request (not used so far)
498  MDAOP_ADVERTISMENTS = 7, //Action Value:7 in Category 13: Mesh (not used so far)
499  MDAOP_SET_TEARDOWN = 8, //Action Value:8 in Category 13: Mesh (not used so far)
500  TBTT_ADJUSTMENT_REQUEST = 9, //Action Value:9 in Category 13: Mesh (not used so far)
501  TBTT_ADJUSTMENT_RESPONSE = 10, //Action Value:10 in Category 13: Mesh (not used so far)
502  };
503 
509  {
513  };
514 
515 
519  typedef union
520  {
521  enum MeshActionValue meshAction;
522  enum MultihopActionValue multihopAction;
523  enum SelfProtectedActionValue selfProtectedAction;
524  enum BlockAckActionValue blockAck;
525  } ActionValue;
532  void SetAction (enum CategoryValue type,ActionValue action);
533 
546 
551  static TypeId GetTypeId (void);
552  virtual TypeId GetInstanceTypeId () const;
553  virtual void Print (std::ostream &os) const;
554  virtual uint32_t GetSerializedSize () const;
555  virtual void Serialize (Buffer::Iterator start) const;
556  virtual uint32_t Deserialize (Buffer::Iterator start);
557 
558 
559 private:
560  std::string CategoryValueToString (CategoryValue value) const;
562  uint8_t m_category;
563  uint8_t m_actionValue;
564 };
565 
566 
572 {
573 public:
575 
580  static TypeId GetTypeId (void);
581  virtual TypeId GetInstanceTypeId (void) const;
582  virtual void Print (std::ostream &os) const;
583  virtual uint32_t GetSerializedSize (void) const;
584  virtual void Serialize (Buffer::Iterator start) const;
585  virtual uint32_t Deserialize (Buffer::Iterator start);
586 
590  void SetDelayedBlockAck ();
594  void SetImmediateBlockAck ();
600  void SetTid (uint8_t tid);
606  void SetTimeout (uint16_t timeout);
612  void SetBufferSize (uint16_t size);
618  void SetStartingSequence (uint16_t seq);
624  void SetAmsduSupport (bool supported);
625 
631  uint16_t GetStartingSequence (void) const;
637  uint8_t GetTid (void) const;
643  bool IsImmediateBlockAck (void) const;
649  uint16_t GetTimeout (void) const;
655  uint16_t GetBufferSize (void) const;
661  bool IsAmsduSupported (void) const;
662 
663 private:
669  uint16_t GetParameterSet (void) const;
675  void SetParameterSet (uint16_t params);
681  uint16_t GetStartingSequenceControl (void) const;
687  void SetStartingSequenceControl (uint16_t seqControl);
688 
689  uint8_t m_dialogToken; /* Not used for now */
690  uint8_t m_amsduSupport;
691  uint8_t m_policy;
692  uint8_t m_tid;
693  uint16_t m_bufferSize;
694  uint16_t m_timeoutValue;
695  uint16_t m_startingSeq;
696 };
697 
698 
704 {
705 public:
707 
712  static TypeId GetTypeId (void);
713  virtual TypeId GetInstanceTypeId (void) const;
714  virtual void Print (std::ostream &os) const;
715  virtual uint32_t GetSerializedSize (void) const;
716  virtual void Serialize (Buffer::Iterator start) const;
717  virtual uint32_t Deserialize (Buffer::Iterator start);
718 
722  void SetDelayedBlockAck ();
726  void SetImmediateBlockAck ();
732  void SetTid (uint8_t tid);
738  void SetTimeout (uint16_t timeout);
744  void SetBufferSize (uint16_t size);
750  void SetStatusCode (StatusCode code);
756  void SetAmsduSupport (bool supported);
757 
763  StatusCode GetStatusCode (void) const;
769  uint8_t GetTid (void) const;
775  bool IsImmediateBlockAck (void) const;
781  uint16_t GetTimeout (void) const;
787  uint16_t GetBufferSize (void) const;
793  bool IsAmsduSupported (void) const;
794 
795 
796 private:
802  uint16_t GetParameterSet (void) const;
808  void SetParameterSet (uint16_t params);
809 
810  uint8_t m_dialogToken; /* Not used for now */
812  uint8_t m_amsduSupport;
813  uint8_t m_policy;
814  uint8_t m_tid;
815  uint16_t m_bufferSize;
816  uint16_t m_timeoutValue;
817 };
818 
819 
824 class MgtDelBaHeader : public Header
825 {
826 public:
827  MgtDelBaHeader ();
828 
833  static TypeId GetTypeId (void);
834  // Inherited
835  virtual TypeId GetInstanceTypeId (void) const;
836  virtual void Print (std::ostream &os) const;
837  virtual uint32_t GetSerializedSize (void) const;
838  virtual void Serialize (Buffer::Iterator start) const;
839  virtual uint32_t Deserialize (Buffer::Iterator start);
840 
847  bool IsByOriginator (void) const;
853  uint8_t GetTid (void) const;
859  void SetTid (uint8_t);
863  void SetByOriginator (void);
867  void SetByRecipient (void);
868 
869 private:
875  uint16_t GetParameterSet (void) const;
881  void SetParameterSet (uint16_t params);
882 
883  uint16_t m_initiator;
884  uint16_t m_tid;
885  uint16_t m_reasonCode; /* Not used for now. Always set to 1: "Unspecified reason" */
886 };
887 
888 } //namespace ns3
889 
890 #endif /* MGT_HEADERS_H */
Protocol header serialization and deserialization.
Definition: header.h:42
static TypeId GetTypeId(void)
Register this type.
virtual uint32_t Deserialize(Buffer::Iterator start)
Definition: mgt-headers.cc:979
SupportedRates GetSupportedRates(void) const
Return the supported rates.
Definition: mgt-headers.cc:83
uint16_t GetBufferSize(void) const
Return the buffer size.
virtual void Serialize(Buffer::Iterator start) const
Definition: mgt-headers.cc:616
StatusCode m_code
Status code.
Definition: mgt-headers.h:811
virtual uint32_t GetSerializedSize(void) const
SupportedRates GetSupportedRates(void) const
Return the supported rates.
Definition: mgt-headers.cc:183
virtual TypeId GetInstanceTypeId(void) const
Get the most derived TypeId for this Object.
Definition: mgt-headers.cc:444
Implement the header for management frames of type association request.
Definition: mgt-headers.h:42
void SetCapabilities(CapabilityInformation capabilities)
Set the Capability information.
Definition: mgt-headers.cc:379
uint8_t m_policy
Block ACK policy.
Definition: mgt-headers.h:813
virtual void Print(std::ostream &os) const
Definition: mgt-headers.cc:893
VhtCapabilities GetVhtCapabilities(void) const
Return the VHT capabilities.
Definition: mgt-headers.cc:77
CapabilityInformation GetCapabilities(void) const
Return the Capability information.
Definition: mgt-headers.cc:546
virtual TypeId GetInstanceTypeId(void) const
Get the most derived TypeId for this Object.
Definition: mgt-headers.cc:254
Ssid GetSsid(void) const
Return the Service Set Identifier (SSID).
Definition: mgt-headers.cc:171
SupportedRates m_rates
List of supported rates.
Definition: mgt-headers.h:226
static TypeId GetTypeId(void)
Register this type.
Definition: mgt-headers.cc:433
uint16_t m_timeoutValue
Timeout.
Definition: mgt-headers.h:694
See IEEE 802.11 chapter 7.3.1.11 Header format: | category: 1 | action value: 1 |.
Definition: mgt-headers.h:452
virtual void Print(std::ostream &os) const
Definition: mgt-headers.cc:953
HtCapabilities m_htCapability
HT capabilities.
Definition: mgt-headers.h:309
uint64_t GetBeaconIntervalUs(void) const
Return the beacon interval in microseconds unit.
Definition: mgt-headers.cc:177
SupportedRates m_rates
List of supported rates.
Definition: mgt-headers.h:135
static TypeId GetTypeId(void)
Register this type.
Definition: mgt-headers.cc:101
void SetImmediateBlockAck()
Enable immediate Block ACK.
Definition: mgt-headers.cc:996
SupportedRates m_rates
List of supported rates.
Definition: mgt-headers.h:418
def start()
Definition: core.py:1482
CapabilityInformation m_capability
Capability information.
Definition: mgt-headers.h:227
CapabilityInformation m_capability
Capability information.
Definition: mgt-headers.h:419
void SetBufferSize(uint16_t size)
Set buffer size.
Implement the header for management frames of type add block ack request.
Definition: mgt-headers.h:571
bool IsImmediateBlockAck(void) const
Return whether the Block ACK policy is immediate Block ACK.
HtCapabilities m_htCapability
HT capabilities.
Definition: mgt-headers.h:137
VhtCapabilities m_vhtCapability
VHT capabilities.
Definition: mgt-headers.h:310
virtual uint32_t GetSerializedSize(void) const
Definition: mgt-headers.cc:450
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:391
void SetCapabilities(CapabilityInformation capabilities)
Set the Capability information.
Definition: mgt-headers.cc:189
void SetSsid(Ssid ssid)
Set the Service Set Identifier (SSID).
Definition: mgt-headers.cc:361
virtual void Print(std::ostream &os) const
uint16_t m_startingSeq
Starting sequence number.
Definition: mgt-headers.h:695
void SetAction(enum CategoryValue type, ActionValue action)
Set action for this Action header.
Definition: mgt-headers.cc:655
std::string CategoryValueToString(CategoryValue value) const
Definition: mgt-headers.cc:836
uint16_t GetBufferSize(void) const
Return the buffer size.
VhtCapabilities GetVhtCapabilities(void) const
Return the VHT capabilities.
Definition: mgt-headers.cc:564
virtual TypeId GetInstanceTypeId(void) const
Get the most derived TypeId for this Object.
CategoryValue GetCategory()
Return the category value.
Definition: mgt-headers.cc:689
void SetDelayedBlockAck()
Enable delayed Block ACK.
ns3::Time timeout
void SetTid(uint8_t)
Set Traffic ID (TID).
void SetStatusCode(StatusCode code)
Set the status code.
BlockAckActionValue
Block ACK action field values See 802.11 Table 8-202.
Definition: mgt-headers.h:508
The Supported Rates Information ElementThis class knows how to serialise and deserialise the Supporte...
CapabilityInformation m_capability
Capability information.
Definition: mgt-headers.h:136
uint16_t m_bufferSize
Buffer size.
Definition: mgt-headers.h:693
virtual TypeId GetInstanceTypeId(void) const
Get the most derived TypeId for this Object.
Definition: mgt-headers.cc:112
void SetTimeout(uint16_t timeout)
Set timeout.
Ssid GetSsid(void) const
Return the Service Set Identifier (SSID).
Definition: mgt-headers.cc:47
Capability information.
void SetSupportedRates(SupportedRates rates)
Set the supported rates.
Definition: mgt-headers.cc:53
void SetAmsduSupport(bool supported)
Enable or disable A-MSDU support.
Ssid GetSsid(void) const
Return the Service Set Identifier (SSID).
Definition: mgt-headers.cc:415
iterator in a Buffer instance
Definition: buffer.h:98
virtual TypeId GetInstanceTypeId(void) const
Get the most derived TypeId for this Object.
void SetSupportedRates(SupportedRates rates)
Set the supported rates.
Definition: mgt-headers.cc:367
bool IsAmsduSupported(void) const
Return whether A-MSDU capability is supported.
uint16_t GetStartingSequenceControl(void) const
Return the raw sequence control.
virtual void Serialize(Buffer::Iterator start) const
void SetTid(uint8_t tid)
Set Traffic ID (TID).
virtual void Print(std::ostream &os) const
Definition: mgt-headers.cc:276
virtual void Serialize(Buffer::Iterator start) const
Definition: mgt-headers.cc:285
VhtCapabilities GetVhtCapabilities(void) const
Return the VHT capabilities.
Definition: mgt-headers.cc:219
SupportedRates GetSupportedRates(void) const
Return the supported rates.
Definition: mgt-headers.cc:421
void SetListenInterval(uint16_t interval)
Set the listen interval.
Definition: mgt-headers.cc:373
static TypeId GetTypeId(void)
Register this type.
Definition: mgt-headers.cc:819
uint8_t m_amsduSupport
Flag if A-MSDU is supported.
Definition: mgt-headers.h:812
virtual TypeId GetInstanceTypeId(void) const
Get the most derived TypeId for this Object.
Definition: mgt-headers.cc:947
virtual TypeId GetInstanceTypeId() const
Get the most derived TypeId for this Object.
Definition: mgt-headers.cc:830
void SetParameterSet(uint16_t params)
Set the parameter set from the given raw value.
uint8_t m_tid
Traffic ID.
Definition: mgt-headers.h:692
SupportedRates m_rates
List of supported rates.
Definition: mgt-headers.h:308
CapabilityInformation GetCapabilities(void) const
Return the Capability information.
Definition: mgt-headers.cc:385
virtual uint32_t GetSerializedSize() const
Definition: mgt-headers.cc:900
The IEEE 802.11ac VHT Capabilities.
void SetStartingSequenceControl(uint16_t seqControl)
Set sequence control with the given raw value.
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:427
void SetParameterSet(uint16_t params)
Set the parameter set from the given raw value.
virtual void Print(std::ostream &os) const
Definition: mgt-headers.cc:118
virtual uint32_t Deserialize(Buffer::Iterator start)
Definition: mgt-headers.cc:138
uint8_t m_amsduSupport
Flag if A-MSDU is supported.
Definition: mgt-headers.h:690
void SetStartingSequence(uint16_t seq)
Set the starting sequence number.
virtual void Serialize(Buffer::Iterator start) const
Definition: mgt-headers.cc:969
uint8_t GetTid(void) const
Return the Traffic ID (TID).
void SetVhtCapabilities(VhtCapabilities vhtcapabilities)
Set the VHT capabilities.
Definition: mgt-headers.cc:558
SupportedRates GetSupportedRates(void)
Return the supported rates.
Definition: mgt-headers.cc:522
uint64_t m_timestamp
Timestamp.
Definition: mgt-headers.h:415
void SetHtCapabilities(HtCapabilities htcapabilities)
Set the HT capabilities.
Definition: mgt-headers.cc:59
virtual TypeId GetInstanceTypeId(void) const
Get the most derived TypeId for this Object.
Definition: mgt-headers.cc:587
uint64_t GetTimestamp()
Return the time stamp.
Definition: mgt-headers.cc:165
virtual uint32_t GetSerializedSize(void) const
Definition: mgt-headers.cc:958
void SetByOriginator(void)
Set the initiator bit in the DELBA.
Status code for association response.
Definition: status-code.h:33
void SetSsid(Ssid ssid)
Set the Service Set Identifier (SSID).
Definition: mgt-headers.cc:225
std::string SelfProtectedActionValueToString(SelfProtectedActionValue value) const
Definition: mgt-headers.cc:862
virtual void Print(std::ostream &os) const
Definition: mgt-headers.cc:464
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:409
VhtCapabilities m_vhtCapability
VHT capabilities.
Definition: mgt-headers.h:421
Every class exported by the ns3 library is enclosed in the ns3 namespace.
virtual uint32_t GetSerializedSize(void) const
void SetBeaconIntervalUs(uint64_t us)
Set the beacon interval in microseconds unit.
Definition: mgt-headers.cc:231
static TypeId GetTypeId(void)
Register this type.
Definition: mgt-headers.cc:243
void SetBufferSize(uint16_t size)
Set buffer size.
uint8_t GetTid(void) const
Return the Traffic ID (TID).
virtual void Serialize(Buffer::Iterator start) const
virtual uint32_t Deserialize(Buffer::Iterator start)
Definition: mgt-headers.cc:913
HtCapabilities GetHtCapabilities(void) const
Return the HT capabilities.
Definition: mgt-headers.cc:207
StatusCode GetStatusCode(void) const
Return the status code.
HtCapabilities GetHtCapabilities(void) const
Return the HT capabilities.
Definition: mgt-headers.cc:65
bool IsByOriginator(void) const
Check if the initiator bit in the DELBA is setted.
void SetVhtCapabilities(VhtCapabilities vhtcapabilities)
Set the VHT capabilities.
Definition: mgt-headers.cc:403
tuple ssid
Definition: third.py:93
VhtCapabilities m_vhtCapability
VHT capabilities.
Definition: mgt-headers.h:138
HtCapabilities m_htCapability
HT capabilities.
Definition: mgt-headers.h:420
virtual uint32_t Deserialize(Buffer::Iterator start)
Definition: mgt-headers.cc:309
static TypeId GetTypeId(void)
Register this type.
Definition: mgt-headers.cc:334
uint8_t m_tid
Traffic ID.
Definition: mgt-headers.h:814
virtual void Print(std::ostream &os) const
Definition: mgt-headers.cc:607
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:563
The IEEE 802.11 SSID Information Element.
Definition: ssid.h:38
Implement the header for management frames of type probe request.
Definition: mgt-headers.h:239
void SetVhtCapabilities(VhtCapabilities vhtcapabilities)
Set the VHT capabilities.
Definition: mgt-headers.cc:213
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:147
virtual uint32_t Deserialize(Buffer::Iterator start)
StatusCode m_code
Status code.
Definition: mgt-headers.h:228
uint16_t GetStartingSequence(void) const
Return the starting sequence number.
void SetCapabilities(CapabilityInformation capabilities)
Set the Capability information.
Definition: mgt-headers.cc:540
uint16_t m_tid
Traffic ID.
Definition: mgt-headers.h:884
static TypeId GetTypeId(void)
Register this type.
Definition: mgt-headers.cc:936
static TypeId GetTypeId(void)
Register this type.
Definition: mgt-headers.cc:576
void SetSupportedRates(SupportedRates rates)
Set the supported rates.
Definition: mgt-headers.cc:534
uint16_t GetParameterSet(void) const
Return the raw parameter set.
Implement the header for management frames of type add block ack response.
Definition: mgt-headers.h:703
Implement the header for management frames of type del block ack.
Definition: mgt-headers.h:824
typedef for union of different ActionValues
Definition: mgt-headers.h:519
uint8_t m_policy
Block ACK policy.
Definition: mgt-headers.h:691
HtCapabilities m_htCapability
HT capabilities.
Definition: mgt-headers.h:230
void SetSupportedRates(SupportedRates rates)
Set the supported rates.
Definition: mgt-headers.cc:237
Ssid m_ssid
Service Set ID (SSID)
Definition: mgt-headers.h:307
void SetHtCapabilities(HtCapabilities htcapabilities)
Set the HT capabilities.
Definition: mgt-headers.cc:552
CapabilityInformation GetCapabilities(void) const
Return the Capability information.
Definition: mgt-headers.cc:195
void SetSsid(Ssid ssid)
Set the Service Set Identifier (SSID).
Definition: mgt-headers.cc:41
void SetStatusCode(StatusCode code)
Set the status code.
Definition: mgt-headers.cc:528
void SetParameterSet(uint16_t params)
Set the parameter set from the given raw value.
void SetAmsduSupport(bool supported)
Enable or disable A-MSDU support.
uint8_t m_category
Category of the action.
Definition: mgt-headers.h:562
void SetDelayedBlockAck()
Enable delayed Block ACK.
Definition: mgt-headers.cc:990
virtual uint32_t Deserialize(Buffer::Iterator start)
Definition: mgt-headers.cc:486
void SetTimeout(uint16_t timeout)
Set timeout.
Implement the header for management frames of type probe response.
Definition: mgt-headers.h:318
VhtCapabilities m_vhtCapability
VHT capabilities.
Definition: mgt-headers.h:231
uint16_t GetParameterSet(void) const
Return the raw parameter set.
ActionValue GetAction()
Return the action value.
Definition: mgt-headers.cc:710
uint16_t m_bufferSize
Buffer size.
Definition: mgt-headers.h:815
uint16_t GetParameterSet(void) const
Return the raw parameter set.
uint64_t m_beaconInterval
Beacon interval.
Definition: mgt-headers.h:417
virtual uint32_t GetSerializedSize(void) const
Definition: mgt-headers.cc:89
uint16_t m_timeoutValue
Timeout.
Definition: mgt-headers.h:816
Ssid m_ssid
Service Set ID (SSID)
Definition: mgt-headers.h:134
HtCapabilities GetHtCapabilities(void) const
Return the HT capabilities.
Definition: mgt-headers.cc:397
virtual uint32_t GetSerializedSize(void) const
Definition: mgt-headers.cc:260
a unique identifier for an interface.
Definition: type-id.h:58
virtual void Serialize(Buffer::Iterator start) const
Definition: mgt-headers.cc:127
void SetHtCapabilities(HtCapabilities htcapabilities)
Set the HT capabilities.
Definition: mgt-headers.cc:201
Implement the header for management frames of type beacon.
Definition: mgt-headers.h:429
virtual uint32_t Deserialize(Buffer::Iterator start)
Definition: mgt-headers.cc:629
virtual uint32_t GetSerializedSize(void) const
Definition: mgt-headers.cc:593
StatusCode GetStatusCode(void)
Return the status code.
Definition: mgt-headers.cc:516
Ssid m_ssid
Service set ID (SSID)
Definition: mgt-headers.h:416
void SetVhtCapabilities(VhtCapabilities vhtcapabilities)
Set the VHT capabilities.
Definition: mgt-headers.cc:71
virtual void Serialize(Buffer::Iterator start) const
Definition: mgt-headers.cc:906
virtual uint32_t Deserialize(Buffer::Iterator start)
uint16_t GetTimeout(void) const
Return the timeout.
HtCapabilities GetHtCapabilities(void) const
Return the HT capabilities.
Definition: mgt-headers.cc:570
virtual void Print(std::ostream &os) const
virtual void Serialize(Buffer::Iterator start) const
Definition: mgt-headers.cc:473