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 "ht-capabilities.h"
35 #include "vht-capabilities.h"
36 
37 namespace ns3 {
38 
44 {
45 public:
48 
54  void SetSsid (Ssid ssid);
60  void SetSupportedRates (SupportedRates rates);
66  void SetListenInterval (uint16_t interval);
72  void SetHtCapabilities (HtCapabilities htcapabilities);
78  void SetVhtCapabilities (VhtCapabilities vhtcapabilities);
85 
91  HtCapabilities GetHtCapabilities (void) const;
92 
98  Ssid GetSsid (void) const;
104  SupportedRates GetSupportedRates (void) const;
110  uint16_t GetListenInterval (void) const;
111 
116  static TypeId GetTypeId (void);
117  virtual TypeId GetInstanceTypeId (void) const;
118  virtual void Print (std::ostream &os) const;
119  virtual uint32_t GetSerializedSize (void) const;
120  virtual void Serialize (Buffer::Iterator start) const;
121  virtual uint32_t Deserialize (Buffer::Iterator start);
122 
123 
124 private:
131 };
132 
133 
139 {
140 public:
143 
149  StatusCode GetStatusCode (void);
161  HtCapabilities GetHtCapabilities (void) const;
167  void SetVhtCapabilities (VhtCapabilities vhtcapabilities);
173  VhtCapabilities GetVhtCapabilities (void) const;
179  void SetHtCapabilities (HtCapabilities htcapabilities);
185  void SetSupportedRates (SupportedRates rates);
191  void SetStatusCode (StatusCode code);
192 
197  static TypeId GetTypeId (void);
198  virtual TypeId GetInstanceTypeId (void) const;
199  virtual void Print (std::ostream &os) const;
200  virtual uint32_t GetSerializedSize (void) const;
201  virtual void Serialize (Buffer::Iterator start) const;
202  virtual uint32_t Deserialize (Buffer::Iterator start);
203 
204 private:
208  uint16_t m_aid;
211 };
212 
213 
219 {
220 public:
222 
228  void SetSsid (Ssid ssid);
234  void SetSupportedRates (SupportedRates rates);
240  Ssid GetSsid (void) const;
246  SupportedRates GetSupportedRates (void) const;
252  HtCapabilities GetHtCapabilities (void) const;
258  void SetVhtCapabilities (VhtCapabilities vhtcapabilities);
264  VhtCapabilities GetVhtCapabilities (void) const;
265 
271  void SetHtCapabilities (HtCapabilities htcapabilities);
272 
277  static TypeId GetTypeId (void);
278  virtual TypeId GetInstanceTypeId (void) const;
279  virtual void Print (std::ostream &os) const;
280  virtual uint32_t GetSerializedSize (void) const;
281  virtual void Serialize (Buffer::Iterator start) const;
282  virtual uint32_t Deserialize (Buffer::Iterator start);
283 
284 
285 private:
290 };
291 
292 
298 {
299 public:
302 
308  Ssid GetSsid (void) const;
314  uint64_t GetBeaconIntervalUs (void) const;
320  SupportedRates GetSupportedRates (void) const;
326  HtCapabilities GetHtCapabilities (void) const;
332  void SetVhtCapabilities (VhtCapabilities vhtcapabilities);
338  VhtCapabilities GetVhtCapabilities (void) const;
344  void SetHtCapabilities (HtCapabilities htcapabilities);
350  void SetSsid (Ssid ssid);
356  void SetBeaconIntervalUs (uint64_t us);
362  void SetSupportedRates (SupportedRates rates);
368  uint64_t GetTimestamp ();
369 
374  static TypeId GetTypeId (void);
375  virtual TypeId GetInstanceTypeId (void) const;
376  virtual void Print (std::ostream &os) const;
377  virtual uint32_t GetSerializedSize (void) const;
378  virtual void Serialize (Buffer::Iterator start) const;
379  virtual uint32_t Deserialize (Buffer::Iterator start);
380 
381 private:
382  uint64_t m_timestamp;
384  uint64_t m_beaconInterval;
389 };
390 
391 
397 {
398 public:
404  static TypeId GetTypeId (void);
405 };
406 
407 
408 /****************************
409 * Action frames
410 *****************************/
411 
419 class WifiActionHeader : public Header
420 {
421 public:
422  WifiActionHeader ();
424 
425  /*
426  * Compatible with table 8-38 IEEE 802.11, Part11, (Year 2012)
427  * Category values - see 802.11-2012 Table 8-38
428  */
429 
430  enum CategoryValue //table 8-38 staring from IEEE 802.11, Part11, (Year 2012)
431  {
433  MESH = 13, //Category: Mesh
434  MULTIHOP = 14, //not used so far
435  SELF_PROTECTED = 15, //Category: Self Protected
436  //Since vendor specific action has no stationary Action value,the parse process is not here.
437  //Refer to vendor-specific-action in wave module.
439  };
440 
441  enum SelfProtectedActionValue //Category: 15 (Self Protected)
442  {
443  PEER_LINK_OPEN = 1, //Mesh Peering Open
444  PEER_LINK_CONFIRM = 2, //Mesh Peering Confirm
445  PEER_LINK_CLOSE = 3, //Mesh Peering Close
446  GROUP_KEY_INFORM = 4, //Mesh Group Key Inform
447  GROUP_KEY_ACK = 5, //Mesh Group Key Acknowledge
448  };
449 
451  {
452  PROXY_UPDATE = 0, //not used so far
453  PROXY_UPDATE_CONFIRMATION = 1, //not used so far
454  };
455 
457  {
458  LINK_METRIC_REPORT = 0, //Action Value:0 in Category 13: Mesh
459  PATH_SELECTION = 1, //Action Value:1 in Category 13: Mesh
460  PORTAL_ANNOUNCEMENT = 2, //Action Value:2 in Category 13: Mesh
461  CONGESTION_CONTROL_NOTIFICATION = 3, //Action Value:3 in Category 13: Mesh
462  MDA_SETUP_REQUEST = 4, //Action Value:4 in Category 13: Mesh MCCA-Setup-Request (not used so far)
463  MDA_SETUP_REPLY = 5, //Action Value:5 in Category 13: Mesh MCCA-Setup-Reply (not used so far)
464  MDAOP_ADVERTISMENT_REQUEST = 6, //Action Value:6 in Category 13: Mesh MCCA-Advertisement-Request (not used so far)
465  MDAOP_ADVERTISMENTS = 7, //Action Value:7 in Category 13: Mesh (not used so far)
466  MDAOP_SET_TEARDOWN = 8, //Action Value:8 in Category 13: Mesh (not used so far)
467  TBTT_ADJUSTMENT_REQUEST = 9, //Action Value:9 in Category 13: Mesh (not used so far)
468  TBTT_ADJUSTMENT_RESPONSE = 10, //Action Value:10 in Category 13: Mesh (not used so far)
469  };
470 
476  {
480  };
481 
482 
486  typedef union
487  {
488  enum MeshActionValue meshAction;
489  enum MultihopActionValue multihopAction;
490  enum SelfProtectedActionValue selfProtectedAction;
491  enum BlockAckActionValue blockAck;
492  } ActionValue;
499  void SetAction (enum CategoryValue type,ActionValue action);
500 
513 
518  static TypeId GetTypeId (void);
519  virtual TypeId GetInstanceTypeId () const;
520  virtual void Print (std::ostream &os) const;
521  virtual uint32_t GetSerializedSize () const;
522  virtual void Serialize (Buffer::Iterator start) const;
523  virtual uint32_t Deserialize (Buffer::Iterator start);
524 
525 
526 private:
527  std::string CategoryValueToString (CategoryValue value) const;
529  uint8_t m_category;
530  uint8_t m_actionValue;
531 };
532 
533 
539 {
540 public:
542 
547  static TypeId GetTypeId (void);
548  virtual TypeId GetInstanceTypeId (void) const;
549  virtual void Print (std::ostream &os) const;
550  virtual uint32_t GetSerializedSize (void) const;
551  virtual void Serialize (Buffer::Iterator start) const;
552  virtual uint32_t Deserialize (Buffer::Iterator start);
553 
557  void SetDelayedBlockAck ();
561  void SetImmediateBlockAck ();
567  void SetTid (uint8_t tid);
573  void SetTimeout (uint16_t timeout);
579  void SetBufferSize (uint16_t size);
585  void SetStartingSequence (uint16_t seq);
591  void SetAmsduSupport (bool supported);
592 
598  uint16_t GetStartingSequence (void) const;
604  uint8_t GetTid (void) const;
610  bool IsImmediateBlockAck (void) const;
616  uint16_t GetTimeout (void) const;
622  uint16_t GetBufferSize (void) const;
628  bool IsAmsduSupported (void) const;
629 
630 private:
636  uint16_t GetParameterSet (void) const;
642  void SetParameterSet (uint16_t params);
648  uint16_t GetStartingSequenceControl (void) const;
654  void SetStartingSequenceControl (uint16_t seqControl);
655 
656  uint8_t m_dialogToken; /* Not used for now */
657  uint8_t m_amsduSupport;
658  uint8_t m_policy;
659  uint8_t m_tid;
660  uint16_t m_bufferSize;
661  uint16_t m_timeoutValue;
662  uint16_t m_startingSeq;
663 };
664 
665 
671 {
672 public:
674 
679  static TypeId GetTypeId (void);
680  virtual TypeId GetInstanceTypeId (void) const;
681  virtual void Print (std::ostream &os) const;
682  virtual uint32_t GetSerializedSize (void) const;
683  virtual void Serialize (Buffer::Iterator start) const;
684  virtual uint32_t Deserialize (Buffer::Iterator start);
685 
689  void SetDelayedBlockAck ();
693  void SetImmediateBlockAck ();
699  void SetTid (uint8_t tid);
705  void SetTimeout (uint16_t timeout);
711  void SetBufferSize (uint16_t size);
717  void SetStatusCode (StatusCode code);
723  void SetAmsduSupport (bool supported);
724 
730  StatusCode GetStatusCode (void) const;
736  uint8_t GetTid (void) const;
742  bool IsImmediateBlockAck (void) const;
748  uint16_t GetTimeout (void) const;
754  uint16_t GetBufferSize (void) const;
760  bool IsAmsduSupported (void) const;
761 
762 
763 private:
769  uint16_t GetParameterSet (void) const;
775  void SetParameterSet (uint16_t params);
776 
777  uint8_t m_dialogToken; /* Not used for now */
779  uint8_t m_amsduSupport;
780  uint8_t m_policy;
781  uint8_t m_tid;
782  uint16_t m_bufferSize;
783  uint16_t m_timeoutValue;
784 };
785 
786 
791 class MgtDelBaHeader : public Header
792 {
793 public:
794  MgtDelBaHeader ();
795 
800  static TypeId GetTypeId (void);
801  // Inherited
802  virtual TypeId GetInstanceTypeId (void) const;
803  virtual void Print (std::ostream &os) const;
804  virtual uint32_t GetSerializedSize (void) const;
805  virtual void Serialize (Buffer::Iterator start) const;
806  virtual uint32_t Deserialize (Buffer::Iterator start);
807 
814  bool IsByOriginator (void) const;
820  uint8_t GetTid (void) const;
826  void SetTid (uint8_t);
830  void SetByOriginator (void);
834  void SetByRecipient (void);
835 
836 private:
842  uint16_t GetParameterSet (void) const;
848  void SetParameterSet (uint16_t params);
849 
850  uint16_t m_initiator;
851  uint16_t m_tid;
852  uint16_t m_reasonCode; /* Not used for now. Always set to 1: "Unspecified reason" */
853 };
854 
855 } //namespace ns3
856 
857 #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:943
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:580
StatusCode m_code
Status code.
Definition: mgt-headers.h:778
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:420
Implement the header for management frames of type association request.
Definition: mgt-headers.h:43
uint8_t m_policy
Block ACK policy.
Definition: mgt-headers.h:780
virtual void Print(std::ostream &os) const
Definition: mgt-headers.cc:857
VhtCapabilities GetVhtCapabilities(void) const
Return the VHT capabilities.
Definition: mgt-headers.cc:77
virtual TypeId GetInstanceTypeId(void) const
Get the most derived TypeId for this Object.
Definition: mgt-headers.cc:242
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:205
static TypeId GetTypeId(void)
Register this type.
Definition: mgt-headers.cc:409
uint16_t m_timeoutValue
Timeout.
Definition: mgt-headers.h:661
See IEEE 802.11 chapter 7.3.1.11 Header format: | category: 1 | action value: 1 |.
Definition: mgt-headers.h:419
virtual void Print(std::ostream &os) const
Definition: mgt-headers.cc:917
HtCapabilities m_htCapability
HT capabilities.
Definition: mgt-headers.h:288
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:126
static TypeId GetTypeId(void)
Register this type.
Definition: mgt-headers.cc:101
void SetImmediateBlockAck()
Enable immediate Block ACK.
Definition: mgt-headers.cc:960
SupportedRates m_rates
List of supported rates.
Definition: mgt-headers.h:385
def start()
Definition: core.py:1482
CapabilityInformation m_capability
Capability information.
Definition: mgt-headers.h:206
CapabilityInformation m_capability
Capability information.
Definition: mgt-headers.h:386
void SetBufferSize(uint16_t size)
Set buffer size.
Definition: mgt-headers.cc:979
Implement the header for management frames of type add block ack request.
Definition: mgt-headers.h:538
bool IsImmediateBlockAck(void) const
Return whether the Block ACK policy is immediate Block ACK.
HtCapabilities m_htCapability
HT capabilities.
Definition: mgt-headers.h:128
VhtCapabilities m_vhtCapability
VHT capabilities.
Definition: mgt-headers.h:289
virtual uint32_t GetSerializedSize(void) const
Definition: mgt-headers.cc:426
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:361
void SetSsid(Ssid ssid)
Set the Service Set Identifier (SSID).
Definition: mgt-headers.cc:349
virtual void Print(std::ostream &os) const
uint16_t m_startingSeq
Starting sequence number.
Definition: mgt-headers.h:662
void SetAction(enum CategoryValue type, ActionValue action)
Set action for this Action header.
Definition: mgt-headers.cc:619
std::string CategoryValueToString(CategoryValue value) const
Definition: mgt-headers.cc:800
uint16_t GetBufferSize(void) const
Return the buffer size.
VhtCapabilities GetVhtCapabilities(void) const
Return the VHT capabilities.
Definition: mgt-headers.cc:528
virtual TypeId GetInstanceTypeId(void) const
Get the most derived TypeId for this Object.
CategoryValue GetCategory()
Return the category value.
Definition: mgt-headers.cc:653
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:475
The Supported Rates Information ElementThis class knows how to serialise and deserialise the Supporte...
CapabilityInformation m_capability
Capability information.
Definition: mgt-headers.h:127
uint16_t m_bufferSize
Buffer size.
Definition: mgt-headers.h:660
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.
Definition: mgt-headers.cc:997
Ssid GetSsid(void) const
Return the Service Set Identifier (SSID).
Definition: mgt-headers.cc:391
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:355
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:264
virtual void Serialize(Buffer::Iterator start) const
Definition: mgt-headers.cc:273
VhtCapabilities GetVhtCapabilities(void) const
Return the VHT capabilities.
Definition: mgt-headers.cc:207
SupportedRates GetSupportedRates(void) const
Return the supported rates.
Definition: mgt-headers.cc:397
void SetListenInterval(uint16_t interval)
Set the listen interval.
Definition: mgt-headers.cc:367
static TypeId GetTypeId(void)
Register this type.
Definition: mgt-headers.cc:783
uint8_t m_amsduSupport
Flag if A-MSDU is supported.
Definition: mgt-headers.h:779
virtual TypeId GetInstanceTypeId(void) const
Get the most derived TypeId for this Object.
Definition: mgt-headers.cc:911
virtual TypeId GetInstanceTypeId() const
Get the most derived TypeId for this Object.
Definition: mgt-headers.cc:794
void SetParameterSet(uint16_t params)
Set the parameter set from the given raw value.
uint8_t m_tid
Traffic ID.
Definition: mgt-headers.h:659
SupportedRates m_rates
List of supported rates.
Definition: mgt-headers.h:287
virtual uint32_t GetSerializedSize() const
Definition: mgt-headers.cc:864
The IEEE 802.11ac VHT Capabilities.
void SetStartingSequenceControl(uint16_t seqControl)
Set sequence control with the given raw value.
Definition: mgt-headers.cc:991
void SetImmediateBlockAck()
Enable immediate Block ACK.
void SetTid(uint8_t tid)
Set Traffic ID (TID).
Definition: mgt-headers.cc:966
uint16_t GetListenInterval(void) const
Return the listen interval.
Definition: mgt-headers.cc:403
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:657
void SetStartingSequence(uint16_t seq)
Set the starting sequence number.
Definition: mgt-headers.cc:985
virtual void Serialize(Buffer::Iterator start) const
Definition: mgt-headers.cc:933
uint8_t GetTid(void) const
Return the Traffic ID (TID).
void SetVhtCapabilities(VhtCapabilities vhtcapabilities)
Set the VHT capabilities.
Definition: mgt-headers.cc:522
SupportedRates GetSupportedRates(void)
Return the supported rates.
Definition: mgt-headers.cc:498
uint64_t m_timestamp
Timestamp.
Definition: mgt-headers.h:382
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:551
uint64_t GetTimestamp()
Return the time stamp.
Definition: mgt-headers.cc:165
virtual uint32_t GetSerializedSize(void) const
Definition: mgt-headers.cc:922
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:213
std::string SelfProtectedActionValueToString(SelfProtectedActionValue value) const
Definition: mgt-headers.cc:826
virtual void Print(std::ostream &os) const
Definition: mgt-headers.cc:440
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:379
VhtCapabilities m_vhtCapability
VHT capabilities.
Definition: mgt-headers.h:388
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:219
static TypeId GetTypeId(void)
Register this type.
Definition: mgt-headers.cc:231
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:877
HtCapabilities GetHtCapabilities(void) const
Return the HT capabilities.
Definition: mgt-headers.cc:195
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:373
tuple ssid
Definition: third.py:93
VhtCapabilities m_vhtCapability
VHT capabilities.
Definition: mgt-headers.h:130
HtCapabilities m_htCapability
HT capabilities.
Definition: mgt-headers.h:387
virtual uint32_t Deserialize(Buffer::Iterator start)
Definition: mgt-headers.cc:297
static TypeId GetTypeId(void)
Register this type.
Definition: mgt-headers.cc:322
uint8_t m_tid
Traffic ID.
Definition: mgt-headers.h:781
virtual void Print(std::ostream &os) const
Definition: mgt-headers.cc:571
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:530
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:218
void SetVhtCapabilities(VhtCapabilities vhtcapabilities)
Set the VHT capabilities.
Definition: mgt-headers.cc:201
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:138
virtual uint32_t Deserialize(Buffer::Iterator start)
StatusCode m_code
Status code.
Definition: mgt-headers.h:207
uint16_t GetStartingSequence(void) const
Return the starting sequence number.
uint16_t m_tid
Traffic ID.
Definition: mgt-headers.h:851
static TypeId GetTypeId(void)
Register this type.
Definition: mgt-headers.cc:900
static TypeId GetTypeId(void)
Register this type.
Definition: mgt-headers.cc:540
void SetSupportedRates(SupportedRates rates)
Set the supported rates.
Definition: mgt-headers.cc:510
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:670
Implement the header for management frames of type del block ack.
Definition: mgt-headers.h:791
typedef for union of different ActionValues
Definition: mgt-headers.h:486
uint8_t m_policy
Block ACK policy.
Definition: mgt-headers.h:658
HtCapabilities m_htCapability
HT capabilities.
Definition: mgt-headers.h:209
void SetSupportedRates(SupportedRates rates)
Set the supported rates.
Definition: mgt-headers.cc:225
Ssid m_ssid
Service Set ID (SSID)
Definition: mgt-headers.h:286
void SetHtCapabilities(HtCapabilities htcapabilities)
Set the HT capabilities.
Definition: mgt-headers.cc:516
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:504
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:529
void SetDelayedBlockAck()
Enable delayed Block ACK.
Definition: mgt-headers.cc:954
virtual uint32_t Deserialize(Buffer::Iterator start)
Definition: mgt-headers.cc:462
void SetTimeout(uint16_t timeout)
Set timeout.
Definition: mgt-headers.cc:973
Implement the header for management frames of type probe response.
Definition: mgt-headers.h:297
VhtCapabilities m_vhtCapability
VHT capabilities.
Definition: mgt-headers.h:210
uint16_t GetParameterSet(void) const
Return the raw parameter set.
ActionValue GetAction()
Return the action value.
Definition: mgt-headers.cc:674
uint16_t m_bufferSize
Buffer size.
Definition: mgt-headers.h:782
uint16_t GetParameterSet(void) const
Return the raw parameter set.
uint64_t m_beaconInterval
Beacon interval.
Definition: mgt-headers.h:384
virtual uint32_t GetSerializedSize(void) const
Definition: mgt-headers.cc:89
uint16_t m_timeoutValue
Timeout.
Definition: mgt-headers.h:783
Ssid m_ssid
Service Set ID (SSID)
Definition: mgt-headers.h:125
HtCapabilities GetHtCapabilities(void) const
Return the HT capabilities.
Definition: mgt-headers.cc:385
virtual uint32_t GetSerializedSize(void) const
Definition: mgt-headers.cc:248
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:189
Implement the header for management frames of type beacon.
Definition: mgt-headers.h:396
virtual uint32_t Deserialize(Buffer::Iterator start)
Definition: mgt-headers.cc:593
virtual uint32_t GetSerializedSize(void) const
Definition: mgt-headers.cc:557
StatusCode GetStatusCode(void)
Return the status code.
Definition: mgt-headers.cc:492
Ssid m_ssid
Service set ID (SSID)
Definition: mgt-headers.h:383
void SetVhtCapabilities(VhtCapabilities vhtcapabilities)
Set the VHT capabilities.
Definition: mgt-headers.cc:71
virtual void Serialize(Buffer::Iterator start) const
Definition: mgt-headers.cc:870
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:534
virtual void Print(std::ostream &os) const
virtual void Serialize(Buffer::Iterator start) const
Definition: mgt-headers.cc:449