A Discrete-Event Network Simulator
Home
Tutorials ▼
English
Documentation ▼
Installation
Manual
Models
Contributing
Wiki
Development ▼
API Docs
Issue Tracker
Merge Requests
API
Loading...
Searching...
No Matches
ie-dot11s-perr.h
Go to the documentation of this file.
1
/*
2
* Copyright (c) 2008,2009 IITP RAS
3
*
4
* SPDX-License-Identifier: GPL-2.0-only
5
*
6
* Author: Kirill Andreev <andreev@iitp.ru>
7
*/
8
9
#ifndef PERR_INFORMATION_ELEMENT_H
10
#define PERR_INFORMATION_ELEMENT_H
11
12
#include "
hwmp-protocol.h
"
13
14
#include "ns3/mac48-address.h"
15
#include "ns3/mesh-information-element-vector.h"
16
17
namespace
ns3
18
{
19
namespace
dot11s
20
{
21
/**
22
* @ingroup dot11s
23
* @brief See 7.3.2.98 of 802.11s draft 2.07
24
*/
25
class
IePerr
:
public
WifiInformationElement
26
{
27
public
:
28
IePerr
();
29
~IePerr
()
override
;
30
/**
31
* Get number of destination function
32
* @returns the number of destinations
33
*/
34
uint8_t
GetNumOfDest
()
const
;
35
/**
36
* Add address unit function
37
* @param unit the address of the failed destination
38
*/
39
void
AddAddressUnit
(
HwmpProtocol::FailedDestination
unit);
40
/**
41
* Is full function
42
* @returns true if full
43
*/
44
bool
IsFull
()
const
;
45
/**
46
* Get address unit vector function
47
* @returns the list of failed destinations
48
*/
49
std::vector<HwmpProtocol::FailedDestination>
GetAddressUnitVector
()
const
;
50
/**
51
* Delete address unit function
52
* @param address the MAC address of the deleted unit
53
*/
54
void
DeleteAddressUnit
(
Mac48Address
address);
55
/// Reset PERR
56
void
ResetPerr
();
57
58
// Inherited from WifiInformationElement
59
WifiInformationElementId
ElementId
()
const override
;
60
void
SerializeInformationField
(
Buffer::Iterator
i)
const override
;
61
uint16_t
DeserializeInformationField
(
Buffer::Iterator
start, uint16_t length)
override
;
62
void
Print
(std::ostream& os)
const override
;
63
uint16_t
GetInformationFieldSize
()
const override
;
64
65
private
:
66
std::vector<HwmpProtocol::FailedDestination>
m_addressUnits
;
///< address units
67
/**
68
* equality operator
69
*
70
* @param a lhs
71
* @param b rhs
72
* @returns true if equal
73
*/
74
friend
bool
operator==
(
const
IePerr
& a,
const
IePerr
& b);
75
};
76
77
bool
operator==
(
const
IePerr
& a,
const
IePerr
& b);
78
std::ostream&
operator<<
(std::ostream& os,
const
IePerr
& perr);
79
}
// namespace dot11s
80
}
// namespace ns3
81
#endif
ns3::Buffer::Iterator
iterator in a Buffer instance
Definition
buffer.h:89
ns3::Mac48Address
an EUI-48 address
Definition
mac48-address.h:35
ns3::WifiInformationElement
Information element, as defined in 802.11-2007 standard.
Definition
wifi-information-element.h:285
ns3::dot11s::IePerr
See 7.3.2.98 of 802.11s draft 2.07.
Definition
ie-dot11s-perr.h:26
ns3::dot11s::IePerr::Print
void Print(std::ostream &os) const override
Generate human-readable form of IE.
Definition
ie-dot11s-perr.cc:33
ns3::dot11s::IePerr::SerializeInformationField
void SerializeInformationField(Buffer::Iterator i) const override
Serialize information (i.e., the body of the IE, not including the Element ID and length octets)
Definition
ie-dot11s-perr.cc:51
ns3::dot11s::IePerr::DeleteAddressUnit
void DeleteAddressUnit(Mac48Address address)
Delete address unit function.
Definition
ie-dot11s-perr.cc:130
ns3::dot11s::IePerr::DeserializeInformationField
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)
Definition
ie-dot11s-perr.cc:67
ns3::dot11s::IePerr::IsFull
bool IsFull() const
Is full function.
Definition
ie-dot11s-perr.cc:114
ns3::dot11s::IePerr::GetInformationFieldSize
uint16_t GetInformationFieldSize() const override
Length of serialized information (i.e., the length of the body of the IE, not including the Element I...
Definition
ie-dot11s-perr.cc:87
ns3::dot11s::IePerr::operator==
friend bool operator==(const IePerr &a, const IePerr &b)
equality operator
Definition
ie-dot11s-perr.cc:149
ns3::dot11s::IePerr::ResetPerr
void ResetPerr()
Reset PERR.
Definition
ie-dot11s-perr.cc:143
ns3::dot11s::IePerr::AddAddressUnit
void AddAddressUnit(HwmpProtocol::FailedDestination unit)
Add address unit function.
Definition
ie-dot11s-perr.cc:97
ns3::dot11s::IePerr::ElementId
WifiInformationElementId ElementId() const override
Get the wifi information element ID.
Definition
ie-dot11s-perr.cc:27
ns3::dot11s::IePerr::IePerr
IePerr()
Definition
ie-dot11s-perr.cc:18
ns3::dot11s::IePerr::~IePerr
~IePerr() override
Definition
ie-dot11s-perr.cc:22
ns3::dot11s::IePerr::GetNumOfDest
uint8_t GetNumOfDest() const
Get number of destination function.
Definition
ie-dot11s-perr.cc:45
ns3::dot11s::IePerr::GetAddressUnitVector
std::vector< HwmpProtocol::FailedDestination > GetAddressUnitVector() const
Get address unit vector function.
Definition
ie-dot11s-perr.cc:124
ns3::dot11s::IePerr::m_addressUnits
std::vector< HwmpProtocol::FailedDestination > m_addressUnits
address units
Definition
ie-dot11s-perr.h:66
hwmp-protocol.h
ns3::dot11s
Definition
airtime-metric.cc:16
ns3::dot11s::operator==
bool operator==(const MeshHeader &a, const MeshHeader &b)
Definition
dot11s-mac-header.cc:187
ns3::dot11s::operator<<
std::ostream & operator<<(std::ostream &os, const IeBeaconTiming &a)
Definition
ie-dot11s-beacon-timing.cc:231
ns3
Every class exported by the ns3 library is enclosed in the ns3 namespace.
ns3::WifiInformationElementId
uint8_t WifiInformationElementId
This type is used to represent an Information Element ID.
Definition
wifi-information-element.h:34
ns3::dot11s::HwmpProtocol::FailedDestination
structure of unreachable destination - address and sequence number
Definition
hwmp-protocol.h:78
src
mesh
model
dot11s
ie-dot11s-perr.h
Generated on Wed Jun 11 2025 13:15:35 for ns-3 by
1.13.2