<html><head><meta http-equiv="Content-Type" content="text/html; charset=utf-8"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; line-break: after-white-space;" class="">Ming, I dont know exactly what kind of info you wanted to modify or attach to an Interest packet, another option besides Spyros suggestion could be carrying your info in NDNLP-equivalent way.<br class=""><div>(forgive me: I do not know whether ndnSIM has NDNLP, Spyros does)</div><div><br class=""><blockquote type="cite" class=""><div class="">On Aug 8, 2018, at 8:48 PM, Spyridon (Spyros) Mastorakis <<a href="mailto:mastorakis@cs.ucla.edu" class="">mastorakis@cs.ucla.edu</a>> wrote:</div><br class="Apple-interchange-newline"><div class=""><meta http-equiv="Content-Type" content="text/html charset=utf-8" class=""><div style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;" class="">Hi,<div class=""><br class=""></div><div class=""><div class=""><blockquote type="cite" class=""><div class="">On Aug 8, 2018, at 3:28 AM, Ming <<a href="mailto:mingdeyou@126.com" class="">mingdeyou@126.com</a>> wrote:</div><br class="Apple-interchange-newline"><div class=""><div style="line-height: 1.7; font-size: 14px; font-family: Arial;" class=""><div class="">Hello everyone,</div><div class=""> I have a few questions  that needs you help!</div><div class="">1.    How to modify the  contents of the Interest package before the node forwards the Interest?Or can Interest packet be modified?</div><div class="">ndnSIM 2.5 ‘s  API   uses  "const"  passing the Interest  pointer to each function.So I don't know how to do it.</div></div></div></blockquote><div class=""><br class=""></div><div class="">There is a very good reason that all the methods in the forwarder class of NFD use const for Interests/Data packets. Because the forwarder is not supposed to change the packets at that point of the execution. I would suggest if you want to change Interests, create an application that could do that.</div><div class=""><br class=""></div><blockquote type="cite" class=""><div class=""><div style="line-height: 1.7; font-size: 14px; font-family: Arial;" class=""><div class="">2.    A node how to sending  information to its neighbors?   In what form should I send this information?    Which class or function should I use?</div></div></div></blockquote><div class=""><br class=""></div><div class="">Make sure that all the node's neighbors run a producer app that has registered a specific prefix. The node should run a consumer app to send Interests for the registered prefix. Please take a look at the existing consumer and producer app implementation in ndnSIM.</div><br class=""></div><div class="">Hope that this helps,</div><div class=""><br class=""></div><div class=""><div class=""><div class=""><div class=""><span class="" style="float: none; display: inline !important;">Spyridon (Spyros) Mastorakis</span><br class=""><span class="" style="float: none; display: inline !important;">Personal Website: </span><a href="http://cs.ucla.edu/~mastorakis/" class="">http://cs.ucla.edu/~mastorakis/</a><br class=""><span class="" style="float: none; display: inline !important;">Internet Research Laboratory</span><br class=""><span class="" style="float: none; display: inline !important;">Computer Science Department</span><br class=""><span class="" style="float: none; display: inline !important;">UCLA</span></div><div class=""><span class="" style="float: none; display: inline !important;"><br class=""></span></div></div></div><div class=""><br class=""></div></div><br class=""></div></div>_______________________________________________<br class="">ndnSIM mailing list<br class=""><a href="mailto:ndnSIM@lists.cs.ucla.edu" class="">ndnSIM@lists.cs.ucla.edu</a><br class="">http://www.lists.cs.ucla.edu/mailman/listinfo/ndnsim<br class=""></div></blockquote></div><br class=""></body></html>