A Discrete-Event Network Simulator
API
Loading...
Searching...
No Matches
ns3::zigbee::ZigbeeNwkHeader Class Reference

Represent the NWK Header with the Frame Control and Routing fields Zigbee Specification r22.1.0, General NPDU Frame Format (Section 3.3.1) More...

#include "zigbee-nwk-header.h"

+ Inheritance diagram for ns3::zigbee::ZigbeeNwkHeader:
+ Collaboration diagram for ns3::zigbee::ZigbeeNwkHeader:

Public Member Functions

 ZigbeeNwkHeader ()
 
 ~ZigbeeNwkHeader () override
 
uint32_t Deserialize (Buffer::Iterator start) override
 
DiscoverRouteType GetDiscoverRoute () const
 Get the status of frame discovery route (suppress or enabled)
 
Mac16Address GetDstAddr () const
 Get the Destination address.
 
Mac64Address GetDstIeeeAddr () const
 Get the destination IEEE address.
 
bool GetEndDeviceInitiator () const
 Get whether or not the source of this message was an end device.
 
NwkType GetFrameType () const
 Set the Frame Control field "Frame Type" bits.
 
TypeId GetInstanceTypeId () const override
 Get the most derived TypeId for this Object.
 
uint8_t GetProtocolVer () const
 Get Frame protocol version.
 
uint8_t GetRadius () const
 Get the Radius.
 
uint8_t GetSeqNum () const
 Get the frame Sequence number.
 
uint32_t GetSerializedSize () const override
 
Mac16Address GetSrcAddr () const
 Get the Source address.
 
Mac64Address GetSrcIeeeAddr () const
 Get the source IEEE address.
 
bool IsMulticast () const
 Inform whether or not the current frame is used in multicast.
 
bool IsSecurityEnabled () const
 Inform whether or not security is enabled.
 
void Print (std::ostream &os) const override
 
void Serialize (Buffer::Iterator start) const override
 
void SetDiscoverRoute (enum DiscoverRouteType discoverRoute)
 Suppress or enable route discovery for this frame.
 
void SetDstAddr (Mac16Address addr)
 Set Destination address.
 
void SetDstIeeeAddr (Mac64Address dst)
 Set the destination IEEE address.
 
void SetEndDeviceInitiator ()
 This flag is used by the NWK to indicate if the the initiator device of the message is an end device and the nwkParentInformation field of the NIB has other value than 0.
 
void SetFrameType (enum NwkType nwkType)
 Set the Frame type used (Data or Command)
 
void SetMulticast ()
 Set to true the value of the multicast flag in the frame control field.
 
void SetProtocolVer (uint8_t ver)
 Set the Protocol version.
 
void SetRadius (uint8_t radius)
 Set the Radius.
 
void SetSeqNum (uint8_t seqNum)
 Set the Sequence number.
 
void SetSrcAddr (Mac16Address addr)
 Set Source address.
 
void SetSrcIeeeAddr (Mac64Address src)
 Set the source IEEE address.
 
- Public Member Functions inherited from ns3::Header
 ~Header () override
 
virtual uint32_t Deserialize (Buffer::Iterator start, Buffer::Iterator end)
 Deserialize the object from a buffer iterator.
 
- Public Member Functions inherited from ns3::ObjectBase
virtual ~ObjectBase ()
 Virtual destructor.
 
void GetAttribute (std::string name, AttributeValue &value, bool permissive=false) const
 Get the value of an attribute, raising fatal errors if unsuccessful.
 
bool GetAttributeFailSafe (std::string name, AttributeValue &value) const
 Get the value of an attribute without raising errors.
 
void SetAttribute (std::string name, const AttributeValue &value)
 Set a single attribute, raising fatal errors if unsuccessful.
 
bool SetAttributeFailSafe (std::string name, const AttributeValue &value)
 Set a single attribute without raising errors.
 
bool TraceConnect (std::string name, std::string context, const CallbackBase &cb)
 Connect a TraceSource to a Callback with a context.
 
bool TraceConnectWithoutContext (std::string name, const CallbackBase &cb)
 Connect a TraceSource to a Callback without a context.
 
