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

A table that keeps record of neighbors devices NWK extended PAN ids (64 bits) and their related 16 bit MAC pan id. More...

#include "zigbee-nwk-tables.h"

+ Collaboration diagram for ns3::zigbee::PanIdTable:

Public Member Functions

 PanIdTable ()
 The constructor of the PanIdTable.
 
void AddEntry (uint64_t extPanId, uint16_t panId)
 Add an entry to the PAN Id table.
 
void Dispose ()
 Dispose of the table and all its elements.
 
bool GetEntry (uint64_t extPanId, uint16_t &panId)
 Get the 16 bit MAC PAN id based on the reference extended PAN id.
 

Private Attributes

std::map< uint64_t, uint16_t > m_panIdTable
 The Map object that represents the table of PAN ids.
 

Detailed Description

A table that keeps record of neighbors devices NWK extended PAN ids (64 bits) and their related 16 bit MAC pan id.

This is not explicitly mentioned in the Zigbee specification but it is required to keep record of this to enable the join process through association. This approach is also used by other stacks like Zboss stack 1.0.

Definition at line 745 of file zigbee-nwk-tables.h.

Constructor & Destructor Documentation

◆ PanIdTable()

ns3::zigbee::PanIdTable::PanIdTable ( )

The constructor of the PanIdTable.

Definition at line 1218 of file zigbee-nwk-tables.cc.

Member Function Documentation

◆ AddEntry()

void ns3::zigbee::PanIdTable::AddEntry ( uint64_t extPanId,
uint16_t panId )

Add an entry to the PAN Id table.

Parameters
extPanIdThe extended PAN identifier (64 bits).
panIdThe 16 bit PAN id used by the MAC layer .

Definition at line 1223 of file zigbee-nwk-tables.cc.

References m_panIdTable, and NS_LOG_DEBUG.

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

+ Here is the caller graph for this function:

◆ Dispose()

void ns3::zigbee::PanIdTable::Dispose ( )

Dispose of the table and all its elements.

Definition at line 1260 of file zigbee-nwk-tables.cc.

References m_panIdTable.

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

+ Here is the caller graph for this function:

◆ GetEntry()

bool ns3::zigbee::PanIdTable::GetEntry ( uint64_t extPanId,
uint16_t & panId )

Get the 16 bit MAC PAN id based on the reference extended PAN id.

Parameters
extPanIdThe NWK extended PAN identifier (64 bits).
panIdThe returned 16 bit PAN Id.
Returns
True if the entry was found

Definition at line 1246 of file zigbee-nwk-tables.cc.

References m_panIdTable.

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

+ Here is the caller graph for this function:

Member Data Documentation

◆ m_panIdTable

std::map<uint64_t, uint16_t> ns3::zigbee::PanIdTable::m_panIdTable
private

The Map object that represents the table of PAN ids.

Definition at line 776 of file zigbee-nwk-tables.h.

Referenced by AddEntry(), Dispose(), and GetEntry().


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