21 #ifndef IE_DOT11S_PEER_MANAGEMENT_H
22 #define IE_DOT11S_PEER_MANAGEMENT_H
24 #include "ns3/mesh-information-element-vector.h"
123 void Print(std::ostream& os)
const override;
iterator in a Buffer instance
according to IEEE 802.11 - 2012
uint16_t m_peerLinkId
Present within confirm and may be present in close.
bool SubtypeIsOpen() const
Subtype is open function.
PmpReasonCode m_reasonCode
Present only within close frame.
uint16_t m_localLinkId
local link ID
bool SubtypeIsClose() const
Subtype is close function.
PmpReasonCode GetReasonCode() const
Get reason code function.
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 GetInformationFieldSize() const override
Length of serialized information (i.e., the length of the body of the IE, not including the Element I...
bool SubtypeIsConfirm() const
Subtype is confirm function.
void SetPeerConfirm(uint16_t localLinkID, uint16_t peerLinkId)
Set peer confirm function.
uint8_t GetSubtype() const
Get subtype function.
uint16_t GetPeerLinkId() const
Get peer link ID function.
void SetPeerOpen(uint16_t localLinkId)
Set peer open function.
WifiInformationElementId ElementId() const override
Get the wifi information element ID.
friend bool operator==(const IePeerManagement &a, const IePeerManagement &b)
equality operator
void SetPeerClose(uint16_t localLinkID, uint16_t peerLinkId, PmpReasonCode reasonCode)
Set peer close function.
void Print(std::ostream &os) const override
Generate human-readable form of IE.
uint16_t GetLocalLinkId() const
Get local link ID function.
uint16_t DeserializeInformationField(Buffer::Iterator i, uint16_t length) override
Deserialize information (i.e., the body of the IE, not including the Element ID and length octets)
Subtype
Subtype enumeration.
PmpReasonCode
Codes used by 802.11s Peer Management Protocol.
@ REASON11S_MESH_CLOSE_RCVD
@ REASON11S_MESH_INCONSISTENT_PARAMETERS
@ REASON11S_MESH_INVALID_GTK
@ REASON11S_MESH_INVALID_SECURITY_CAPABILITY
@ REASON11S_MESH_CAPABILITY_POLICY_VIOLATION
@ REASON11S_MESH_MAX_RETRIES
@ REASON11S_MESH_MAX_PEERS
@ REASON11S_PEERING_CANCELLED
@ REASON11S_MESH_CONFIRM_TIMEOUT
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.