22#include <ns3/simulator.h>
23#include <ns3/address-utils.h>
41 .SetGroupName (
"LrWpan")
150 static TypeId tid =
TypeId (
"ns3::CommandPayloadHeader")
152 .SetGroupName (
"LrWpan")
281 os <<
"| Assigned Short Address | = " <<
m_shortAddr
iterator in a Buffer instance
void WriteU8(uint8_t data)
uint32_t GetDistanceFrom(Iterator const &o) const
Represent the Capability Information Field.
bool IsDeviceTypeFfd(void) const
True if the device type is a Full Functional Device (FFD) false if is a Reduced Functional Device (RF...
uint32_t GetSerializedSize(void) const
Get the size of the serialized Capability Information Field.
bool IsSecurityCapability(void) const
True if the device is capable of sending and receiving cryptographically protected MAC frames.
bool IsShortAddrAllocOn(void) const
True if the device wishes the coordinator to allocate a short address as result of the association pr...
bool IsPowSrcAvailable(void) const
True if the device is receiving power from alternating current mains.
bool IsReceiverOnWhenIdle(void) const
True if the device does not disable its receiver to conserve power during idle periods.
Buffer::Iterator Deserialize(Buffer::Iterator i)
Deserialize the entire Capability Information Field.
Buffer::Iterator Serialize(Buffer::Iterator i) const
Serialize the entire Capability Information Field.
Implements the header for the MAC payload command frame according to the IEEE 802....
AssocStatus
Association Status Field values.
void SetCapabilityField(CapabilityField cap)
Set the Capability Information Field to the command payload header (Association Request Command).
TypeId GetInstanceTypeId(void) const
Get the most derived TypeId for this Object.
CapabilityField m_capabilityInfo
Capability Information Field (Association Request Command)
MacCommand m_cmdFrameId
The command Frame Identifier.
void SetAssociationStatus(AssocStatus status)
Set status resulting from the association attempt (Association Response Command).
uint32_t GetSerializedSize(void) const
virtual void Serialize(Buffer::Iterator start) const
MacCommand
The MAC command frames.
@ ASSOCIATION_RESP
Association response (RFD true: Rx)
@ BEACON_REQ
Beacon Request (RFD true: none )
@ DATA_REQ
Data Request (RFD true: Tx)
@ ORPHAN_NOTIF
Orphan Notification (RFD true: Tx)
@ ASSOCIATION_REQ
Association request (RFD true: Tx)
@ DISASSOCIATION_NOTIF
Disassociation notification (RFD true: TX, Rx)
@ COOR_REALIGN
Coordinator Realignment (RFD true: Rx)
@ PANID_CONFLICT
Pan ID conflict notification (RFD true: Tx)
@ GTS_REQ
GTS Request (RFD true: none)
CommandPayloadHeader(void)
void SetCommandFrameType(MacCommand macCmd)
Set the command frame type.
uint32_t Deserialize(Buffer::Iterator start)
void Print(std::ostream &os) const
Mac16Address m_shortAddr
Contains the short address assigned by the coordinator (Association Response Command) See IEEE 802....
AssocStatus m_assocStatus
Association Status (Association Response Command)
MacCommand GetCommandFrameType(void) const
Get the command frame type ID.
static TypeId GetTypeId(void)
Get the type ID.
void SetShortAddr(Mac16Address shortAddr)
Set the Short Address Assigned by the coordinator (Association Response Command).
CapabilityField GetCapabilityField(void) const
Get the Capability Information Field from the command payload header.
AssocStatus GetAssociationStatus(void) const
Get the status resulting from an association request (Association Response Command).
Mac16Address GetShortAddr(void) const
Get the Short address assigned by the coordinator (Association Response Command).
Represent the GTS information fields.
uint8_t GetGtsSpecField(void) const
Get the GTS Specification Field from the GTS Fields.
uint32_t GetSerializedSize(void) const
Get the size of the serialized GTS fields.
Buffer::Iterator Serialize(Buffer::Iterator i) const
Serialize the entire GTS fields.
Buffer::Iterator Deserialize(Buffer::Iterator i)
Deserialize the entire GTS fields.
This class can contain 16 bit addresses.
Represent the Pending Address Specification field.
Buffer::Iterator Deserialize(Buffer::Iterator i)
Deserialize the all the Pending Address Fields.
uint32_t GetSerializedSize(void) const
Get the size of the serialized Pending Address Fields.
Buffer::Iterator Serialize(Buffer::Iterator i) const
Serialize the entire Pending Address Fields.
uint8_t GetPndAddrSpecField(void) const
Get the whole Pending Address Specification Field from the Pending Address Fields.
Represent the Superframe Specification information field.
uint32_t GetSerializedSize(void) const
Get the size of the serialized Superframe specification information field.
Buffer::Iterator Serialize(Buffer::Iterator i) const
Serialize the entire superframe specification field.
Buffer::Iterator Deserialize(Buffer::Iterator i)
Deserialize the entire superframe specification field.
a unique identifier for an interface.
TypeId SetParent(TypeId tid)
Set the parent TypeId.
#define NS_ASSERT(condition)
At runtime, in debugging builds, if this condition is not true, the program prints the source file,...
#define NS_OBJECT_ENSURE_REGISTERED(type)
Register an Object subclass with the TypeId system.
Every class exported by the ns3 library is enclosed in the ns3 namespace.
void WriteTo(Buffer::Iterator &i, Ipv4Address ad)
Write an Ipv4Address to a Buffer.
void ReadFrom(Buffer::Iterator &i, Ipv4Address &ad)
Read an Ipv4Address from a Buffer.