bool TraceDisconnect (std::string name, std::string context, const CallbackBase &cb)
 Disconnect from a TraceSource a Callback previously connected with a context.
 
bool TraceDisconnectWithoutContext (std::string name, const CallbackBase &cb)
 Disconnect from a TraceSource a Callback previously connected without a context.
 

Static Public Member Functions

static TypeId GetTypeId ()
 Get the type ID.
 
- Static Public Member Functions inherited from ns3::Header
static TypeId GetTypeId ()
 Get the type ID.
 
- Static Public Member Functions inherited from ns3::Chunk
static TypeId GetTypeId ()
 Get the type ID.
 
- Static Public Member Functions inherited from ns3::ObjectBase
static TypeId GetTypeId ()
 Get the type ID.
 

Private Member Functions

uint16_t GetFrameControl () const
 Get the Frame control field.
 
uint8_t GetMulticastControl () const
 Get The Multicast control field.
 
void SetFrameControl (uint16_t frameControl)
 Set the Frame control field.
 
void SetMulticastControl (uint8_t multicastControl)
 Set the Multicast control field.
 

Private Attributes

Mac16Address m_dstAddr
 Destination address (2 Octets)
 
Mac64Address m_dstIeeeAddr
 Destination IEEE address (0 or 8 Octets)
 
DiscoverRouteType m_fctrlDscvRoute
 Discover route (Bit 6-7)
 
bool m_fctrlDstIEEEAddr
 Destination IEEE address flag (Bit 11)
 
bool m_fctrlEndDevIni
 End device initiator flag (Bit 13)
 
NwkType m_fctrlFrmType
 Frame type (Bit 0-1)
 
bool m_fctrlMcst
 Multicast flag (Bit 8)
 
uint8_t m_fctrlPrtVer
 Protocol version (Bit 2-5)
 
bool m_fctrlSecurity
 Security flag (Bit 9)
 
bool m_fctrlSrcIEEEAddr
 Source IEEE address flag (Bit 12)
 
bool m_fctrlSrcRoute
 Source route flag (Bit 10)
 
uint8_t m_maxNonMemberRadius
 Max non member radius sub-field (Bit 5-7)
 
MulticastMode m_mcstMode {NONMEMBER}
 Multicast mode sub-field (Bits 0-1)
 
uint8_t m_nonMemberRadius
 Non member radius sub-field (Bits 2-4)
 
uint8_t m_radius
 Radius (1 Octet)
 
uint8_t m_seqNum
 Sequence number (1 Octet)
 
Mac16Address m_srcAddr
 Source address (2 Octets)
 
Mac64Address m_srcIeeeAddr
 Source IEEE address (0 or 8 Octets)
 

Additional Inherited Members

- Protected Member Functions inherited from ns3::ObjectBase
void ConstructSelf (const AttributeConstructionList &attributes)
 Complete construction of ObjectBase; invoked by derived classes.
 
virtual void NotifyConstructionCompleted ()
 Notifier called once the ObjectBase is fully constructed.
 

Detailed Description

Represent the NWK Header with the Frame Control and Routing fields Zigbee Specification r22.1.0, General NPDU Frame Format (Section 3.3.1)

Definition at line 57 of file zigbee-nwk-header.h.

Constructor & Destructor Documentation

◆ ZigbeeNwkHeader()

ns3::zigbee::ZigbeeNwkHeader::ZigbeeNwkHeader ( )

Definition at line 20 of file zigbee-nwk-header.cc.

References ns3::zigbee::DATA, m_fctrlDstIEEEAddr, m_fctrlEndDevIni, m_fctrlMcst, m_fctrlSecurity, m_fctrlSrcIEEEAddr, m_fctrlSrcRoute, SetDiscoverRoute(), SetFrameType(), SetProtocolVer(), and ns3::zigbee::SUPPRESS_ROUTE_DISCOVERY.

+ Here is the call graph for this function:

◆ ~ZigbeeNwkHeader()

ns3::zigbee::ZigbeeNwkHeader::~ZigbeeNwkHeader ( )
override

Definition at line 33 of file zigbee-nwk-header.cc.

Member Function Documentation

◆ Deserialize()

