A Discrete-Event Network Simulator
API
Loading...
Searching...
No Matches
gcr-group-address.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 GCR_GROUP_ADDRESS_H
10#define GCR_GROUP_ADDRESS_H
11
13
14#include "ns3/mac48-address.h"
15
16namespace ns3
17{
18
19/**
20 * @ingroup wifi
21 *
22 * The IEEE 802.11 GCR Group Address Element (Sec. 9.4.2.125 of 802.11-2020)
23 */
25{
26 public:
27 GcrGroupAddress() = default;
28
29 WifiInformationElementId ElementId() const override;
30 void Print(std::ostream& os) const override;
31
32 Mac48Address m_gcrGroupAddress; //!< GCR Group Address field
33
34 private:
35 uint16_t GetInformationFieldSize() const override;
36 void SerializeInformationField(Buffer::Iterator start) const override;
37 uint16_t DeserializeInformationField(Buffer::Iterator start, uint16_t length) override;
38};
39
40} // namespace ns3
41
42#endif /* GCR_GROUP_ADDRESS_H */
iterator in a Buffer instance
Definition buffer.h:89
The IEEE 802.11 GCR Group Address Element (Sec.
WifiInformationElementId ElementId() const override
Get the wifi information element ID.
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)
GcrGroupAddress()=default
void SerializeInformationField(Buffer::Iterator start) const override
Serialize information (i.e., the body of the IE, not including the Element ID and length octets)
Mac48Address m_gcrGroupAddress
GCR Group Address field.
void Print(std::ostream &os) const override
Generate human-readable form of IE.
uint16_t GetInformationFieldSize() const override
Length of serialized information (i.e., the length of the body of the IE, not including the Element I...
an EUI-48 address
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.