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  * Author: Mathieu Lacage <mathieu.lacage@sophia.inria.fr>
20  * Author: Mirko Banchi <mk.banchi@gmail.com>
21  */
22 #ifndef MGT_HEADERS_H
23 #define MGT_HEADERS_H
24 
25 #include <stdint.h>
26 
27 #include "ns3/header.h"
28 #include "status-code.h"
29 #include "capability-information.h"
30 #include "supported-rates.h"
31 #include "ssid.h"
32 #include "ht-capabilities.h"
33 
34 namespace ns3 {
35 
41 {
42 public:
45 
51  void SetSsid (Ssid ssid);
57  void SetSupportedRates (SupportedRates rates);
63  void SetListenInterval (uint16_t interval);
69  void SetHtCapabilities(HtCapabilities htcapabilities);
70 
76  HtCapabilities GetHtCapabilities (void) const;
82  Ssid GetSsid (void) const;
88  SupportedRates GetSupportedRates (void) const;
94  uint16_t GetListenInterval (void) const;
95 
96  static TypeId GetTypeId (void);
97  virtual TypeId GetInstanceTypeId (void) const;
98  virtual void Print (std::ostream &os) const;
99  virtual uint32_t GetSerializedSize (void) const;
100  virtual void Serialize (Buffer::Iterator start) const;
101  virtual uint32_t Deserialize (Buffer::Iterator start);
102 
103 private:
109 };
110 
111 
117 {
118 public:
121 
127  StatusCode GetStatusCode (void);
139  HtCapabilities GetHtCapabilities (void) const;
140 
146  void SetHtCapabilities(HtCapabilities htcapabilities);
152  void SetSupportedRates (SupportedRates rates);
158  void SetStatusCode (StatusCode code);
159 
160  static TypeId GetTypeId (void);
161  virtual TypeId GetInstanceTypeId (void) const;
162  virtual void Print (std::ostream &os) const;
163  virtual uint32_t GetSerializedSize (void) const;
164  virtual void Serialize (Buffer::Iterator start) const;
165  virtual uint32_t Deserialize (Buffer::Iterator start);
166 
167 private:
171  uint16_t m_aid;
173 };
174 
175 
181 {
182 public:
184 
190  void SetSsid (Ssid ssid);
196  void SetSupportedRates (SupportedRates rates);
202  Ssid GetSsid (void) const;
208  SupportedRates GetSupportedRates (void) const;
214  HtCapabilities GetHtCapabilities (void) const;
215 
221  void SetHtCapabilities(HtCapabilities htcapabilities);
222  static TypeId GetTypeId (void);
223  virtual TypeId GetInstanceTypeId (void) const;
224  virtual void Print (std::ostream &os) const;
225  virtual uint32_t GetSerializedSize (void) const;
226  virtual void Serialize (Buffer::Iterator start) const;
227  virtual uint32_t Deserialize (Buffer::Iterator start);
228 private:
232 };
233 
234 
240 {
241 public:
244 
250  Ssid GetSsid (void) const;
256  uint64_t GetBeaconIntervalUs (void) const;
262  SupportedRates GetSupportedRates (void) const;
268  HtCapabilities GetHtCapabilities (void) const;
269 
275  void SetHtCapabilities(HtCapabilities htcapabilities);
281  void SetSsid (Ssid ssid);
287  void SetBeaconIntervalUs (uint64_t us);
293  void SetSupportedRates (SupportedRates rates);
299  uint64_t GetTimestamp ();
300  static TypeId GetTypeId (void);
301  virtual TypeId GetInstanceTypeId (void) const;
302  virtual void Print (std::ostream &os) const;
303  virtual uint32_t GetSerializedSize (void) const;
304  virtual void Serialize (Buffer::Iterator start) const;
305  virtual uint32_t Deserialize (Buffer::Iterator start);
306 
307 private:
308  uint64_t m_timestamp;
310  uint64_t m_beaconInterval;
314 };
315 
316 
322 {
323 };
324 
325 /****************************
326 * Action frames
327 *****************************/
328 
336 class WifiActionHeader : public Header
337 {
338 public:
339  WifiActionHeader ();
341 
342  /*
343  * Compatible with table 8-38 IEEE 802.11, Part11, (Year 2012)
344  * Category values - see 802.11-2012 Table 8-38 */
345 
346  enum CategoryValue //table 8-38 staring from IEEE 802.11, Part11, (Year 2012)
347  {
349  MESH = 13, //Category: Mesh
350  MULTIHOP = 14, //(not used so far)
351  SELF_PROTECTED = 15, //Category: Self Protected
352  // since vendor specific action has no stationary Action value,the parse process is not here.
353  // refer to vendor-specific-action in wave module.
355  };
356 
357  enum SelfProtectedActionValue //Category: 15 (Self Protected)
358  {
359  PEER_LINK_OPEN = 1, //Mesh Peering Open
360  PEER_LINK_CONFIRM = 2, //Mesh Peering Confirm
361  PEER_LINK_CLOSE = 3, //Mesh Peering Close
362  GROUP_KEY_INFORM = 4, //Mesh Group Key Inform
363  GROUP_KEY_ACK = 5, //Mesh Group Key Acknowledge
364  };
365 
367  {
368  PROXY_UPDATE = 0, //(not used so far)
369  PROXY_UPDATE_CONFIRMATION = 1, //(not used so far)
370  };
371 
373  {
374  LINK_METRIC_REPORT=0, //Action Value:0 in Category 13: Mesh
375  PATH_SELECTION = 1, //Action Value:1 in Category 13: Mesh
376  PORTAL_ANNOUNCEMENT = 2, //Action Value:2 in Category 13: Mesh
377  CONGESTION_CONTROL_NOTIFICATION = 3,//Action Value:3 in Category 13: Mesh
378  MDA_SETUP_REQUEST=4, //Action Value:4 in Category 13: Mesh MCCA-Setup-Request (not used so far)
379  MDA_SETUP_REPLY=5, //Action Value:5 in Category 13: Mesh MCCA-Setup-Reply (not used so far)
380  MDAOP_ADVERTISMENT_REQUEST=6, //Action Value:6 in Category 13: Mesh MCCA-Advertisement-Request (not used so far)
381  MDAOP_ADVERTISMENTS=7, //Action Value:7 in Category 13: Mesh (not used so far)
382  MDAOP_SET_TEARDOWN=8, //Action Value:8 in Category 13: Mesh (not used so far)
383  TBTT_ADJUSTMENT_REQUEST=9, //Action Value:9 in Category 13: Mesh (not used so far)
384  TBTT_ADJUSTMENT_RESPONSE=10, //Action Value:10 in Category 13: Mesh (not used so far)
385  };
386 
392  {
396  };
397 
398 
402  typedef union
403  {
404  enum MeshActionValue meshAction;
405  enum MultihopActionValue multihopAction;
406  enum SelfProtectedActionValue selfProtectedAction;
407  enum BlockAckActionValue blockAck;
408  } ActionValue;
415  void SetAction (enum CategoryValue type,ActionValue action);
416 
429  static TypeId GetTypeId (void);
430  virtual TypeId GetInstanceTypeId () const;
431  virtual void Print (std::ostream &os) const;
432  virtual uint32_t GetSerializedSize () const;
433  virtual void Serialize (Buffer::Iterator start) const;
434  virtual uint32_t Deserialize (Buffer::Iterator start);
435 private:
436  uint8_t m_category;
437  uint8_t m_actionValue;
438 };
439 
445 {
446 public:
448 
449  static TypeId GetTypeId (void);
450  virtual TypeId GetInstanceTypeId (void) const;
451  virtual void Print (std::ostream &os) const;
452  virtual uint32_t GetSerializedSize (void) const;
453  virtual void Serialize (Buffer::Iterator start) const;
454  virtual uint32_t Deserialize (Buffer::Iterator start);
455 
459  void SetDelayedBlockAck ();
463  void SetImmediateBlockAck ();
469  void SetTid (uint8_t tid);
475  void SetTimeout (uint16_t timeout);
481  void SetBufferSize (uint16_t size);
487  void SetStartingSequence (uint16_t seq);
493  void SetAmsduSupport (bool supported);
494 
500  uint16_t GetStartingSequence (void) const;
506  uint8_t GetTid (void) const;
512  bool IsImmediateBlockAck (void) const;
518  uint16_t GetTimeout (void) const;
524  uint16_t GetBufferSize (void) const;
530  bool IsAmsduSupported (void) const;
531 
532 private:
538  uint16_t GetParameterSet (void) const;
544  void SetParameterSet (uint16_t params);
550  uint16_t GetStartingSequenceControl (void) const;
556  void SetStartingSequenceControl (uint16_t seqControl);
557 
558  uint8_t m_dialogToken; /* Not used for now */
559  uint8_t m_amsduSupport;
560  uint8_t m_policy;
561  uint8_t m_tid;
562  uint16_t m_bufferSize;
563  uint16_t m_timeoutValue;
564  uint16_t m_startingSeq;
565 };
566 
567 
573 {
574 public:
576 
577  static TypeId GetTypeId (void);
578  virtual TypeId GetInstanceTypeId (void) const;
579  virtual void Print (std::ostream &os) const;
580  virtual uint32_t GetSerializedSize (void) const;
581  virtual void Serialize (Buffer::Iterator start) const;
582  virtual uint32_t Deserialize (Buffer::Iterator start);
583 
587  void SetDelayedBlockAck ();
591  void SetImmediateBlockAck ();
597  void SetTid (uint8_t tid);
603  void SetTimeout (uint16_t timeout);
609  void SetBufferSize (uint16_t size);
615  void SetStatusCode (StatusCode code);
621  void SetAmsduSupport (bool supported);
622 
628  StatusCode GetStatusCode (void) const;
634  uint8_t GetTid (void) const;
640  bool IsImmediateBlockAck (void) const;
646  uint16_t GetTimeout (void) const;
652  uint16_t GetBufferSize (void) const;
658  bool IsAmsduSupported (void) const;
659 
660 private:
666  uint16_t GetParameterSet (void) const;
672  void SetParameterSet (uint16_t params);
673 
674  uint8_t m_dialogToken; /* Not used for now */
676  uint8_t m_amsduSupport;
677  uint8_t m_policy;
678  uint8_t m_tid;
679  uint16_t m_bufferSize;
680  uint16_t m_timeoutValue;
681 };
682 
683 
688 class MgtDelBaHeader : public Header
689 {
690 public:
691  MgtDelBaHeader ();
692 
693  static TypeId GetTypeId (void);
694  virtual TypeId GetInstanceTypeId (void) const;
695  virtual void Print (std::ostream &os) const;
696  virtual uint32_t GetSerializedSize (void) const;
697  virtual void Serialize (Buffer::Iterator start) const;
698  virtual uint32_t Deserialize (Buffer::Iterator start);
699 
706  bool IsByOriginator (void) const;
712  uint8_t GetTid (void) const;
718  void SetTid (uint8_t);
722  void SetByOriginator (void);
726  void SetByRecipient (void);
727 
728 private:
734  uint16_t GetParameterSet (void) const;
740  void SetParameterSet (uint16_t params);
741 
742  uint16_t m_initiator;
743  uint16_t m_tid;
744  /* Not used for now.
745  Always set to 1: "Unspecified reason" */
746  uint16_t m_reasonCode;
747 };
748 
749 } // namespace ns3
750 
751 #endif /* MGT_HEADERS_H */
Protocol header serialization and deserialization.
Definition: header.h:42
static TypeId GetTypeId(void)
Definition: mgt-headers.cc:871
virtual uint32_t Deserialize(Buffer::Iterator start)
Definition: mgt-headers.cc:736
SupportedRates GetSupportedRates(void) const
Return the supported rates.
Definition: mgt-headers.cc:65
uint16_t GetBufferSize(void) const
Return the buffer size.
Definition: mgt-headers.cc:993
virtual void Serialize(Buffer::Iterator start) const
Definition: mgt-headers.cc:450
StatusCode m_code
Status code.
Definition: mgt-headers.h:675
virtual uint32_t GetSerializedSize(void) const
SupportedRates GetSupportedRates(void) const
Return the supported rates.
Definition: mgt-headers.cc:150
virtual TypeId GetInstanceTypeId(void) const
Get the most derived TypeId for this Object.
Definition: mgt-headers.cc:322
Implement the header for management frames of type association request.
Definition: mgt-headers.h:40
uint8_t m_policy
Block ACK policy.
Definition: mgt-headers.h:677
virtual void Print(std::ostream &os) const
Definition: mgt-headers.cc:657
virtual TypeId GetInstanceTypeId(void) const
Get the most derived TypeId for this Object.
Definition: mgt-headers.cc:191
Ssid GetSsid(void) const
Return the Service Set Identifier (SSID).
Definition: mgt-headers.cc:140
SupportedRates m_rates
List of supported rates.
Definition: mgt-headers.h:168
static TypeId GetTypeId(void)
Definition: mgt-headers.cc:312
uint16_t m_timeoutValue
Timeout.
Definition: mgt-headers.h:563
See IEEE 802.11 chapter 7.3.1.11 Header format: | category: 1 | action value: 1 |.
Definition: mgt-headers.h:336
virtual void Print(std::ostream &os) const
Definition: mgt-headers.cc:710
HtCapabilities m_htCapability
HT capabilities.
Definition: mgt-headers.h:231
uint64_t GetBeaconIntervalUs(void) const
Return the beacon interval in microseconds unit.
Definition: mgt-headers.cc:145
SupportedRates m_rates
List of supported rates.
Definition: mgt-headers.h:105
static TypeId GetTypeId(void)
Definition: mgt-headers.cc:80
void SetImmediateBlockAck()
Enable immediate Block ACK.
Definition: mgt-headers.cc:753
SupportedRates m_rates
List of supported rates.
Definition: mgt-headers.h:311
def start()
Definition: core.py:1482
CapabilityInformation m_capability
Capability information.
Definition: mgt-headers.h:169
CapabilityInformation m_capability
Capability information.
Definition: mgt-headers.h:312
void SetBufferSize(uint16_t size)
Set buffer size.
Definition: mgt-headers.cc:772
Implement the header for management frames of type add block ack request.
Definition: mgt-headers.h:444
bool IsImmediateBlockAck(void) const
Return whether the Block ACK policy is immediate Block ACK.
Definition: mgt-headers.cc:981
HtCapabilities m_htCapability
HT capabilities.
Definition: mgt-headers.h:107
virtual uint32_t GetSerializedSize(void) const
Definition: mgt-headers.cc:327
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:281
void SetSsid(Ssid ssid)
Set the Service Set Identifier (SSID).
Definition: mgt-headers.cc:271
virtual void Print(std::ostream &os) const
Definition: mgt-headers.cc:888
uint16_t m_startingSeq
Starting sequence number.
Definition: mgt-headers.h:564
void SetAction(enum CategoryValue type, ActionValue action)
Set action for this Action header.
Definition: mgt-headers.cc:482
uint16_t GetBufferSize(void) const
Return the buffer size.
Definition: mgt-headers.cc:808
virtual TypeId GetInstanceTypeId(void) const
Get the most derived TypeId for this Object.
Definition: mgt-headers.cc:882
CategoryValue GetCategory()
Return the category value.
Definition: mgt-headers.cc:515
void SetDelayedBlockAck()
Enable delayed Block ACK.
Definition: mgt-headers.cc:926
ns3::Time timeout
void SetTid(uint8_t)
Set Traffic ID (TID).
void SetStatusCode(StatusCode code)
Set the status code.
Definition: mgt-headers.cc:957
BlockAckActionValue
Block ACK action field values See 802.11 Table 8-202.
Definition: mgt-headers.h:391
The Supported Rates Information ElementThis class knows how to serialise and deserialise the Supporte...
CapabilityInformation m_capability
Capability information.
Definition: mgt-headers.h:106
uint16_t m_bufferSize
Buffer size.
Definition: mgt-headers.h:562
virtual TypeId GetInstanceTypeId(void) const
Get the most derived TypeId for this Object.
Definition: mgt-headers.cc:90
void SetTimeout(uint16_t timeout)
Set timeout.
Definition: mgt-headers.cc:945
Ssid GetSsid(void) const
Return the Service Set Identifier (SSID).
Definition: mgt-headers.cc:44
Capability information.
void SetSupportedRates(SupportedRates rates)
Set the supported rates.
Definition: mgt-headers.cc:49
void SetAmsduSupport(bool supported)
Enable or disable A-MSDU support.
Definition: mgt-headers.cc:784
Ssid GetSsid(void) const
Return the Service Set Identifier (SSID).
Definition: mgt-headers.cc:296
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:276
bool IsAmsduSupported(void) const
Return whether A-MSDU capability is supported.
Definition: mgt-headers.cc:999
uint16_t GetStartingSequenceControl(void) const
Return the raw sequence control.
Definition: mgt-headers.cc:826
virtual void Serialize(Buffer::Iterator start) const
Definition: mgt-headers.cc:905
void SetTid(uint8_t tid)
Set Traffic ID (TID).
Definition: mgt-headers.cc:938
virtual void Print(std::ostream &os) const
Definition: mgt-headers.cc:211
virtual void Serialize(Buffer::Iterator start) const
Definition: mgt-headers.cc:218
SupportedRates GetSupportedRates(void) const
Return the supported rates.
Definition: mgt-headers.cc:301
void SetListenInterval(uint16_t interval)
Set the listen interval.
Definition: mgt-headers.cc:286
static TypeId GetTypeId(void)
Definition: mgt-headers.cc:643
uint8_t m_amsduSupport
Flag if A-MSDU is supported.
Definition: mgt-headers.h:676
virtual TypeId GetInstanceTypeId(void) const
Get the most derived TypeId for this Object.
Definition: mgt-headers.cc:704
virtual TypeId GetInstanceTypeId() const
Get the most derived TypeId for this Object.
Definition: mgt-headers.cc:652
void SetParameterSet(uint16_t params)
Set the parameter set from the given raw value.
Definition: mgt-headers.cc:849
uint8_t m_tid
Traffic ID.
Definition: mgt-headers.h:561
SupportedRates m_rates
List of supported rates.
Definition: mgt-headers.h:230
virtual uint32_t GetSerializedSize() const
Definition: mgt-headers.cc:661
void SetStartingSequenceControl(uint16_t seqControl)
Set sequence control with the given raw value.
Definition: mgt-headers.cc:832
void SetImmediateBlockAck()
Enable immediate Block ACK.
Definition: mgt-headers.cc:932
void SetTid(uint8_t tid)
Set Traffic ID (TID).
Definition: mgt-headers.cc:759
uint16_t GetListenInterval(void) const
Return the listen interval.
Definition: mgt-headers.cc:306
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:95
virtual uint32_t Deserialize(Buffer::Iterator start)
Definition: mgt-headers.cc:111
uint8_t m_amsduSupport
Flag if A-MSDU is supported.
Definition: mgt-headers.h:559
void SetStartingSequence(uint16_t seq)
Set the starting sequence number.
Definition: mgt-headers.cc:778
virtual void Serialize(Buffer::Iterator start) const
Definition: mgt-headers.cc:726
uint8_t GetTid(void) const
Return the Traffic ID (TID).
Definition: mgt-headers.cc:790
SupportedRates GetSupportedRates(void)
Return the supported rates.
Definition: mgt-headers.cc:389
uint64_t m_timestamp
Timestamp.
Definition: mgt-headers.h:308
void SetHtCapabilities(HtCapabilities htcapabilities)
Set the HT capabilities.
Definition: mgt-headers.cc:54
virtual TypeId GetInstanceTypeId(void) const
Get the most derived TypeId for this Object.
Definition: mgt-headers.cc:425
uint64_t GetTimestamp()
Return the time stamp.
Definition: mgt-headers.cc:135
virtual uint32_t GetSerializedSize(void) const
Definition: mgt-headers.cc:715
void SetByOriginator(void)
Set the initiator bit in the DELBA.
Status code for association response.
Definition: status-code.h:32
void SetSsid(Ssid ssid)
Set the Service Set Identifier (SSID).
Definition: mgt-headers.cc:166
virtual void Print(std::ostream &os) const
Definition: mgt-headers.cc:339
void SetByRecipient(void)
Un-set the initiator bit in the DELBA.
bool IsAmsduSupported(void) const
Return whether A-MSDU capability is supported.
Definition: mgt-headers.cc:814
static TypeId GetTypeId(void)
Every class exported by the ns3 library is enclosed in the ns3 namespace.
virtual uint32_t GetSerializedSize(void) const
Definition: mgt-headers.cc:894
void SetBeaconIntervalUs(uint64_t us)
Set the beacon interval in microseconds unit.
Definition: mgt-headers.cc:171
static TypeId GetTypeId(void)
Definition: mgt-headers.cc:181
void SetBufferSize(uint16_t size)
Set buffer size.
Definition: mgt-headers.cc:951
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:672
HtCapabilities GetHtCapabilities(void) const
Return the HT capabilities.
Definition: mgt-headers.cc:161
StatusCode GetStatusCode(void) const
Return the status code.
Definition: mgt-headers.cc:969
HtCapabilities GetHtCapabilities(void) const
Return the HT capabilities.
Definition: mgt-headers.cc:60
bool IsByOriginator(void) const
Check if the initiator bit in the DELBA is setted.
HtCapabilities m_htCapability
HT capabilities.
Definition: mgt-headers.h:313
virtual uint32_t Deserialize(Buffer::Iterator start)
Definition: mgt-headers.cc:241
uint8_t m_tid
Traffic ID.
Definition: mgt-headers.h:678
virtual void Print(std::ostream &os) const
Definition: mgt-headers.cc:443
uint16_t GetTimeout(void) const
Return the timeout.
Definition: mgt-headers.cc:987
uint8_t GetTid(void) const
Return the Traffic ID (TID).
Definition: mgt-headers.cc:975
uint8_t m_actionValue
Action value.
Definition: mgt-headers.h:437
The IEEE 802.11 SSID Information Element.
Definition: ssid.h:37
Implement the header for management frames of type probe request.
Definition: mgt-headers.h:180
bool IsImmediateBlockAck(void) const
Return whether the Block ACK policy is immediate Block ACK.
Definition: mgt-headers.cc:796
Implement the header for management frames of type association response.
Definition: mgt-headers.h:116
virtual uint32_t Deserialize(Buffer::Iterator start)
Definition: mgt-headers.cc:915
StatusCode m_code
Status code.
Definition: mgt-headers.h:170
uint16_t GetStartingSequence(void) const
Return the starting sequence number.
Definition: mgt-headers.cc:820
uint16_t m_tid
Traffic ID.
Definition: mgt-headers.h:743
static TypeId GetTypeId(void)
Definition: mgt-headers.cc:694
static TypeId GetTypeId(void)
Definition: mgt-headers.cc:415
void SetSupportedRates(SupportedRates rates)
Set the supported rates.
Definition: mgt-headers.cc:399
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:572
Implement the header for management frames of type del block ack.
Definition: mgt-headers.h:688
typedef for union of different ActionValues
Definition: mgt-headers.h:402
uint8_t m_policy
Block ACK policy.
Definition: mgt-headers.h:560
HtCapabilities m_htCapability
HT capabilities.
Definition: mgt-headers.h:172
void SetSupportedRates(SupportedRates rates)
Set the supported rates.
Definition: mgt-headers.cc:176
Ssid m_ssid
Service Set ID (SSID)
Definition: mgt-headers.h:229
void SetHtCapabilities(HtCapabilities htcapabilities)
Set the HT capabilities.
Definition: mgt-headers.cc:404
void SetSsid(Ssid ssid)
Set the Service Set Identifier (SSID).
Definition: mgt-headers.cc:39
void SetStatusCode(StatusCode code)
Set the status code.
Definition: mgt-headers.cc:394
void SetParameterSet(uint16_t params)
Set the parameter set from the given raw value.
void SetAmsduSupport(bool supported)
Enable or disable A-MSDU support.
Definition: mgt-headers.cc:963
uint8_t m_category
Category of the action.
Definition: mgt-headers.h:436
void SetDelayedBlockAck()
Enable delayed Block ACK.
Definition: mgt-headers.cc:747
virtual uint32_t Deserialize(Buffer::Iterator start)
Definition: mgt-headers.cc:357
void SetTimeout(uint16_t timeout)
Set timeout.
Definition: mgt-headers.cc:766
Implement the header for management frames of type probe response.
Definition: mgt-headers.h:239
uint16_t GetParameterSet(void) const
Return the raw parameter set.
Definition: mgt-headers.cc:838
ActionValue GetAction()
Return the action value.
Definition: mgt-headers.cc:535
uint16_t m_bufferSize
Buffer size.
Definition: mgt-headers.h:679
uint16_t GetParameterSet(void) const
Return the raw parameter set.
uint64_t m_beaconInterval
Beacon interval.
Definition: mgt-headers.h:310
virtual uint32_t GetSerializedSize(void) const
Definition: mgt-headers.cc:70
uint16_t m_timeoutValue
Timeout.
Definition: mgt-headers.h:680
Ssid m_ssid
Service Set ID (SSID)
Definition: mgt-headers.h:104
HtCapabilities GetHtCapabilities(void) const
Return the HT capabilities.
Definition: mgt-headers.cc:291
virtual uint32_t GetSerializedSize(void) const
Definition: mgt-headers.cc:196
a unique identifier for an interface.
Definition: type-id.h:57
virtual void Serialize(Buffer::Iterator start) const
Definition: mgt-headers.cc:102
void SetHtCapabilities(HtCapabilities htcapabilities)
Set the HT capabilities.
Definition: mgt-headers.cc:155
Implement the header for management frames of type beacon.
Definition: mgt-headers.h:321
virtual uint32_t Deserialize(Buffer::Iterator start)
Definition: mgt-headers.cc:461
virtual uint32_t GetSerializedSize(void) const
Definition: mgt-headers.cc:430
StatusCode GetStatusCode(void)
Return the status code.
Definition: mgt-headers.cc:384
Ssid m_ssid
Service set ID (SSID)
Definition: mgt-headers.h:309
virtual void Serialize(Buffer::Iterator start) const
Definition: mgt-headers.cc:666
virtual uint32_t Deserialize(Buffer::Iterator start)
uint16_t GetTimeout(void) const
Return the timeout.
Definition: mgt-headers.cc:802
HtCapabilities GetHtCapabilities(void) const
Return the HT capabilities.
Definition: mgt-headers.cc:410
virtual void Print(std::ostream &os) const
virtual void Serialize(Buffer::Iterator start) const
Definition: mgt-headers.cc:346