<html><head><meta http-equiv="Content-Type" content="text/html charset=us-ascii"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;" class="">Hi,<div class=""><br class=""></div><div class="">I have not tried to do that with the latest version of NFD, but the solution might be something along the lines of:</div><div class=""><br class=""></div><div class="">1) you have to edit this method of the forwarder class:</div><div class=""><br class=""></div><div class=""><a href="https://github.com/named-data-ndnSIM/NFD/blob/NFD-0.5.0-30-g934f505-ndnSIM/daemon/fw/forwarder.cpp#L207" class="">https://github.com/named-data-ndnSIM/NFD/blob/NFD-0.5.0-30-g934f505-ndnSIM/daemon/fw/forwarder.cpp#L207</a></div><div class=""><br class=""></div><div class="">2) probably use a <span style="color: rgb(51, 51, 51); font-family: Consolas, 'Liberation Mono', Menlo, Courier, monospace; white-space: pre; background-color: rgb(255, 255, 255);" class="">NextHopFaceIdTag indicating that the next-hop face is the incoming face</span></div><div class=""><font color="#333333" face="Consolas, Liberation Mono, Menlo, Courier, monospace" class=""><span style="white-space: pre; background-color: rgb(255, 255, 255);" class=""><br class=""></span></font></div><div class=""><font color="#333333" face="Consolas, Liberation Mono, Menlo, Courier, monospace" class=""><span style="background-color: rgb(255, 255, 255);" class=""><span style="white-space: pre;" class="">3) Potentially, modify the PIT lookup process, add the incoming face to the faceTable and add a next-hop with the incoming face to the created PIT entry.</span></span></font></div><div class=""><font color="#333333" face="Consolas, Liberation Mono, Menlo, Courier, monospace" class=""><span style="background-color: rgb(255, 255, 255);" class=""><span style="white-space: pre;" class=""><br class=""></span></span></font></div><div class=""><font color="#333333" face="Consolas, Liberation Mono, Menlo, Courier, monospace" class=""><span style="background-color: rgb(255, 255, 255);" class=""><span style="white-space: pre;" class="">Hope that this helps,</span></span></font></div><div class=""><font color="#333333" face="Consolas, Liberation Mono, Menlo, Courier, monospace" class=""><span style="background-color: rgb(255, 255, 255);" class=""><span style="white-space: pre;" class=""><br class=""></span></span></font><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></div>
</div>
<br class=""><div><blockquote type="cite" class=""><div class="">On Dec 30, 2016, at 10:04 PM, lahmer ilyas <<a href="mailto:ilyaslahmer93@gmail.com" class="">ilyaslahmer93@gmail.com</a>> wrote:</div><br class="Apple-interchange-newline"><div class=""><div dir="ltr" class="">I am trying to use adhoc mode with ndnSim but i came to discover that i can't use it because ndnSim doesn't forward an interest to the same interface he came from.  So, How can i extend it so I can forward for the same interface in the interface is in adhoc mode.</div></div></blockquote></div><br class=""></div></body></html>