22 #include "ns3/address-utils.h"
23 #include "ns3/packet.h"
46 os <<
"PERR=(Number of failed destinations=" <<
m_addressUnits.size();
49 os <<
"(Failed destination address=" <<
m_addressUnits[j].destination
82 uint8_t numOfDest = i.
ReadU8();
85 for (
unsigned int j = 0; j < numOfDest; j++)
134 std::vector<HwmpProtocol::FailedDestination>
iterator in a Buffer instance
void WriteU8(uint8_t data)
void WriteHtolsbU32(uint32_t data)
uint32_t GetDistanceFrom(const Iterator &o) const
void Next()
go forward by one byte
See 7.3.2.98 of 802.11s draft 2.07.
void Print(std::ostream &os) const override
Generate human-readable form of IE.
void SerializeInformationField(Buffer::Iterator i) const override
Serialize information (i.e., the body of the IE, not including the Element ID and length octets)
void DeleteAddressUnit(Mac48Address address)
Delete address unit function.
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)
bool IsFull() const
Is full function.
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 ResetPerr()
Reset PERR.
void AddAddressUnit(HwmpProtocol::FailedDestination unit)
Add address unit function.
WifiInformationElementId ElementId() const override
Get the wifi information element ID.
uint8_t GetNumOfDest() const
Get number of destination function.
std::vector< HwmpProtocol::FailedDestination > GetAddressUnitVector() const
Get address unit vector function.
std::vector< HwmpProtocol::FailedDestination > m_addressUnits
address units
#define NS_ABORT_UNLESS(cond)
Abnormal program termination if a condition is false.
bool operator==(const MeshHeader &a, const MeshHeader &b)
std::ostream & operator<<(std::ostream &os, const IeBeaconTiming &a)
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.
structure of unreachable destination - address and sequence number
Mac48Address destination
destination address
uint32_t seqnum
sequence number