|
A Discrete-Event Network Simulator
|
API
|
Go to the documentation of this file.
23 #include "ns3/mesh-wifi-interface-mac.h"
25 #include "ns3/packet.h"
59 static TypeId tid =
TypeId (
"ns3::dot11s::PeerLinkOpenStart")
61 .SetGroupName (
"Mesh")
111 uint8_t length = i.
ReadU8 ();
115 NS_FATAL_ERROR (
"Broken frame: Element ID does not match IE itself!");
123 NS_FATAL_ERROR (
"Broken frame: Element ID does not match IE itself!");
159 static TypeId tid =
TypeId (
"ns3::dot11s::PeerLinkCloseStart")
161 .SetGroupName (
"Mesh")
195 uint8_t length = i.
ReadU8 ();
199 NS_FATAL_ERROR (
"Broken frame: Element ID does not match IE itself!");
239 static TypeId tid =
TypeId (
"ns3::dot11s::PeerLinkConfirmStart")
241 .SetGroupName (
"Mesh")
290 uint8_t length = i.
ReadU8 ();
294 NS_FATAL_ERROR (
"Broken frame: Element ID does not match IE itself!");
a unique identifier for an interface.
#define NS_OBJECT_ENSURE_REGISTERED(type)
Register an Object subclass with the TypeId system.
uint16_t capability
open and confirm
virtual uint32_t GetSerializedSize() const
void WriteHtolsbU16(uint16_t data)
virtual void Print(std::ostream &os) const
Generate human-readable form of IE.
static TypeId GetTypeId()
Get the type ID.
virtual void Print(std::ostream &os) const
bool operator==(const MeshHeader &a, const MeshHeader &b)
Every class exported by the ns3 library is enclosed in the ns3 namespace.
uint32_t GetDistanceFrom(Iterator const &o) const
void SetPlinkOpenStart(PlinkOpenStartFields fields)
Set peer link open start fields.
virtual void Print(std::ostream &os) const
Generate human-readable form of IE.
Describes Mesh Configuration Element see 7.3.2.86 of 802.11s draft 3.0.
uint8_t WifiInformationElementId
This type is used to represent an Information Element ID.
void Next(void)
go forward by one byte
TypeId SetParent(TypeId tid)
Set the parent TypeId.
virtual WifiInformationElementId ElementId() 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)
virtual void Print(std::ostream &os) const
SupportedRates rates
open and confirm
The Supported Rates Information Element.
#define NS_FATAL_ERROR(msg)
Report a fatal error with a message and terminate.
uint16_t GetSerializedSize() const override
Get the size of the serialized IE including Element ID and length fields.
SupportedRates rates
open and confirm
uint16_t m_capability
capability
IeConfiguration m_config
config
PlinkCloseStartFields GetFields() const
Get peer link close start fields.
virtual uint32_t GetSerializedSize() const
SupportedRates m_rates
rates
PlinkOpenStartFields GetFields() const
Get peer link open start fields.
IeConfiguration m_config
config
static TypeId GetTypeId()
Get the type ID.
virtual WifiInformationElementId ElementId() const
PlinkConfirmStartFields GetFields() const
Get peer link confirm start fields.
static TypeId GetTypeId()
Get the type ID.
virtual TypeId GetInstanceTypeId() const
Get the most derived TypeId for this Object.
uint16_t ReadLsbtohU16(void)
virtual void Serialize(Buffer::Iterator start) const
void SetPlinkCloseStart(PlinkCloseStartFields fields)
Set peer link close start fields.
iterator in a Buffer instance
ExtendedSupportedRatesIE extended
extended supported rates info element
void SetPlinkConfirmStart(PlinkConfirmStartFields fields)
Set peer link confirm start fields.
802.11s Peer link open management frame
virtual uint32_t GetSerializedSize() const
IeMeshId meshId
open and close
802.11s Peer link confirm management frame
virtual TypeId GetInstanceTypeId() const
Get the most derived TypeId for this Object.
uint16_t m_capability
capability
IeConfiguration config
open and confirm
IeConfiguration config
open and confirm
virtual uint8_t GetInformationFieldSize() const
Length of serialized information (i.e., the length of the body of the IE, not including the Element I...
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)
virtual uint8_t GetInformationFieldSize() const
Length of serialized information (i.e., the length of the body of the IE, not including the Element I...
virtual TypeId GetInstanceTypeId() const
Get the most derived TypeId for this Object.
uint16_t capability
open and confirm
virtual void Serialize(Buffer::Iterator start) const
IeMeshId meshId
open and close
SupportedRates m_rates
rates
virtual void Serialize(Buffer::Iterator start) const
Buffer::Iterator Serialize(Buffer::Iterator start) const override
Serialize entire IE including Element ID and length fields.
virtual void Print(std::ostream &os) const
802.11s Peer link close management frame
bool IsEqual(IeMeshId const &o) const
Equality test.