uint32_t ns3::zigbee::ZigbeeNwkHeader::Deserialize ( Buffer::Iterator start)
overridevirtual
Parameters
startan iterator which points to where the header should read from.
Returns
the number of bytes read.

This method is used by Packet::RemoveHeader to re-create a header from the byte buffer of a packet. The data read is expected to match bit-for-bit the representation of this header in real networks.

Note that data is not actually removed from the buffer to which the iterator points. Both Packet::RemoveHeader() and Packet::PeekHeader() call Deserialize(), but only the RemoveHeader() has additional statements to remove the header bytes from the underlying buffer and associated metadata.

Implements ns3::Header.

Definition at line 261 of file zigbee-nwk-header.cc.

References ns3::Buffer::Iterator::GetDistanceFrom(), m_dstAddr, m_dstIeeeAddr, m_fctrlDstIEEEAddr, m_fctrlMcst, m_fctrlSrcIEEEAddr, m_srcAddr, m_srcIeeeAddr, ns3::ReadFrom(), ns3::Buffer::Iterator::ReadLsbtohU16(), ns3::Buffer::Iterator::ReadU8(), SetFrameControl(), SetMulticastControl(), SetRadius(), and SetSeqNum().

+ Here is the call graph for this function:

◆ GetDiscoverRoute()

DiscoverRouteType ns3::zigbee::ZigbeeNwkHeader::GetDiscoverRoute ( ) const

Get the status of frame discovery route (suppress or enabled)

Returns
The discovery route status

Definition at line 68 of file zigbee-nwk-header.cc.

References m_fctrlDscvRoute.

Referenced by ns3::zigbee::ZigbeeNwk::FindNextHop(), and ns3::zigbee::ZigbeeNwk::SendDataUcst().

+ Here is the caller graph for this function:

◆ GetDstAddr()

Mac16Address ns3::zigbee::ZigbeeNwkHeader::GetDstAddr ( ) const

Get the Destination address.

Returns
the Destination address (16bits)

Definition at line 110 of file zigbee-nwk-header.cc.

References m_dstAddr.

Referenced by ns3::zigbee::ZigbeeNwk::EnqueuePendingTx(), ns3::zigbee::ZigbeeNwk::McpsDataConfirm(), ns3::zigbee::ZigbeeNwk::McpsDataIndication(), and ns3::zigbee::ZigbeeNwk::SendDataUcst().

+ Here is the caller graph for this function:

◆ GetDstIeeeAddr()

Mac64Address ns3::zigbee::ZigbeeNwkHeader::GetDstIeeeAddr ( ) const

Get the destination IEEE address.

Returns
The destination IEEE address (64bits)

Definition at line 159 of file zigbee-nwk-header.cc.

References m_dstIeeeAddr.

◆ GetEndDeviceInitiator()

bool ns3::zigbee::ZigbeeNwkHeader::GetEndDeviceInitiator ( ) const

Get whether or not the source of this message was an end device.

Returns
True of the source of the message was an end device.

Definition at line 98 of file zigbee-nwk-header.cc.

References m_fctrlEndDevIni.

◆ GetFrameControl()

uint16_t ns3::zigbee::ZigbeeNwkHeader::GetFrameControl ( ) const
private

Get the Frame control field.

Returns
The 16 bits of the Frame control field

Definition at line 192 of file zigbee-nwk-header.cc.

References m_fctrlDscvRoute, m_fctrlDstIEEEAddr, m_fctrlEndDevIni, m_fctrlFrmType, m_fctrlMcst, m_fctrlPrtVer, m_fctrlSecurity, m_fctrlSrcIEEEAddr, and m_fctrlSrcRoute.

Referenced by Serialize().

+ Here is the caller graph for this function:

◆ GetFrameType()

NwkType ns3::zigbee::ZigbeeNwkHeader::GetFrameType ( ) const

Set the Frame Control field "Frame Type" bits.

Returns
The frame type

Definition at line 44 of file zigbee-nwk-header.cc.

References m_fctrlFrmType.

Referenced by ns3::zigbee::ZigbeeNwk::McpsDataConfirm(), and ns3::zigbee::ZigbeeNwk::McpsDataIndication().

+ Here is the caller graph for this function:

◆ GetInstanceTypeId()

