23 #include "ns3/assert.h"
24 #include "ns3/packet.h"
30 m_length (3), m_subtype (PEER_OPEN), m_localLinkId (0), m_peerLinkId (0), m_reasonCode (
REASON11S_RESERVED)
154 os << std::endl <<
"<information_element id=" <<
ElementId () <<
">" << std::endl;
155 os <<
" Subtype: = " << (uint16_t)
m_subtype << std::endl;
156 os <<
" Length: = " << (uint16_t)
m_length << std::endl;
160 os <<
"</information_element>" << std::endl;
uint16_t GetLocalLinkId() const
PmpReasonCode m_reasonCode
Present only within close frame.
#define NS_ASSERT(condition)
bool operator==(const MeshHeader &a, const MeshHeader &b)
virtual WifiInformationElementId ElementId() const
Own unique Element ID.
uint32_t GetDistanceFrom(Iterator const &o) const
iterator in a Buffer instance
bool SubtypeIsOpen() const
See 7.3.2.85 of draft 2.07.
virtual uint8_t GetInformationFieldSize(void) const
Length of serialized information (i.e., the length of the body of the IE, not including the Element I...
uint8_t GetSubtype() const
virtual uint8_t DeserializeInformationField(Buffer::Iterator i, uint8_t length)
Deserialize information (i.e., the body of the IE, not including the Element ID and length octets) ...
void SetPeerClose(uint16_t localLinkID, uint16_t peerLinkId, PmpReasonCode reasonCode)
virtual void Print(std::ostream &os) const
In addition, a subclass may optionally override the following...
uint16_t m_peerLinkId
Present within confirm and may be present in close.
uint16_t GetPeerLinkId() const
void WriteHtolsbU16(uint16_t data)
void SetPeerConfirm(uint16_t localLinkID, uint16_t peerLinkId)
void WriteU8(uint8_t data)
bool SubtypeIsClose() const
PmpReasonCode
Codes used by 802.11s Peer Management Protocol.
void SetPeerOpen(uint16_t localLinkId)
uint16_t ReadLsbtohU16(void)
uint8_t WifiInformationElementId
This type is used to represent an Information Element ID.
std::ostream & operator<<(std::ostream &os, const IeBeaconTiming &a)
PmpReasonCode GetReasonCode() const
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 SubtypeIsConfirm() const