<div dir="ltr"><span style="color:rgb(0,0,0)">hi all</span><div style="color:rgb(0,0,0)">now i  want to add a nexthop in FIB and set a timer to delete it <span style="color:rgb(33,33,33);font-family:inherit;white-space:pre-wrap">automatically</span>, during simulating. but there are some problems</div><div style="color:rgb(0,0,0)">1)i get the specific node and add a nexthop ,and in the structure i defined another attribution to show the nexthop node id. <span style="color:rgb(33,33,33);font-family:inherit;white-space:pre-wrap">Is this effective? and can it have some </span><span style="font-size:x-small;color:rgb(33,33,33);font-family:arial,sans-serif;white-space:pre-wrap">side effect ? </span></div><div style="color:rgb(0,0,0)"><span style="font-size:x-small;color:rgb(33,33,33);font-family:arial,sans-serif;white-space:pre-wrap"><br></span></div><div style="color:rgb(0,0,0)"><font color="#212121" face="arial, sans-serif" size="1"><span style="white-space:pre-wrap">void
Entry::addNextHop(Face& face, uint64_t cost,std::string nexthopmac)
{
  auto it = this->findNextHop(face);
  if (it == m_nextHops.end()) {
    m_nextHops.emplace_back(face);
    it = std::prev(m_nextHops.end());
  }
  it->setNextHopMac(nexthopmac);
  it->setCost(cost);
  this->sortNextHops();
}</span></font></div><div style="color:rgb(0,0,0)"><span style="font-size:x-small;color:rgb(33,33,33);font-family:arial,sans-serif;white-space:pre-wrap"><br></span></div><div style="color:rgb(0,0,0)">2)i also want to set a timer to delete nexthop, i do like following in forwarder.cpp onIncomingData function. i run  sudo ./waf , there is no error ,but when i run scenarios it shutdown suddenly. <span style="color:rgb(33,33,33);font-family:arial,sans-serif;white-space:pre-wrap;font-size:x-small">Is this because i have done some work in 1)</span></div><div style="color:rgb(0,0,0)"><br></div><div style="color:rgb(0,0,0)">nfd::scheduler::schedule(time::seconds(1),[&]{thisNode->GetObject<ns3::ndn::L3Protocol>()->getForwarder()->getFib().removeNextHop(*(fibEntry_bool.f    irst),inFace);});</div></div>