GetSystemId() for Nodes : Returns Result 0 for all nodes

6 views
Skip to first unread message

prajakta lokhande

unread,
Sep 17, 2019, 9:06:16 AM9/17/19
to ns-3-users
Hello,

My code for getting systemid of nodes in NodeContainer is as below

 for (NodeContainer::Iterator j = endDevices.Begin ();
       j != endDevices.End (); ++j)
    {
      Ptr<Node> node = *j;
      uint32_t systemid = node->GetSystemId();
      NS_LOG_INFO ("Systemid: " << systemid);
      
    }

The code returns value 0 for all nodes.  
I expect it to different so that I can identify each node with its SystemId.
Please guide me on this topic.

I have attached screenshot of my result.


Thanks and Regards

SystemId.PNG
Reply all
Reply to author
Forward
0 new messages