11#include "ns3/assert.h"
20 for (uint8_t i = 0; i < 32; i++)
29 const char* meshid = s.c_str();
31 while (*meshid != 0 && len < 32)
78 while (
m_meshId[size] != 0 && size < 32)
90 while (
m_meshId[size] != 0 && size < 32)
110 os <<
"MeshId=(meshId=" <<
PeekString() <<
")";
iterator in a Buffer instance
void WriteU8(uint8_t data)
void Read(uint8_t *buffer, uint32_t size)
uint32_t GetDistanceFrom(const Iterator &o) const
a IEEE 802.11 Mesh ID element (Section 8.4.2.101 of IEEE 802.11-2012)
WifiInformationElementId ElementId() const override
Get the wifi information element ID.
uint16_t GetInformationFieldSize() const override
Length of serialized information (i.e., the length of the body of the IE, not including the Element I...
bool IsBroadcast() const
Return true if broadcast (if first octet of Mesh ID is zero)
void Print(std::ostream &os) const override
Generate human-readable form of IE.
bool IsEqual(const IeMeshId &o) const
Equality test.
uint8_t m_meshId[33]
mesh ID
void SerializeInformationField(Buffer::Iterator i) const override
Serialize information (i.e., the body of the IE, not including the Element ID and length octets)
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)
char * PeekString() const
Peek the IeMeshId as a string value.
#define NS_ASSERT(condition)
At runtime, in debugging builds, if this condition is not true, the program prints the source file,...
std::istream & operator>>(std::istream &is, IeMeshId &a)
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.
uint8_t WifiInformationElementId
This type is used to represent an Information Element ID.