TypeId ns3::zigbee::ZigbeeNwkHeader::GetInstanceTypeId ( ) const
overridevirtual

Get the most derived TypeId for this Object.

This method is typically implemented by ns3::Object::GetInstanceTypeId but some classes which derive from ns3::ObjectBase directly have to implement it themselves.

Returns
The TypeId associated to the most-derived type of this instance.

Implements ns3::ObjectBase.

Definition at line 344 of file zigbee-nwk-header.cc.

References GetTypeId().

+ Here is the call graph for this function:

◆ GetMulticastControl()

uint8_t ns3::zigbee::ZigbeeNwkHeader::GetMulticastControl ( ) const
private

Get The Multicast control field.

Returns
The 8 bits representing the multicast control field

Definition at line 218 of file zigbee-nwk-header.cc.

References m_maxNonMemberRadius, m_mcstMode, and m_nonMemberRadius.

Referenced by Serialize().

+ Here is the caller graph for this function:

◆ GetProtocolVer()

uint8_t ns3::zigbee::ZigbeeNwkHeader::GetProtocolVer ( ) const

Get Frame protocol version.

Returns
The protocol version used by the frame

Definition at line 56 of file zigbee-nwk-header.cc.

References m_fctrlPrtVer.

◆ GetRadius()

uint8_t ns3::zigbee::ZigbeeNwkHeader::GetRadius ( ) const

Get the Radius.

Returns
the Radius

Definition at line 134 of file zigbee-nwk-header.cc.

References m_radius.

Referenced by ns3::zigbee::ZigbeeNwk::McpsDataIndication(), ns3::zigbee::ZigbeeNwk::SendDataUcst(), and ns3::zigbee::ZigbeeNwk::SendRREQ().

+ Here is the caller graph for this function:

◆ GetSeqNum()

uint8_t ns3::zigbee::ZigbeeNwkHeader::GetSeqNum ( ) const

Get the frame Sequence number.

Returns
the sequence number

Definition at line 146 of file zigbee-nwk-header.cc.

References m_seqNum.

Referenced by ns3::zigbee::ZigbeeNwk::McpsDataIndication().

+ Here is the caller graph for this function:

◆ GetSerializedSize()

uint32_t ns3::zigbee::ZigbeeNwkHeader::GetSerializedSize ( ) const
overridevirtual
Returns
the expected size of the header.

This method is used by Packet::AddHeader to store a header into the byte buffer of a packet. This method should return the number of bytes which are needed to store the full header data by Serialize.

Implements ns3::Header.

Definition at line 293 of file zigbee-nwk-header.cc.

References m_fctrlDstIEEEAddr, m_fctrlMcst, and m_fctrlSrcIEEEAddr.

◆ GetSrcAddr()

Mac16Address ns3::zigbee::ZigbeeNwkHeader::GetSrcAddr ( ) const

Get the Source address.

Returns
the Source address (16bits)

Definition at line 122 of file zigbee-nwk-header.cc.

References m_srcAddr.

Referenced by ns3::zigbee::ZigbeeNwk::FindNextHop(), ns3::zigbee::ZigbeeNwk::McpsDataConfirm(), ns3::zigbee::ZigbeeNwk::McpsDataIndication(), ns3::zigbee::ZigbeeNwk::ProcessManyToOneRoute(), and ns3::zigbee::ZigbeeNwk::ReceiveRREQ().

+ Here is the caller graph for this function:

◆ GetSrcIeeeAddr()

Mac64Address ns3::zigbee::ZigbeeNwkHeader::GetSrcIeeeAddr ( ) const

Get the source IEEE address.

Returns
The source IEEE address (64bits)

Definition at line 172 of file zigbee-nwk-header.cc.

References m_srcIeeeAddr.

◆ GetTypeId()

TypeId ns3::zigbee::ZigbeeNwkHeader::GetTypeId ( )
static

Get the type ID.

Returns
the object TypeId

Definition at line 334 of file zigbee-nwk-header.cc.

References ns3::TypeId::SetParent().

Referenced by GetInstanceTypeId().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ IsMulticast()

bool ns3::zigbee::ZigbeeNwkHeader::IsMulticast ( ) const

Inform whether or not the current frame is used in multicast.

