A Discrete-Event Network Simulator
API
Loading...
Searching...
No Matches
addba-extension.h
Go to the documentation of this file.
1/*
2 * Copyright (c) 2023 Universita' degli Studi di Napoli Federico II
3 *
4 * SPDX-License-Identifier: GPL-2.0-only
5 *
6 * Author: Stefano Avallone <stavallo@unina.it>
7 */
8
9#ifndef ADDBA_EXTENSION_H
10#define ADDBA_EXTENSION_H
11
13
14namespace ns3
15{
16
17/**
18 * \ingroup wifi
19 *
20 * The IEEE 802.11 ADDBA Extension Element (Sec. 9.4.2.139 of 802.11-2020)
21 */
23{
24 public:
25 AddbaExtension() = default;
26
27 /**
28 * ADDBA Extended Parameter Set
29 */
31 {
32 uint8_t noFragment : 1; //!< reserved when transmitted by HE STA to HE STA
33 uint8_t heFragmentOp : 2; //!< indicates level of HE dynamic fragmentation (unsupported)
34 uint8_t : 2; //!< reserved
35 uint8_t extBufferSize : 3; //!< extended buffer size
36 };
37
38 // Implementations of pure virtual methods of WifiInformationElement
39 WifiInformationElementId ElementId() const override;
40 void Print(std::ostream& os) const override;
41
42 ExtParamSet m_extParamSet{}; //!< ADDBA Extended Parameter Set field
43
44 private:
45 uint16_t GetInformationFieldSize() const override;
46 void SerializeInformationField(Buffer::Iterator start) const override;
47 uint16_t DeserializeInformationField(Buffer::Iterator start, uint16_t length) override;
48};
49
50} // namespace ns3
51
52#endif /* ADDBA_EXTENSION_H */
The IEEE 802.11 ADDBA Extension Element (Sec.
void SerializeInformationField(Buffer::Iterator start) const override
Serialize information (i.e., the body of the IE, not including the Element ID and length octets)
WifiInformationElementId ElementId() const override
Get the wifi information element ID.
AddbaExtension()=default
ExtParamSet m_extParamSet
ADDBA Extended Parameter Set field.
uint16_t DeserializeInformationField(Buffer::Iterator start, uint16_t length) override
Deserialize information (i.e., the body of the IE, not including the Element ID and length octets)
uint16_t GetInformationFieldSize() const override
Length of serialized information (i.e., the length of the body of the IE, not including the Element I...
void Print(std::ostream &os) const override
Generate human-readable form of IE.
iterator in a Buffer instance
Definition buffer.h:89
Information element, as defined in 802.11-2007 standard.
Every class exported by the ns3 library is enclosed in the ns3 namespace.
uint8_t WifiInformationElementId
This type is used to represent an Information Element ID.
ADDBA Extended Parameter Set.
uint8_t extBufferSize
extended buffer size
uint8_t heFragmentOp
indicates level of HE dynamic fragmentation (unsupported)
uint8_t noFragment
reserved when transmitted by HE STA to HE STA