<div dir="ltr">Hi,<div><br></div><div>I wrote a custom fw-strategy where I get the node ID like so:</div><div><br></div><div><div>void</div><div>BroadcastStrategy::afterReceiveInterest(const Face& inFace, const Interest& interest,const shared_ptr<pit::Entry>& pitEntry)</div><div>{</div></div><div><div>  const fib::Entry& fibEntry = this->lookupFib(*pitEntry);</div><div>  const fib::NextHopList& nexthops = fibEntry.getNextHops(); </div><div>  </div><div>  </div><div>  ns3::Ptr<ns3::Node> node = ns3::NodeList::GetNode(ns3::Simulator::GetContext());  </div><div>  ns3::Ptr<ns3::NetDevice> netDevice;</div><div>  ns3::Ptr<ns3::ndn::L3Protocol> ndnl3;</div><div>  ndnl3 = node->GetObject<ns3::ndn::L3Protocol>(); </div></div><div><br></div><div><br></div><div>The issue is that I'm getting the exact same error as <a href="http://www.lists.cs.ucla.edu/pipermail/ndnsim/2017-October/004175.html">this post from Oct 2017</a>. There are several other posts with the same issue, some want to get the node id in the lru-cache, etc. However, all these posts seem to be scheduling an event, then getting with Simulator::GetContext().</div><div><br></div><div>I can't apply the solution from this posts in my case, since I don't call Simulator::ScheduleWithContext(). I just want to get the id of the node that is processing the Interest.</div><div><br></div><div>Is there another option to this?</div><div><br></div><div>I'm using ndnSIM 2.5</div><div><br></div><div>Thank you!</div><div>Adhy</div><div><br></div></div>