Returns
True = MCST false = UCST or BCST

Definition at line 80 of file zigbee-nwk-header.cc.

References m_fctrlMcst.

Referenced by ns3::zigbee::ZigbeeNwk::McpsDataIndication().

+ Here is the caller graph for this function:

◆ IsSecurityEnabled()

bool ns3::zigbee::ZigbeeNwkHeader::IsSecurityEnabled ( ) const

Inform whether or not security is enabled.

Returns
True security enabled.

Definition at line 86 of file zigbee-nwk-header.cc.

References m_fctrlSecurity.

◆ Print()

void ns3::zigbee::ZigbeeNwkHeader::Print ( std::ostream & os) const
overridevirtual
Parameters
osoutput stream This method is used by Packet::Print to print the content of a header as ascii data to a c++ output stream. Although the header is free to format its output as it wishes, it is recommended to follow a few rules to integrate with the packet pretty printer: start with flags, small field values located between a pair of parens. Values should be separated by whitespace. Follow the parens with the important fields, separated by whitespace. i.e.: (field1 val1 field2 val2 field3 val3) field4 val4 field5 val5

Implements ns3::Header.

Definition at line 350 of file zigbee-nwk-header.cc.

References ns3::zigbee::DATA, ns3::zigbee::ENABLE_ROUTE_DISCOVERY, ns3::zigbee::INTER_PAN, m_dstAddr, m_dstIeeeAddr, m_fctrlDscvRoute, m_fctrlDstIEEEAddr, m_fctrlFrmType, m_fctrlMcst, m_fctrlPrtVer, m_fctrlSecurity, m_fctrlSrcIEEEAddr, m_fctrlSrcRoute, m_maxNonMemberRadius, m_mcstMode, m_nonMemberRadius, m_radius, m_seqNum, m_srcAddr, m_srcIeeeAddr, ns3::zigbee::MEMBER, ns3::zigbee::NONMEMBER, ns3::zigbee::NWK_COMMAND, and ns3::zigbee::SUPPRESS_ROUTE_DISCOVERY.

◆ Serialize()

void ns3::zigbee::ZigbeeNwkHeader::Serialize ( Buffer::Iterator start) const
overridevirtual
Parameters
startan iterator which points to where the header should be written.

This method is used by Packet::AddHeader to store a header into the byte buffer of a packet. The data written is expected to match bit-for-bit the representation of this header in a real network.

Implements ns3::Header.

Definition at line 230 of file zigbee-nwk-header.cc.

References GetFrameControl(), GetMulticastControl(), m_dstAddr, m_dstIeeeAddr, m_fctrlDstIEEEAddr, m_fctrlMcst, m_fctrlSrcIEEEAddr, m_radius, m_seqNum, m_srcAddr, m_srcIeeeAddr, ns3::Buffer::Iterator::WriteHtolsbU16(), ns3::WriteTo(), and ns3::Buffer::Iterator::WriteU8().

+ Here is the call graph for this function:

◆ SetDiscoverRoute()

void ns3::zigbee::ZigbeeNwkHeader::SetDiscoverRoute ( enum DiscoverRouteType discoverRoute)

Suppress or enable route discovery for this frame.

Parameters
discoverRouteSuppress or enable route discovery

Definition at line 62 of file zigbee-nwk-header.cc.

References m_fctrlDscvRoute.

Referenced by ZigbeeNwkHeader(), ns3::zigbee::ZigbeeNwk::NldeDataRequest(), ns3::zigbee::ZigbeeNwk::NlmeRouteDiscoveryRequest(), ns3::zigbee::ZigbeeNwk::SendDataUcst(), and ns3::zigbee::ZigbeeNwk::SendRREP().

+ Here is the caller graph for this function:

◆ SetDstAddr()

void ns3::zigbee::ZigbeeNwkHeader::SetDstAddr ( Mac16Address addr)

Set Destination address.

Parameters
addrThe destination address (16 bit)

Definition at line 104 of file zigbee-nwk-header.cc.

References m_dstAddr.

Referenced by ns3::zigbee::ZigbeeNwk::NldeDataRequest(), ns3::zigbee::ZigbeeNwk::NlmeRouteDiscoveryRequest(), ns3::zigbee::ZigbeeNwk::SendDataUcst(), and ns3::zigbee::ZigbeeNwk::SendRREP().

