A Discrete-Event Network Simulator
API
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
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-operations.h"
35 #include "vht-capabilities.h"
36 #include "erp-information.h"
37 
38 namespace ns3 {
39 
45 {
46 public:
49 
55  void SetSsid (Ssid ssid);
61  void SetSupportedRates (SupportedRates rates);
67  void SetListenInterval (uint16_t interval);
73  void SetCapabilities (CapabilityInformation capabilities);
79  void SetHtCapabilities (HtCapabilities htcapabilities);
85  void SetVhtCapabilities (VhtCapabilities vhtcapabilities);
97  HtCapabilities GetHtCapabilities (void) const;
103  VhtCapabilities GetVhtCapabilities (void) const;
109  Ssid GetSsid (void) const;
115  SupportedRates GetSupportedRates (void) const;
121  uint16_t GetListenInterval (void) const;
122 
127  static TypeId GetTypeId (void);
128  virtual TypeId GetInstanceTypeId (void) const;
129  virtual void Print (std::ostream &os) const;
130  virtual uint32_t GetSerializedSize (void) const;
131  virtual void Serialize (Buffer::Iterator start) const;
132  virtual uint32_t Deserialize (Buffer::Iterator start);
133 
134 
135 private:
142 };
143 
144 
150 {
151 public:
154 
160  StatusCode GetStatusCode (void);
178  void SetCapabilities (CapabilityInformation capabilities);
184  HtCapabilities GetHtCapabilities (void) const;
190  HtOperations GetHtOperations (void) const;
196  ErpInformation GetErpInformation (void) const;
202  void SetVhtCapabilities (VhtCapabilities vhtcapabilities);
208  VhtCapabilities GetVhtCapabilities (void) const;
214  void SetHtCapabilities (HtCapabilities htcapabilities);
220  void SetHtOperations (HtOperations htoperations);
226  void SetSupportedRates (SupportedRates rates);
232  void SetStatusCode (StatusCode code);
238  void SetErpInformation (ErpInformation erpInformation);
239 
244  static TypeId GetTypeId (void);
245  virtual TypeId GetInstanceTypeId (void) const;
246  virtual void Print (std::ostream &os) const;
247  virtual uint32_t GetSerializedSize (void) const;
248  virtual void Serialize (Buffer::Iterator start) const;
249  virtual uint32_t Deserialize (Buffer::Iterator start);
250 
251 
252 private:
256  uint16_t m_aid;
261 };
262 
263 
269 {
270 public:
272 
278  void SetSsid (Ssid ssid);
284  void SetSupportedRates (SupportedRates rates);
290  Ssid GetSsid (void) const;
296  SupportedRates GetSupportedRates (void) const;
302  void SetHtCapabilities (HtCapabilities htcapabilities);
308  HtCapabilities GetHtCapabilities (void) const;
314  void SetVhtCapabilities (VhtCapabilities vhtcapabilities);
320  VhtCapabilities GetVhtCapabilities (void) const;
321 
326  static TypeId GetTypeId (void);
327  virtual TypeId GetInstanceTypeId (void) const;
328  virtual void Print (std::ostream &os) const;
329  virtual uint32_t GetSerializedSize (void) const;
330  virtual void Serialize (Buffer::Iterator start) const;
331  virtual uint32_t Deserialize (Buffer::Iterator start);
332 
333 
334 private:
339 };
340 
341 
347 {
348 public:
351 
357  Ssid GetSsid (void) const;
363  uint64_t GetBeaconIntervalUs (void) const;
369  SupportedRates GetSupportedRates (void) const;
381  HtCapabilities GetHtCapabilities (void) const;
387  HtOperations GetHtOperations (void) const;
393  VhtCapabilities GetVhtCapabilities (void) const;
399  ErpInformation GetErpInformation (void) const;
405  void SetCapabilities (CapabilityInformation capabilities);
411  void SetHtCapabilities (HtCapabilities htcapabilities);
417  void SetHtOperations (HtOperations htoperations);
423  void SetVhtCapabilities (VhtCapabilities vhtcapabilities);
429  void SetSsid (Ssid ssid);
435  void SetBeaconIntervalUs (uint64_t us);
441  void SetSupportedRates (SupportedRates rates);
447  void SetErpInformation (ErpInformation erpInformation);
453  uint64_t GetTimestamp ();
454 
459  static TypeId GetTypeId (void);
460  virtual TypeId GetInstanceTypeId (void) const;
461  virtual void Print (std::ostream &os) const;
462  virtual uint32_t GetSerializedSize (void) const;
463  virtual void Serialize (Buffer::Iterator start) const;
464  virtual uint32_t Deserialize (Buffer::Iterator start);
465 
466 
467 private:
468  uint64_t m_timestamp;
470  uint64_t m_beaconInterval;
477 };
478 
479 
485 {
486 public:
492  static TypeId GetTypeId (void);
493 };
494 
495 
496 /****************************
497 * Action frames
498 *****************************/
499 
507 class WifiActionHeader : public Header
508 {
509 public:
510  WifiActionHeader ();
512 
513  /*
514  * Compatible with table 8-38 IEEE 802.11, Part11, (Year 2012)
515  * Category values - see 802.11-2012 Table 8-38
516  */
517 
518  enum CategoryValue //table 8-38 staring from IEEE 802.11, Part11, (Year 2012)
519  {
521  MESH = 13, //Category: Mesh
522  MULTIHOP = 14, //not used so far
523  SELF_PROTECTED = 15, //Category: Self Protected
524  //Since vendor specific action has no stationary Action value,the parse process is not here.
525  //Refer to vendor-specific-action in wave module.
527  };
528 
529  enum SelfProtectedActionValue //Category: 15 (Self Protected)
530  {
531  PEER_LINK_OPEN = 1, //Mesh Peering Open
532  PEER_LINK_CONFIRM = 2, //Mesh Peering Confirm
533  PEER_LINK_CLOSE = 3, //Mesh Peering Close
534  GROUP_KEY_INFORM = 4, //Mesh Group Key Inform
535  GROUP_KEY_ACK = 5, //Mesh Group Key Acknowledge
536  };
537 
539  {
540  PROXY_UPDATE = 0, //not used so far
541  PROXY_UPDATE_CONFIRMATION = 1, //not used so far
542  };
543 
545  {
546  LINK_METRIC_REPORT = 0, //Action Value:0 in Category 13: Mesh
547  PATH_SELECTION = 1, //Action Value:1 in Category 13: Mesh
548  PORTAL_ANNOUNCEMENT = 2, //Action Value:2 in Category 13: Mesh
549  CONGESTION_CONTROL_NOTIFICATION = 3, //Action Value:3 in Category 13: Mesh
550  MDA_SETUP_REQUEST = 4, //Action Value:4 in Category 13: Mesh MCCA-Setup-Request (not used so far)
551  MDA_SETUP_REPLY = 5, //Action Value:5 in Category 13: Mesh MCCA-Setup-Reply (not used so far)
552  MDAOP_ADVERTISMENT_REQUEST = 6, //Action Value:6 in Category 13: Mesh MCCA-Advertisement-Request (not used so far)
553  MDAOP_ADVERTISMENTS = 7, //Action Value:7 in Category 13: Mesh (not used so far)
554  MDAOP_SET_TEARDOWN = 8, //Action Value:8 in Category 13: Mesh (not used so far)
555  TBTT_ADJUSTMENT_REQUEST = 9, //Action Value:9 in Category 13: Mesh (not used so far)
556  TBTT_ADJUSTMENT_RESPONSE = 10, //Action Value:10 in Category 13: Mesh (not used so far)
557  };
558 
564  {
568  };
569 
570 
574  typedef union
575  {
576  enum MeshActionValue meshAction;
577  enum MultihopActionValue multihopAction;
578  enum SelfProtectedActionValue selfProtectedAction;
579  enum BlockAckActionValue blockAck;
580  } ActionValue;
587  void SetAction (enum CategoryValue type,ActionValue action);
588 
601 
606  static TypeId GetTypeId (void);
607  virtual TypeId GetInstanceTypeId () const;
608  virtual void Print (std::ostream &os) const;
609  virtual uint32_t GetSerializedSize () const;
610  virtual void Serialize (Buffer::Iterator start) const;
611  virtual uint32_t Deserialize (Buffer::Iterator start);
612 
613 
614 private:
615  std::string CategoryValueToString (CategoryValue value) const;
617  uint8_t m_category;
618  uint8_t m_actionValue;
619 };
620 
621 
627 {
628 public:
630 
635  static TypeId GetTypeId (void);
636  virtual TypeId GetInstanceTypeId (void) const;
637  virtual void Print (std::ostream &os) const;
638  virtual uint32_t GetSerializedSize (void) const;
639  virtual void Serialize (Buffer::Iterator start) const;
640  virtual uint32_t Deserialize (Buffer::Iterator start);
641 
645  void SetDelayedBlockAck ();
649  void SetImmediateBlockAck ();
655  void SetTid (uint8_t tid);
661  void SetTimeout (uint16_t timeout);
667  void SetBufferSize (uint16_t size);
673  void SetStartingSequence (uint16_t seq);
679  void SetAmsduSupport (bool supported);
680 
686  uint16_t GetStartingSequence (void) const;
692  uint8_t GetTid (void) const;
698  bool IsImmediateBlockAck (void) const;
704  uint16_t GetTimeout (void) const;
710  uint16_t GetBufferSize (void) const;
716  bool IsAmsduSupported (void) const;
717 
718 private:
724  uint16_t GetParameterSet (void) const;
730  void SetParameterSet (uint16_t params);
736  uint16_t GetStartingSequenceControl (void) const;
742  void SetStartingSequenceControl (uint16_t seqControl);
743 
744  uint8_t m_dialogToken; /* Not used for now */
745  uint8_t m_amsduSupport;
746  uint8_t m_policy;
747  uint8_t m_tid;
748  uint16_t m_bufferSize;
749  uint16_t m_timeoutValue;
750  uint16_t m_startingSeq;
751 };
752 
753 
759 {
760 public:
762 
767  static TypeId GetTypeId (void);
768  virtual TypeId GetInstanceTypeId (void) const;
769  virtual void Print (std::ostream &os) const;
770  virtual uint32_t GetSerializedSize (void) const;
771  virtual void Serialize (Buffer::Iterator start) const;
772  virtual 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 SetStatusCode (StatusCode code);
811  void SetAmsduSupport (bool supported);
812 
818  StatusCode GetStatusCode (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 
851 private:
857  uint16_t GetParameterSet (void) const;
863  void SetParameterSet (uint16_t params);
864 
865  uint8_t m_dialogToken; /* Not used for now */
867  uint8_t m_amsduSupport;
868  uint8_t m_policy;
869  uint8_t m_tid;
870  uint16_t m_bufferSize;
871  uint16_t m_timeoutValue;
872 };
873 
874 
879 class MgtDelBaHeader : public Header
880 {
881 public:
882  MgtDelBaHeader ();
883 
888  static TypeId GetTypeId (void);
889  // Inherited
890  virtual TypeId GetInstanceTypeId (void) const;
891  virtual void Print (std::ostream &os) const;
892  virtual uint32_t GetSerializedSize (void) const;
893  virtual void Serialize (Buffer::Iterator start) const;
894  virtual uint32_t Deserialize (Buffer::Iterator start);
895 
902  bool IsByOriginator (void) const;
908  uint8_t GetTid (void) const;
914  void SetTid (uint8_t);
918  void SetByOriginator (void);
922  void SetByRecipient (void);
923 
924 private:
930  uint16_t GetParameterSet (void) const;
936  void SetParameterSet (uint16_t params);
937 
938  uint16_t m_initiator;
939  uint16_t m_tid;
940  uint16_t m_reasonCode; /* Not used for now. Always set to 1: "Unspecified reason" */
941 };
942 
943 } //namespace ns3
944 
945 #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)
SupportedRates GetSupportedRates(void) const
Return the supported rates.
Definition: mgt-headers.cc:83
The HT Operations Information ElementThis class knows how to serialise and deserialise the HT Operati...
Definition: ht-operations.h:54
uint16_t GetBufferSize(void) const
Return the buffer size.
virtual void Serialize(Buffer::Iterator start) const
Definition: mgt-headers.cc:677
StatusCode m_code
Status code.
Definition: mgt-headers.h:866
virtual uint32_t GetSerializedSize(void) const
SupportedRates GetSupportedRates(void) const
Return the supported rates.
Definition: mgt-headers.cc:183
HtOperations m_htOperations
HT operations.
Definition: mgt-headers.h:258
virtual TypeId GetInstanceTypeId(void) const
Get the most derived TypeId for this Object.
Definition: mgt-headers.cc:476
Implement the header for management frames of type association request.
Definition: mgt-headers.h:44
void SetCapabilities(CapabilityInformation capabilities)
Set the Capability information.
Definition: mgt-headers.cc:411
uint8_t m_policy
Block ACK policy.
Definition: mgt-headers.h:868
virtual void Print(std::ostream &os) const
Definition: mgt-headers.cc:958
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:578
virtual TypeId GetInstanceTypeId(void) const
Get the most derived TypeId for this Object.
Definition: mgt-headers.cc:278
Ssid GetSsid(void) const
Return the Service Set Identifier (SSID).
Definition: mgt-headers.cc:171
HtOperations GetHtOperations(void) const
Return the HT operations.
Definition: mgt-headers.cc:602
SupportedRates m_rates
List of supported rates.
Definition: mgt-headers.h:253
static TypeId GetTypeId(void)
Register this type.
Definition: mgt-headers.cc:465
uint16_t m_timeoutValue
Timeout.
Definition: mgt-headers.h:749
See IEEE 802.11 chapter 7.3.1.11 Header format: | category: 1 | action value: 1 |.
Definition: mgt-headers.h:507
virtual void Print(std::ostream &os) const
HtCapabilities m_htCapability
HT capabilities.
Definition: mgt-headers.h:337
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:137
static TypeId GetTypeId(void)
Register this type.
Definition: mgt-headers.cc:101
void SetImmediateBlockAck()
Enable immediate Block ACK.
SupportedRates m_rates
List of supported rates.
Definition: mgt-headers.h:471
CapabilityInformation m_capability
Capability information.
Definition: mgt-headers.h:254
CapabilityInformation m_capability
Capability information.
Definition: mgt-headers.h:472
void SetBufferSize(uint16_t size)
Set buffer size.
Implement the header for management frames of type add block ack request.
Definition: mgt-headers.h:626
bool IsImmediateBlockAck(void) const
Return whether the Block ACK policy is immediate Block ACK.
HtCapabilities m_htCapability
HT capabilities.
Definition: mgt-headers.h:139
VhtCapabilities m_vhtCapability
VHT capabilities.
Definition: mgt-headers.h:338
virtual uint32_t GetSerializedSize(void) const
Definition: mgt-headers.cc:482
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:423
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:393
virtual void Print(std::ostream &os) const
uint16_t m_startingSeq
Starting sequence number.
Definition: mgt-headers.h:750
void SetAction(enum CategoryValue type, ActionValue action)
Set action for this Action header.
Definition: mgt-headers.cc:720
std::string CategoryValueToString(CategoryValue value) const
Definition: mgt-headers.cc:901
uint16_t GetBufferSize(void) const
Return the buffer size.
VhtCapabilities GetVhtCapabilities(void) const
Return the VHT capabilities.
Definition: mgt-headers.cc:614
virtual TypeId GetInstanceTypeId(void) const
Get the most derived TypeId for this Object.
CategoryValue GetCategory()
Return the category value.
Definition: mgt-headers.cc:754
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.
The Supported Rates Information ElementThis class knows how to serialise and deserialise the Supporte...
CapabilityInformation m_capability
Capability information.
Definition: mgt-headers.h:138
uint16_t m_bufferSize
Buffer size.
Definition: mgt-headers.h:748
ErpInformation m_erpInformation
ERP information.
Definition: mgt-headers.h:260
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:447
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:399
ErpInformation GetErpInformation(void) const
Return the ERP information.
Definition: mgt-headers.cc:626
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:302
virtual void Serialize(Buffer::Iterator start) const
Definition: mgt-headers.cc:313
VhtCapabilities GetVhtCapabilities(void) const
Return the VHT capabilities.
Definition: mgt-headers.cc:231
SupportedRates GetSupportedRates(void) const
Return the supported rates.
Definition: mgt-headers.cc:453
void SetListenInterval(uint16_t interval)
Set the listen interval.
Definition: mgt-headers.cc:405
static TypeId GetTypeId(void)
Register this type.
Definition: mgt-headers.cc:884
uint8_t m_amsduSupport
Flag if A-MSDU is supported.
Definition: mgt-headers.h:867
void SetErpInformation(ErpInformation erpInformation)
Set the ERP information.
Definition: mgt-headers.cc:255
virtual TypeId GetInstanceTypeId(void) const
Get the most derived TypeId for this Object.
virtual TypeId GetInstanceTypeId() const
Get the most derived TypeId for this Object.
Definition: mgt-headers.cc:895
void SetParameterSet(uint16_t params)
Set the parameter set from the given raw value.
uint8_t m_tid
Traffic ID.
Definition: mgt-headers.h:747
SupportedRates m_rates
List of supported rates.
Definition: mgt-headers.h:336
ErpInformation GetErpInformation(void) const
Return the ERP information.
Definition: mgt-headers.cc:261
CapabilityInformation GetCapabilities(void) const
Return the Capability information.
Definition: mgt-headers.cc:417
virtual uint32_t GetSerializedSize() const
Definition: mgt-headers.cc:965
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:620
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:459
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:745
void SetStartingSequence(uint16_t seq)
Set the starting sequence number.
virtual 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:608
ErpInformation m_erpInformation
ERP information.
Definition: mgt-headers.h:476
SupportedRates GetSupportedRates(void)
Return the supported rates.
Definition: mgt-headers.cc:554
uint64_t m_timestamp
Timestamp.
Definition: mgt-headers.h:468
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:644
uint64_t GetTimestamp()
Return the time stamp.
Definition: mgt-headers.cc:165
virtual uint32_t GetSerializedSize(void) const
HtOperations m_htOperations
HT operations.
Definition: mgt-headers.h:474
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:237
std::string SelfProtectedActionValueToString(SelfProtectedActionValue value) const
Definition: mgt-headers.cc:927
virtual void Print(std::ostream &os) const
Definition: mgt-headers.cc:496
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:441
VhtCapabilities m_vhtCapability
VHT capabilities.
Definition: mgt-headers.h:475
virtual uint32_t GetSerializedSize(void) const
void SetBeaconIntervalUs(uint64_t us)
Set the beacon interval in microseconds unit.
Definition: mgt-headers.cc:243
BlockAckActionValue
Block ACK action field values See 802.11 Table 8-202.
Definition: mgt-headers.h:563
static TypeId GetTypeId(void)
Register this type.
Definition: mgt-headers.cc:267
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:978
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:435
tuple ssid
Definition: third.py:93
VhtCapabilities m_vhtCapability
VHT capabilities.
Definition: mgt-headers.h:140
HtCapabilities m_htCapability
HT capabilities.
Definition: mgt-headers.h:473
virtual uint32_t Deserialize(Buffer::Iterator start)
Definition: mgt-headers.cc:339
static TypeId GetTypeId(void)
Register this type.
Definition: mgt-headers.cc:366
uint8_t m_tid
Traffic ID.
Definition: mgt-headers.h:869
virtual void Print(std::ostream &os) const
Definition: mgt-headers.cc:666
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:618
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:268
void SetVhtCapabilities(VhtCapabilities vhtcapabilities)
Set the VHT capabilities.
Definition: mgt-headers.cc:225
bool IsImmediateBlockAck(void) const
Return whether the Block ACK policy is immediate Block ACK.
void SetHtOperations(HtOperations htoperations)
Set the HT operations.
Definition: mgt-headers.cc:213
Implement the header for management frames of type association response.
Definition: mgt-headers.h:149
virtual uint32_t Deserialize(Buffer::Iterator start)
StatusCode m_code
Status code.
Definition: mgt-headers.h:255
uint16_t GetStartingSequence(void) const
Return the starting sequence number.
void SetCapabilities(CapabilityInformation capabilities)
Set the Capability information.
Definition: mgt-headers.cc:572
uint16_t m_tid
Traffic ID.
Definition: mgt-headers.h:939
static TypeId GetTypeId(void)
Register this type.
static TypeId GetTypeId(void)
Register this type.
Definition: mgt-headers.cc:633
void SetSupportedRates(SupportedRates rates)
Set the supported rates.
Definition: mgt-headers.cc:566
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:758
Implement the header for management frames of type del block ack.
Definition: mgt-headers.h:879
typedef for union of different ActionValues
Definition: mgt-headers.h:574
uint8_t m_policy
Block ACK policy.
Definition: mgt-headers.h:746
HtCapabilities m_htCapability
HT capabilities.
Definition: mgt-headers.h:257
void SetSupportedRates(SupportedRates rates)
Set the supported rates.
Definition: mgt-headers.cc:249
Ssid m_ssid
Service Set ID (SSID)
Definition: mgt-headers.h:335
void SetHtCapabilities(HtCapabilities htcapabilities)
Set the HT capabilities.
Definition: mgt-headers.cc:584
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: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:560
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:617
void SetDelayedBlockAck()
Enable delayed Block ACK.
virtual uint32_t Deserialize(Buffer::Iterator start)
Definition: mgt-headers.cc:518
void SetTimeout(uint16_t timeout)
Set timeout.
Implement the header for management frames of type probe response.
Definition: mgt-headers.h:346
VhtCapabilities m_vhtCapability
VHT capabilities.
Definition: mgt-headers.h:259
uint16_t GetParameterSet(void) const
Return the raw parameter set.
ActionValue GetAction()
Return the action value.
Definition: mgt-headers.cc:775
uint16_t m_bufferSize
Buffer size.
Definition: mgt-headers.h:870
uint16_t GetParameterSet(void) const
Return the raw parameter set.
uint64_t m_beaconInterval
Beacon interval.
Definition: mgt-headers.h:470
virtual uint32_t GetSerializedSize(void) const
Definition: mgt-headers.cc:89
uint16_t m_timeoutValue
Timeout.
Definition: mgt-headers.h:871
HtOperations GetHtOperations(void) const
Return the HT operations.
Definition: mgt-headers.cc:219
Ssid m_ssid
Service Set ID (SSID)
Definition: mgt-headers.h:136
HtCapabilities GetHtCapabilities(void) const
Return the HT capabilities.
Definition: mgt-headers.cc:429
virtual uint32_t GetSerializedSize(void) const
Definition: mgt-headers.cc:284
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:484
void SetHtOperations(HtOperations htoperations)
Set the HT operations.
Definition: mgt-headers.cc:596
virtual uint32_t Deserialize(Buffer::Iterator start)
Definition: mgt-headers.cc:692
virtual uint32_t GetSerializedSize(void) const
Definition: mgt-headers.cc:650
StatusCode GetStatusCode(void)
Return the status code.
Definition: mgt-headers.cc:548
Ssid m_ssid
Service set ID (SSID)
Definition: mgt-headers.h:469
void SetVhtCapabilities(VhtCapabilities vhtcapabilities)
Set the VHT capabilities.
Definition: mgt-headers.cc:71
virtual void Serialize(Buffer::Iterator start) const
Definition: mgt-headers.cc:971
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:590
virtual void Print(std::ostream &os) const
virtual void Serialize(Buffer::Iterator start) const
Definition: mgt-headers.cc:505