22 #include "ns3/address-utils.h"
23 #include "ns3/packet.h"
40 os << std::endl <<
"<information_element id=" <<
ElementId () <<
">" << std::endl;
41 os <<
"Number of failed destinations: = " <<
m_addressUnits.size ();
44 os <<
"Failed destination address: = " <<
m_addressUnits[j].destination <<
", sequence number = "
47 os << std::endl <<
"</information_element>" << std::endl;
70 uint8_t numOfDest = i.
ReadU8 ();
71 NS_ASSERT ((2 + 10 * numOfDest ) == length);
73 for (
unsigned int j = 0; j < numOfDest; j++)
113 std::vector<HwmpProtocol::FailedDestination>
121 for (std::vector<HwmpProtocol::FailedDestination>::iterator i =
m_addressUnits.begin (); i
124 if (i->destination == address)
std::vector< HwmpProtocol::FailedDestination > m_addressUnits
virtual void SerializeInformationField(Buffer::Iterator i) const
Serialize information (i.e., the body of the IE, not including the Element ID and length octets) ...
structure of unreachable destination - address and sequence number
void ReadFrom(Buffer::Iterator &i, Ipv4Address &ad)
Read an Ipv4Address from a Buffer.
void AddAddressUnit(HwmpProtocol::FailedDestination unit)
#define NS_ASSERT(condition)
void WriteTo(Buffer::Iterator &i, Ipv4Address ad)
Write an Ipv4Address to a Buffer.
virtual uint8_t DeserializeInformationField(Buffer::Iterator start, uint8_t length)
Deserialize information (i.e., the body of the IE, not including the Element ID and length octets) ...
virtual uint8_t GetInformationFieldSize() const
Length of serialized information (i.e., the length of the body of the IE, not including the Element I...
See 7.3.2.98 of 802.11s draft 2.07.
bool operator==(const MeshHeader &a, const MeshHeader &b)
uint32_t GetDistanceFrom(Iterator const &o) const
iterator in a Buffer instance
virtual void Print(std::ostream &os) const
In addition, a subclass may optionally override the following...
uint8_t GetNumOfDest() const
void Next(void)
go forward by one byte
std::vector< HwmpProtocol::FailedDestination > GetAddressUnitVector() const
void WriteU8(uint8_t data)
virtual WifiInformationElementId ElementId() const
Own unique Element ID.
uint8_t WifiInformationElementId
This type is used to represent an Information Element ID.
void DeleteAddressUnit(Mac48Address address)
std::ostream & operator<<(std::ostream &os, const IeBeaconTiming &a)
uint32_t ReadLsbtohU32(void)
void WriteHtolsbU32(uint32_t data)