+ Here is the caller graph for this function:

◆ SetDstIeeeAddr()

void ns3::zigbee::ZigbeeNwkHeader::SetDstIeeeAddr ( Mac64Address dst)

Set the destination IEEE address.

Parameters
dstThe destination IEEE address (64 bits)

Definition at line 152 of file zigbee-nwk-header.cc.

References m_dstIeeeAddr, and m_fctrlDstIEEEAddr.

◆ SetEndDeviceInitiator()

void ns3::zigbee::ZigbeeNwkHeader::SetEndDeviceInitiator ( )

This flag is used by the NWK to indicate if the the initiator device of the message is an end device and the nwkParentInformation field of the NIB has other value than 0.

Definition at line 92 of file zigbee-nwk-header.cc.

References m_fctrlEndDevIni.

Referenced by ns3::zigbee::ZigbeeNwk::NldeDataRequest().

+ Here is the caller graph for this function:

◆ SetFrameControl()

void ns3::zigbee::ZigbeeNwkHeader::SetFrameControl ( uint16_t frameControl)
private

Set the Frame control field.

Parameters
frameControl16 bits representing the frame control

Definition at line 178 of file zigbee-nwk-header.cc.

References m_fctrlDscvRoute, m_fctrlDstIEEEAddr, m_fctrlEndDevIni, m_fctrlFrmType, m_fctrlMcst, m_fctrlPrtVer, m_fctrlSecurity, m_fctrlSrcIEEEAddr, and m_fctrlSrcRoute.

Referenced by Deserialize().

+ Here is the caller graph for this function:

◆ SetFrameType()

void ns3::zigbee::ZigbeeNwkHeader::SetFrameType ( enum NwkType nwkType)

Set the Frame type used (Data or Command)

Parameters
nwkTypeThe frame type

Definition at line 38 of file zigbee-nwk-header.cc.

References m_fctrlFrmType.

Referenced by ZigbeeNwkHeader(), ns3::zigbee::ZigbeeNwk::NldeDataRequest(), ns3::zigbee::ZigbeeNwk::NlmeRouteDiscoveryRequest(), ns3::zigbee::ZigbeeNwk::SendDataUcst(), and ns3::zigbee::ZigbeeNwk::SendRREP().

+ Here is the caller graph for this function:

◆ SetMulticast()

void ns3::zigbee::ZigbeeNwkHeader::SetMulticast ( )

Set to true the value of the multicast flag in the frame control field.

Definition at line 74 of file zigbee-nwk-header.cc.

References m_fctrlMcst.

Referenced by ns3::zigbee::ZigbeeNwk::NldeDataRequest().

+ Here is the caller graph for this function:

◆ SetMulticastControl()

void ns3::zigbee::ZigbeeNwkHeader::SetMulticastControl ( uint8_t multicastControl)
private

Set the Multicast control field.

Parameters
multicastControl8 bits representing the multicast control field

Definition at line 210 of file zigbee-nwk-header.cc.

References m_maxNonMemberRadius, m_mcstMode, and m_nonMemberRadius.

Referenced by Deserialize().

+ Here is the caller graph for this function:

◆ SetProtocolVer()

void ns3::zigbee::ZigbeeNwkHeader::SetProtocolVer ( uint8_t ver)

Set the Protocol version.

Parameters
verThe protocol version

Definition at line 50 of file zigbee-nwk-header.cc.

References m_fctrlPrtVer.

Referenced by ZigbeeNwkHeader(), ns3::zigbee::ZigbeeNwk::NldeDataRequest(), ns3::zigbee::ZigbeeNwk::NlmeRouteDiscoveryRequest(), ns3::zigbee::ZigbeeNwk::SendDataUcst(), and ns3::zigbee::ZigbeeNwk::SendRREP().

+ Here is the caller graph for this function:

◆ SetRadius()

void ns3::zigbee::ZigbeeNwkHeader::SetRadius ( uint8_t radius)

Set the Radius.

Parameters
radiusradius

Definition at line 128 of file zigbee-nwk-header.cc.

