A Discrete-Event Network Simulator
API
Loading...
Searching...
No Matches
gcr-group-address.cc
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#include "gcr-group-address.h"
10
11#include "ns3/address-utils.h"
12
13namespace ns3
14{
15
16void
17GcrGroupAddress::Print(std::ostream& os) const
18{
19 os << "gcrGroupAddress=" << m_gcrGroupAddress;
20}
21
27
28uint16_t
30{
31 return 6; // GCR Group Address field
32}
33
34void
39
40uint16_t
42{
44 return 6;
45}
46
47} // namespace ns3
iterator in a Buffer instance
Definition buffer.h:89
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)
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...
Every class exported by the ns3 library is enclosed in the ns3 namespace.
void WriteTo(Buffer::Iterator &i, Ipv4Address ad)
Write an Ipv4Address to a Buffer.
uint8_t WifiInformationElementId
This type is used to represent an Information Element ID.
void ReadFrom(Buffer::Iterator &i, Ipv4Address &ad)
Read an Ipv4Address from a Buffer.
#define IE_GCR_GROUP_ADDRESS