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 "dsss-parameter-set.h"
34 #include "ht-capabilities.h"
35 #include "ht-operations.h"
36 #include "vht-capabilities.h"
37 #include "erp-information.h"
38 #include "edca-parameter-set.h"
39 
40 namespace ns3 {
41 
47 {
48 public:
51 
57  void SetSsid (Ssid ssid);
63  void SetSupportedRates (SupportedRates rates);
69  void SetListenInterval (uint16_t interval);
75  void SetCapabilities (CapabilityInformation capabilities);
81  void SetHtCapabilities (HtCapabilities htcapabilities);
87  void SetVhtCapabilities (VhtCapabilities vhtcapabilities);
99  HtCapabilities GetHtCapabilities (void) const;
105  VhtCapabilities GetVhtCapabilities (void) const;
111  Ssid GetSsid (void) const;
117  SupportedRates GetSupportedRates (void) const;
123  uint16_t GetListenInterval (void) const;
124 
129  static TypeId GetTypeId (void);
130  virtual TypeId GetInstanceTypeId (void) const;
131  virtual void Print (std::ostream &os) const;
132  virtual uint32_t GetSerializedSize (void) const;
133  virtual void Serialize (Buffer::Iterator start) const;
134  virtual uint32_t Deserialize (Buffer::Iterator start);
135 
136 
137 private:
144 };
145 
146 
152 {
153 public:
156 
162  StatusCode GetStatusCode (void);
180  void SetCapabilities (CapabilityInformation capabilities);
186  HtCapabilities GetHtCapabilities (void) const;
192  HtOperations GetHtOperations (void) const;
198  ErpInformation GetErpInformation (void) const;
210  void SetVhtCapabilities (VhtCapabilities vhtcapabilities);
216  VhtCapabilities GetVhtCapabilities (void) const;
222  void SetHtCapabilities (HtCapabilities htcapabilities);
228  void SetHtOperations (HtOperations htoperations);
234  void SetSupportedRates (SupportedRates rates);
240  void SetStatusCode (StatusCode code);
246  void SetErpInformation (ErpInformation erpInformation);
252  void SetEdcaParameterSet (EdcaParameterSet edcaParameterSet);
253 
258  static TypeId GetTypeId (void);
259  virtual TypeId GetInstanceTypeId (void) const;
260  virtual void Print (std::ostream &os) const;
261  virtual uint32_t GetSerializedSize (void) const;
262  virtual void Serialize (Buffer::Iterator start) const;
263  virtual uint32_t Deserialize (Buffer::Iterator start);
264 
265 
266 private:
270  uint16_t m_aid;
276 };
277 
278 
284 {
285 public:
287 
293  void SetSsid (Ssid ssid);
299  void SetSupportedRates (SupportedRates rates);
305  Ssid GetSsid (void) const;
311  SupportedRates GetSupportedRates (void) const;
317  void SetHtCapabilities (HtCapabilities htcapabilities);
323  HtCapabilities GetHtCapabilities (void) const;
329  void SetVhtCapabilities (VhtCapabilities vhtcapabilities);
335  VhtCapabilities GetVhtCapabilities (void) const;
336 
341  static TypeId GetTypeId (void);
342  virtual TypeId GetInstanceTypeId (void) const;
343  virtual void Print (std::ostream &os) const;
344  virtual uint32_t GetSerializedSize (void) const;
345  virtual void Serialize (Buffer::Iterator start) const;
346  virtual uint32_t Deserialize (Buffer::Iterator start);
347 
348 
349 private:
354 };
355 
356 
362 {
363 public:
366 
372  Ssid GetSsid (void) const;
378  uint64_t GetBeaconIntervalUs (void) const;
384  SupportedRates GetSupportedRates (void) const;
402  HtCapabilities GetHtCapabilities (void) const;
408  HtOperations GetHtOperations (void) const;
414  VhtCapabilities GetVhtCapabilities (void) const;
420  ErpInformation GetErpInformation (void) const;
432  void SetCapabilities (CapabilityInformation capabilities);
438  void SetHtCapabilities (HtCapabilities htcapabilities);
444  void SetHtOperations (HtOperations htoperations);
450  void SetVhtCapabilities (VhtCapabilities vhtcapabilities);
456  void SetSsid (Ssid ssid);
462  void SetBeaconIntervalUs (uint64_t us);
468  void SetSupportedRates (SupportedRates rates);
474  void SetDsssParameterSet (DsssParameterSet dsssParameterSet);
480  void SetErpInformation (ErpInformation erpInformation);
486  void SetEdcaParameterSet (EdcaParameterSet edcaParameterSet);
492  uint64_t GetTimestamp ();
493 
498  static TypeId GetTypeId (void);
499  virtual TypeId GetInstanceTypeId (void) const;
500  virtual void Print (std::ostream &os) const;
501  virtual uint32_t GetSerializedSize (void) const;
502  virtual void Serialize (Buffer::Iterator start) const;
503  virtual uint32_t Deserialize (Buffer::Iterator start);
504 
505 
506 private:
507  uint64_t m_timestamp;
509  uint64_t m_beaconInterval;
518 };
519 
520 
526 {
527 public:
533  static TypeId GetTypeId (void);
534 };
535 
536 
537 /****************************
538 * Action frames
539 *****************************/
540 
548 class WifiActionHeader : public Header
549 {
550 public:
551  WifiActionHeader ();
553 
554  /*
555  * Compatible with table 8-38 IEEE 802.11, Part11, (Year 2012)
556  * Category values - see 802.11-2012 Table 8-38
557  */
558 
559  enum CategoryValue //table 8-38 staring from IEEE 802.11, Part11, (Year 2012)
560  {
562  MESH = 13, //Category: Mesh
563  MULTIHOP = 14, //not used so far
564  SELF_PROTECTED = 15, //Category: Self Protected
565  //Since vendor specific action has no stationary Action value,the parse process is not here.
566  //Refer to vendor-specific-action in wave module.
568  };
569 
570  enum SelfProtectedActionValue //Category: 15 (Self Protected)
571  {
572  PEER_LINK_OPEN = 1, //Mesh Peering Open
573  PEER_LINK_CONFIRM = 2, //Mesh Peering Confirm
574  PEER_LINK_CLOSE = 3, //Mesh Peering Close
575  GROUP_KEY_INFORM = 4, //Mesh Group Key Inform
576  GROUP_KEY_ACK = 5, //Mesh Group Key Acknowledge
577  };
578 
580  {
581  PROXY_UPDATE = 0, //not used so far
582  PROXY_UPDATE_CONFIRMATION = 1, //not used so far
583  };
584 
586  {
587  LINK_METRIC_REPORT = 0, //Action Value:0 in Category 13: Mesh
588  PATH_SELECTION = 1, //Action Value:1 in Category 13: Mesh
589  PORTAL_ANNOUNCEMENT = 2, //Action Value:2 in Category 13: Mesh
590  CONGESTION_CONTROL_NOTIFICATION = 3, //Action Value:3 in Category 13: Mesh
591  MDA_SETUP_REQUEST = 4, //Action Value:4 in Category 13: Mesh MCCA-Setup-Request (not used so far)
592  MDA_SETUP_REPLY = 5, //Action Value:5 in Category 13: Mesh MCCA-Setup-Reply (not used so far)
593  MDAOP_ADVERTISMENT_REQUEST = 6, //Action Value:6 in Category 13: Mesh MCCA-Advertisement-Request (not used so far)
594  MDAOP_ADVERTISMENTS = 7, //Action Value:7 in Category 13: Mesh (not used so far)
595  MDAOP_SET_TEARDOWN = 8, //Action Value:8 in Category 13: Mesh (not used so far)
596  TBTT_ADJUSTMENT_REQUEST = 9, //Action Value:9 in Category 13: Mesh (not used so far)
597  TBTT_ADJUSTMENT_RESPONSE = 10, //Action Value:10 in Category 13: Mesh (not used so far)
598  };
599 
605  {
609  };
610 
611 
615  typedef union
616  {
617  enum MeshActionValue meshAction;
618  enum MultihopActionValue multihopAction;
619  enum SelfProtectedActionValue selfProtectedAction;
620  enum BlockAckActionValue blockAck;
621  } ActionValue;
628  void SetAction (enum CategoryValue type,ActionValue action);
629 
642 
647  static TypeId GetTypeId (void);
648  virtual TypeId GetInstanceTypeId () const;
649  virtual void Print (std::ostream &os) const;
650  virtual uint32_t GetSerializedSize () const;
651  virtual void Serialize (Buffer::Iterator start) const;
652  virtual uint32_t Deserialize (Buffer::Iterator start);
653 
654 
655 private:
656  std::string CategoryValueToString (CategoryValue value) const;
658  uint8_t m_category;
659  uint8_t m_actionValue;
660 };
661 
662 
668 {
669 public:
671 
676  static TypeId GetTypeId (void);
677  virtual TypeId GetInstanceTypeId (void) const;
678  virtual void Print (std::ostream &os) const;
679  virtual uint32_t GetSerializedSize (void) const;
680  virtual void Serialize (Buffer::Iterator start) const;
681  virtual uint32_t Deserialize (Buffer::Iterator start);
682 
686  void SetDelayedBlockAck ();
690  void SetImmediateBlockAck ();
696  void SetTid (uint8_t tid);
702  void SetTimeout (uint16_t timeout);
708  void SetBufferSize (uint16_t size);
714  void SetStartingSequence (uint16_t seq);
720  void SetAmsduSupport (bool supported);
721 
727  uint16_t GetStartingSequence (void) const;
733  uint8_t GetTid (void) const;
739  bool IsImmediateBlockAck (void) const;
745  uint16_t GetTimeout (void) const;
751  uint16_t GetBufferSize (void) const;
757  bool IsAmsduSupported (void) const;
758 
759 private:
765  uint16_t GetParameterSet (void) const;
771  void SetParameterSet (uint16_t params);
777  uint16_t GetStartingSequenceControl (void) const;
783  void SetStartingSequenceControl (uint16_t seqControl);
784 
785  uint8_t m_dialogToken; /* Not used for now */
786  uint8_t m_amsduSupport;
787  uint8_t m_policy;
788  uint8_t m_tid;
789  uint16_t m_bufferSize;
790  uint16_t m_timeoutValue;
791  uint16_t m_startingSeq;
792 };
793 
794 
800 {
801 public:
803 
808  static TypeId GetTypeId (void);
809  virtual TypeId GetInstanceTypeId (void) const;
810  virtual void Print (std::ostream &os) const;
811  virtual uint32_t GetSerializedSize (void) const;
812  virtual void Serialize (Buffer::Iterator start) const;
813  virtual uint32_t Deserialize (Buffer::Iterator start);
814 
818  void SetDelayedBlockAck ();
822  void SetImmediateBlockAck ();
828  void SetTid (uint8_t tid);
834  void SetTimeout (uint16_t timeout);
840  void SetBufferSize (uint16_t size);
846  void SetStatusCode (StatusCode code);
852  void SetAmsduSupport (bool supported);
853 
859  StatusCode GetStatusCode (void) const;
865  uint8_t GetTid (void) const;
871  bool IsImmediateBlockAck (void) const;
877  uint16_t GetTimeout (void) const;
883  uint16_t GetBufferSize (void) const;
889  bool IsAmsduSupported (void) const;
890 
891 
892 private:
898  uint16_t GetParameterSet (void) const;
904  void SetParameterSet (uint16_t params);
905 
906  uint8_t m_dialogToken; /* Not used for now */
908  uint8_t m_amsduSupport;
909  uint8_t m_policy;
910  uint8_t m_tid;
911  uint16_t m_bufferSize;
912  uint16_t m_timeoutValue;
913 };
914 
915 
920 class MgtDelBaHeader : public Header
921 {
922 public:
923  MgtDelBaHeader ();
924 
929  static TypeId GetTypeId (void);
930  // Inherited
931  virtual TypeId GetInstanceTypeId (void) const;
932  virtual void Print (std::ostream &os) const;
933  virtual uint32_t GetSerializedSize (void) const;
934  virtual void Serialize (Buffer::Iterator start) const;
935  virtual uint32_t Deserialize (Buffer::Iterator start);
936 
943  bool IsByOriginator (void) const;
949  uint8_t GetTid (void) const;
955  void SetTid (uint8_t);
959  void SetByOriginator (void);
963  void SetByRecipient (void);
964 
965 private:
971  uint16_t GetParameterSet (void) const;
977  void SetParameterSet (uint16_t params);
978 
979  uint16_t m_initiator;
980  uint16_t m_tid;
981  uint16_t m_reasonCode; /* Not used for now. Always set to 1: "Unspecified reason" */
982 };
983 
984 } //namespace ns3
985 
986 #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:717
StatusCode m_code
Status code.
Definition: mgt-headers.h:907
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:272
virtual TypeId GetInstanceTypeId(void) const
Get the most derived TypeId for this Object.
Definition: mgt-headers.cc:504
Implement the header for management frames of type association request.
Definition: mgt-headers.h:46
DsssParameterSet m_dsssParameterSet
DSSS Parameter Set.
Definition: mgt-headers.h:512
void SetCapabilities(CapabilityInformation capabilities)
Set the Capability information.
Definition: mgt-headers.cc:439
uint8_t m_policy
Block ACK policy.
Definition: mgt-headers.h:909
virtual void Print(std::ostream &os) const
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:606
virtual TypeId GetInstanceTypeId(void) const
Get the most derived TypeId for this Object.
Definition: mgt-headers.cc:302
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:630
SupportedRates m_rates
List of supported rates.
Definition: mgt-headers.h:267
static TypeId GetTypeId(void)
Register this type.
Definition: mgt-headers.cc:493
uint16_t m_timeoutValue
Timeout.
Definition: mgt-headers.h:790
See IEEE 802.11 chapter 7.3.1.11 Header format: | category: 1 | action value: 1 |.
Definition: mgt-headers.h:548
virtual void Print(std::ostream &os) const
HtCapabilities m_htCapability
HT capabilities.
Definition: mgt-headers.h:352
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:139
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:510
def start()
Definition: core.py:1482
CapabilityInformation m_capability
Capability information.
Definition: mgt-headers.h:268
CapabilityInformation m_capability
Capability information.
Definition: mgt-headers.h:511
void SetBufferSize(uint16_t size)
Set buffer size.
Implement the header for management frames of type add block ack request.
Definition: mgt-headers.h:667
bool IsImmediateBlockAck(void) const
Return whether the Block ACK policy is immediate Block ACK.
HtCapabilities m_htCapability
HT capabilities.
Definition: mgt-headers.h:141
VhtCapabilities m_vhtCapability
VHT capabilities.
Definition: mgt-headers.h:353
virtual uint32_t GetSerializedSize(void) const
Definition: mgt-headers.cc:510
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:451
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:421
virtual void Print(std::ostream &os) const
uint16_t m_startingSeq
Starting sequence number.
Definition: mgt-headers.h:791
void SetAction(enum CategoryValue type, ActionValue action)
Set action for this Action header.
Definition: mgt-headers.cc:762
std::string CategoryValueToString(CategoryValue value) const
Definition: mgt-headers.cc:943
uint16_t GetBufferSize(void) const
Return the buffer size.
VhtCapabilities GetVhtCapabilities(void) const
Return the VHT capabilities.
Definition: mgt-headers.cc:642
virtual TypeId GetInstanceTypeId(void) const
Get the most derived TypeId for this Object.
CategoryValue GetCategory()
Return the category value.
Definition: mgt-headers.cc:796
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:604
The Supported Rates Information ElementThis class knows how to serialise and deserialise the Supporte...
CapabilityInformation m_capability
Capability information.
Definition: mgt-headers.h:140
uint16_t m_bufferSize
Buffer size.
Definition: mgt-headers.h:789
ErpInformation m_erpInformation
ERP information.
Definition: mgt-headers.h:274
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:475
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:427
ErpInformation GetErpInformation(void) const
Return the ERP information.
Definition: mgt-headers.cc:654
void SetDsssParameterSet(DsssParameterSet dsssParameterSet)
Set the DSSS Parameter Set.
Definition: mgt-headers.cc:255
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:327
virtual void Serialize(Buffer::Iterator start) const
Definition: mgt-headers.cc:339
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:481
void SetListenInterval(uint16_t interval)
Set the listen interval.
Definition: mgt-headers.cc:433
static TypeId GetTypeId(void)
Register this type.
Definition: mgt-headers.cc:926
uint8_t m_amsduSupport
Flag if A-MSDU is supported.
Definition: mgt-headers.h:908
void SetErpInformation(ErpInformation erpInformation)
Set the ERP information.
Definition: mgt-headers.cc:267
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:937
void SetParameterSet(uint16_t params)
Set the parameter set from the given raw value.
uint8_t m_tid
Traffic ID.
Definition: mgt-headers.h:788
SupportedRates m_rates
List of supported rates.
Definition: mgt-headers.h:351
ErpInformation GetErpInformation(void) const
Return the ERP information.
Definition: mgt-headers.cc:273
CapabilityInformation GetCapabilities(void) const
Return the Capability information.
Definition: mgt-headers.cc:445
virtual 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:648
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:487
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:786
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:636
ErpInformation m_erpInformation
ERP information.
Definition: mgt-headers.h:516
EdcaParameterSet GetEdcaParameterSet(void) const
Return the EDCA Parameter Set.
Definition: mgt-headers.cc:666
void SetEdcaParameterSet(EdcaParameterSet edcaParameterSet)
Set the EDCA Parameter Set.
Definition: mgt-headers.cc:279
SupportedRates GetSupportedRates(void)
Return the supported rates.
Definition: mgt-headers.cc:582
uint64_t m_timestamp
Timestamp.
Definition: mgt-headers.h:507
EdcaParameterSet m_edcaParameterSet
EDCA Parameter Set.
Definition: mgt-headers.h:517
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:683
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:514
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:969
virtual void Print(std::ostream &os) const
Definition: mgt-headers.cc:524
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:469
VhtCapabilities m_vhtCapability
VHT capabilities.
Definition: mgt-headers.h:515
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:243
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:291
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)
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:463
tuple ssid
Definition: third.py:93
VhtCapabilities m_vhtCapability
VHT capabilities.
Definition: mgt-headers.h:142
HtCapabilities m_htCapability
HT capabilities.
Definition: mgt-headers.h:513
virtual uint32_t Deserialize(Buffer::Iterator start)
Definition: mgt-headers.cc:366
static TypeId GetTypeId(void)
Register this type.
Definition: mgt-headers.cc:394
uint8_t m_tid
Traffic ID.
Definition: mgt-headers.h:910
virtual void Print(std::ostream &os) const
Definition: mgt-headers.cc:706
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:659
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:283
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:151
virtual uint32_t Deserialize(Buffer::Iterator start)
StatusCode m_code
Status code.
Definition: mgt-headers.h:269
The DSSS Parameter SetThis class knows how to serialise and deserialise the DSSS Parameter Set...
uint16_t GetStartingSequence(void) const
Return the starting sequence number.
void SetCapabilities(CapabilityInformation capabilities)
Set the Capability information.
Definition: mgt-headers.cc:600
void SetEdcaParameterSet(EdcaParameterSet edcaParameterSet)
Set the EDCA Parameter Set.
Definition: mgt-headers.cc:660
uint16_t m_tid
Traffic ID.
Definition: mgt-headers.h:980
static TypeId GetTypeId(void)
Register this type.
static TypeId GetTypeId(void)
Register this type.
Definition: mgt-headers.cc:672
void SetSupportedRates(SupportedRates rates)
Set the supported rates.
Definition: mgt-headers.cc:594
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:799
EdcaParameterSet GetEdcaParameterSet(void) const
Return the EDCA Parameter Set.
Definition: mgt-headers.cc:285
Implement the header for management frames of type del block ack.
Definition: mgt-headers.h:920
typedef for union of different ActionValues
Definition: mgt-headers.h:615
EdcaParameterSet m_edcaParameterSet
EDCA Parameter Set.
Definition: mgt-headers.h:275
uint8_t m_policy
Block ACK policy.
Definition: mgt-headers.h:787
HtCapabilities m_htCapability
HT capabilities.
Definition: mgt-headers.h:271
void SetSupportedRates(SupportedRates rates)
Set the supported rates.
Definition: mgt-headers.cc:249
Ssid m_ssid
Service Set ID (SSID)
Definition: mgt-headers.h:350
void SetHtCapabilities(HtCapabilities htcapabilities)
Set the HT capabilities.
Definition: mgt-headers.cc:612
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:588
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:658
void SetDelayedBlockAck()
Enable delayed Block ACK.
virtual uint32_t Deserialize(Buffer::Iterator start)
Definition: mgt-headers.cc:546
void SetTimeout(uint16_t timeout)
Set timeout.
Implement the header for management frames of type probe response.
Definition: mgt-headers.h:361
VhtCapabilities m_vhtCapability
VHT capabilities.
Definition: mgt-headers.h:273
uint16_t GetParameterSet(void) const
Return the raw parameter set.
ActionValue GetAction()
Return the action value.
Definition: mgt-headers.cc:817
uint16_t m_bufferSize
Buffer size.
Definition: mgt-headers.h:911
uint16_t GetParameterSet(void) const
Return the raw parameter set.
uint64_t m_beaconInterval
Beacon interval.
Definition: mgt-headers.h:509
DsssParameterSet GetDsssParameterSet(void) const
Return the DSSS Parameter Set.
Definition: mgt-headers.cc:261
virtual uint32_t GetSerializedSize(void) const
Definition: mgt-headers.cc:89
uint16_t m_timeoutValue
Timeout.
Definition: mgt-headers.h:912
HtOperations GetHtOperations(void) const
Return the HT operations.
Definition: mgt-headers.cc:219
Ssid m_ssid
Service Set ID (SSID)
Definition: mgt-headers.h:138
HtCapabilities GetHtCapabilities(void) const
Return the HT capabilities.
Definition: mgt-headers.cc:457
virtual uint32_t GetSerializedSize(void) const
Definition: mgt-headers.cc:308
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:525
void SetHtOperations(HtOperations htoperations)
Set the HT operations.
Definition: mgt-headers.cc:624
virtual uint32_t Deserialize(Buffer::Iterator start)
Definition: mgt-headers.cc:733
virtual uint32_t GetSerializedSize(void) const
Definition: mgt-headers.cc:689
StatusCode GetStatusCode(void)
Return the status code.
Definition: mgt-headers.cc:576
Ssid m_ssid
Service set ID (SSID)
Definition: mgt-headers.h:508
void SetVhtCapabilities(VhtCapabilities vhtcapabilities)
Set the VHT capabilities.
Definition: mgt-headers.cc:71
virtual void Serialize(Buffer::Iterator start) const
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:618
virtual void Print(std::ostream &os) const
virtual void Serialize(Buffer::Iterator start) const
Definition: mgt-headers.cc:533