22 #include "ns3/assert.h"
29 for (uint8_t i = 0; i < 32; i++)
37 const char *meshid = s.c_str ();
39 while (*meshid != 0 && len < 32)
89 while (
m_meshId[size] != 0 && size < 32)
100 while (
m_meshId[size] != 0 && size < 32)
118 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(Iterator const &o) const
a IEEE 802.11 Mesh ID element (Section 8.4.2.101 of IEEE 802.11-2012)
bool IsEqual(IeMeshId const &o) const
Equality test.
char * PeekString(void) const
Peek the IeMeshId as a string value.
virtual void SerializeInformationField(Buffer::Iterator i) const
Serialize information (i.e., the body of the IE, not including the Element ID and length octets)
bool IsBroadcast(void) const
Return true if broadcast (if first octet of Mesh ID is zero)
virtual WifiInformationElementId ElementId() const
virtual uint8_t GetInformationFieldSize() const
Length of serialized information (i.e., the length of the body of the IE, not including the Element I...
uint8_t m_meshId[33]
mesh ID
virtual void Print(std::ostream &os) const
Generate human-readable form of IE.
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)
#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.