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 () <<
")";
virtual uint8_t GetInformationFieldSize() const
Length of serialized information (i.e., the length of the body of the IE, not including the Element I...
#define ATTRIBUTE_HELPER_CPP(type)
Define the attribute value, accessor and checkers for class type.
#define NS_ASSERT(condition)
At runtime, in debugging builds, if this condition is not true, the program prints the source file...
a IEEE 802.11 Mesh ID element (Section 8.4.2.101 of IEEE 802.11-2012)
bool operator==(const MeshHeader &a, const MeshHeader &b)
iterator in a Buffer instance
virtual void SerializeInformationField(Buffer::Iterator i) const
Serialize information (i.e., the body of the IE, not including the Element ID and length octets) ...
uint32_t GetDistanceFrom(Iterator const &o) const
bool IsBroadcast(void) const
Return true if broadcast (if first octet of Mesh ID is zero)
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) ...
Every class exported by the ns3 library is enclosed in the ns3 namespace.
virtual WifiInformationElementId ElementId() const
void Read(uint8_t *buffer, uint32_t size)
bool IsEqual(IeMeshId const &o) const
Equality test.
void WriteU8(uint8_t data)
char * PeekString(void) const
Peek the IeMeshId as a string value.
uint8_t WifiInformationElementId
This type is used to represent an Information Element ID.
uint8_t m_meshId[33]
mesh ID
std::ostream & operator<<(std::ostream &os, const IeBeaconTiming &a)
std::istream & operator>>(std::istream &is, IeMeshId &a)