<div dir="ltr">Dear ndnSIM users<div><br></div><div>I want to update name prefix lists of routers during a simulation including adding/removing some name  prefixes to/from a router. Should I use advertise or withdraw functions of NLSR for doing this?</div><div>If so, how can I use these functions in ndnSIM-NLSR? I have written this code in </div><div>ndn-nlsr-exec.cpp file, but I got some errors relating to sending interest from face :</div><div> </div><div><div>void</div><div>Nlsr::withdraw()</div><div>{</div><div>  m_nlsr.getPrefixUpdateProcessor().updateProcessor.enable();</div><div><br></div><div>  ndn::nfd::ControlParameters parameters;</div><div>  parameters.setName("/prefix/to/advertise/");</div><div><br></div><div>  ndn::Name withdrawCommand("/localhost/nlsr/prefix-update/withdraw");</div><div>  withdrawCommand.append(parameters.wireEncode());</div><div><br></div><div>  shared_ptr<Interest> withdrawInterest = make_shared<Interest>(withdrawCommand);</div><div>  keyChain.signByIdentity(*withdrawInterest, opIdentity);</div><div><br></div><div>  face->receive(*withdrawInterest);</div><div>  face->processEvents(ndn::time::milliseconds(1));</div><div>}</div><div><br></div><div>Thanks and regards.</div><br><div class="gmail_signature"><div dir="ltr"><pre style="color:rgb(0,0,0);font-family:"lucida grande",verdana,arial,helvetica,sans-serif;margin-top:0px;margin-bottom:0px;padding:0px;word-wrap:break-word;white-space:pre-wrap"><font size="2">Mahsa Aghajani
M.Sc. Student
Department of Computer Engineering
Sharif University of Technology</font></pre></div></div>
</div></div>