References m_radius.

Referenced by Deserialize(), ns3::zigbee::ZigbeeNwk::McpsDataIndication(), ns3::zigbee::ZigbeeNwk::NldeDataRequest(), ns3::zigbee::ZigbeeNwk::NlmeRouteDiscoveryRequest(), ns3::zigbee::ZigbeeNwk::SendDataUcst(), and ns3::zigbee::ZigbeeNwk::SendRREP().

+ Here is the caller graph for this function:

◆ SetSeqNum()

void ns3::zigbee::ZigbeeNwkHeader::SetSeqNum ( uint8_t seqNum)

Set the Sequence number.

Parameters
seqNumsequence number

Definition at line 140 of file zigbee-nwk-header.cc.

References m_seqNum.

Referenced by Deserialize(), ns3::zigbee::ZigbeeNwk::NldeDataRequest(), ns3::zigbee::ZigbeeNwk::NlmeRouteDiscoveryRequest(), ns3::zigbee::ZigbeeNwk::SendDataUcst(), and ns3::zigbee::ZigbeeNwk::SendRREP().

+ Here is the caller graph for this function:

◆ SetSrcAddr()

void ns3::zigbee::ZigbeeNwkHeader::SetSrcAddr ( Mac16Address addr)

Set Source address.

Parameters
addrThe source address (16 bit)

Definition at line 116 of file zigbee-nwk-header.cc.

References m_srcAddr.

Referenced by ns3::zigbee::ZigbeeNwk::NldeDataRequest(), ns3::zigbee::ZigbeeNwk::NlmeRouteDiscoveryRequest(), ns3::zigbee::ZigbeeNwk::SendDataUcst(), and ns3::zigbee::ZigbeeNwk::SendRREP().

+ Here is the caller graph for this function:

◆ SetSrcIeeeAddr()

void ns3::zigbee::ZigbeeNwkHeader::SetSrcIeeeAddr ( Mac64Address src)

Set the source IEEE address.

Parameters
srcThe source IEEE address

Definition at line 165 of file zigbee-nwk-header.cc.

References m_fctrlSrcIEEEAddr, and m_srcIeeeAddr.

Member Data Documentation

◆ m_dstAddr

Mac16Address ns3::zigbee::ZigbeeNwkHeader::m_dstAddr
private

Destination address (2 Octets)

Definition at line 251 of file zigbee-nwk-header.h.

Referenced by Deserialize(), GetDstAddr(), Print(), Serialize(), and SetDstAddr().

◆ m_dstIeeeAddr

Mac64Address ns3::zigbee::ZigbeeNwkHeader::m_dstIeeeAddr
private

Destination IEEE address (0 or 8 Octets)

Definition at line 255 of file zigbee-nwk-header.h.

Referenced by Deserialize(), GetDstIeeeAddr(), Print(), Serialize(), and SetDstIeeeAddr().

◆ m_fctrlDscvRoute

DiscoverRouteType ns3::zigbee::ZigbeeNwkHeader::m_fctrlDscvRoute
private

Discover route (Bit 6-7)

Definition at line 240 of file zigbee-nwk-header.h.

Referenced by GetDiscoverRoute(), GetFrameControl(), Print(), SetDiscoverRoute(), and SetFrameControl().

◆ m_fctrlDstIEEEAddr

bool ns3::zigbee::ZigbeeNwkHeader::m_fctrlDstIEEEAddr
private

Destination IEEE address flag (Bit 11)

Definition at line 244 of file zigbee-nwk-header.h.

Referenced by ZigbeeNwkHeader(), Deserialize(), GetFrameControl(), GetSerializedSize(), Print(), Serialize(), SetDstIeeeAddr(), and SetFrameControl().

◆ m_fctrlEndDevIni

bool ns3::zigbee::ZigbeeNwkHeader::m_fctrlEndDevIni
private

End device initiator flag (Bit 13)

Definition at line 246 of file zigbee-nwk-header.h.

Referenced by ZigbeeNwkHeader(), GetEndDeviceInitiator(), GetFrameControl(), SetEndDeviceInitiator(), and SetFrameControl().

◆ m_fctrlFrmType

