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"
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. | |
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.
ns3::zigbee::PanIdTable::PanIdTable | ( | ) |
The constructor of the PanIdTable.
Definition at line 1218 of file zigbee-nwk-tables.cc.
void ns3::zigbee::PanIdTable::AddEntry | ( | uint64_t | extPanId, |
uint16_t | panId ) |
Add an entry to the PAN Id table.
extPanId | The extended PAN identifier (64 bits). |
panId | The 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().
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().
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.
extPanId | The NWK extended PAN identifier (64 bits). |
panId | The returned 16 bit PAN Id. |
Definition at line 1246 of file zigbee-nwk-tables.cc.
References m_panIdTable.
Referenced by ns3::zigbee::ZigbeeNwk::NlmeJoinRequest().
|
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().