NwkType ns3::zigbee::ZigbeeNwkHeader::m_fctrlFrmType
private

Frame type (Bit 0-1)

Definition at line 238 of file zigbee-nwk-header.h.

Referenced by GetFrameControl(), GetFrameType(), Print(), SetFrameControl(), and SetFrameType().

◆ m_fctrlMcst

bool ns3::zigbee::ZigbeeNwkHeader::m_fctrlMcst
private

◆ m_fctrlPrtVer

uint8_t ns3::zigbee::ZigbeeNwkHeader::m_fctrlPrtVer
private

Protocol version (Bit 2-5)

Definition at line 239 of file zigbee-nwk-header.h.

Referenced by GetFrameControl(), GetProtocolVer(), Print(), SetFrameControl(), and SetProtocolVer().

◆ m_fctrlSecurity

bool ns3::zigbee::ZigbeeNwkHeader::m_fctrlSecurity
private

Security flag (Bit 9)

Definition at line 242 of file zigbee-nwk-header.h.

Referenced by ZigbeeNwkHeader(), GetFrameControl(), IsSecurityEnabled(), Print(), and SetFrameControl().

◆ m_fctrlSrcIEEEAddr

bool ns3::zigbee::ZigbeeNwkHeader::m_fctrlSrcIEEEAddr
private

Source IEEE address flag (Bit 12)

Definition at line 245 of file zigbee-nwk-header.h.

Referenced by ZigbeeNwkHeader(), Deserialize(), GetFrameControl(), GetSerializedSize(), Print(), Serialize(), SetFrameControl(), and SetSrcIeeeAddr().

◆ m_fctrlSrcRoute

bool ns3::zigbee::ZigbeeNwkHeader::m_fctrlSrcRoute
private

Source route flag (Bit 10)

Definition at line 243 of file zigbee-nwk-header.h.

Referenced by ZigbeeNwkHeader(), GetFrameControl(), Print(), and SetFrameControl().

◆ m_maxNonMemberRadius

uint8_t ns3::zigbee::ZigbeeNwkHeader::m_maxNonMemberRadius
private

Max non member radius sub-field (Bit 5-7)

Definition at line 260 of file zigbee-nwk-header.h.

Referenced by GetMulticastControl(), Print(), and SetMulticastControl().

◆ m_mcstMode

MulticastMode ns3::zigbee::ZigbeeNwkHeader::m_mcstMode {NONMEMBER}
private

Multicast mode sub-field (Bits 0-1)

Definition at line 258 of file zigbee-nwk-header.h.

Referenced by GetMulticastControl(), Print(), and SetMulticastControl().

◆ m_nonMemberRadius

uint8_t ns3::zigbee::ZigbeeNwkHeader::m_nonMemberRadius
private

Non member radius sub-field (Bits 2-4)

Definition at line 259 of file zigbee-nwk-header.h.

Referenced by GetMulticastControl(), Print(), and SetMulticastControl().

◆ m_radius

uint8_t ns3::zigbee::ZigbeeNwkHeader::m_radius
private

Radius (1 Octet)

Definition at line 253 of file zigbee-nwk-header.h.

Referenced by GetRadius(), Print(), Serialize(), and SetRadius().

◆ m_seqNum

uint8_t ns3::zigbee::ZigbeeNwkHeader::m_seqNum
private

Sequence number (1 Octet)

Definition at line 254 of file zigbee-nwk-header.h.

Referenced by GetSeqNum(), Print(), Serialize(), and SetSeqNum().

◆ m_srcAddr

Mac16Address ns3::zigbee::ZigbeeNwkHeader::m_srcAddr
private

Source address (2 Octets)

Definition at line 252 of file zigbee-nwk-header.h.

Referenced by Deserialize(), GetSrcAddr(), Print(), Serialize(), and SetSrcAddr().

◆ m_srcIeeeAddr

Mac64Address ns3::zigbee::ZigbeeNwkHeader::m_srcIeeeAddr
private

Source IEEE address (0 or 8 Octets)

Definition at line 256 of file zigbee-nwk-header.h.

Referenced by Deserialize(), GetSrcIeeeAddr(), Print(), Serialize(), and SetSrcIeeeAddr().


The documentation for this class was generated from the following files: