<div dir="ltr"><div>Hi,</div>Oops, I didn't mention that. it helps me a lot. <div><br></div><div>I can use it to got interest and data class hop count , thanks a lot.</div><div><br></div><div>qhsong<br><div><br></div><div><br></div></div></div><div class="gmail_extra"><br><div class="gmail_quote">2016-04-08 3:04 GMT+08:00 Spyridon (Spyros) Mastorakis <span dir="ltr"><<a href="mailto:mastorakis@cs.ucla.edu" target="_blank">mastorakis@cs.ucla.edu</a>></span>:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div style="word-wrap:break-word">Hi,<div><br></div><div>since the Interest hop count is the same with the hop count of the corresponding Data packet, you could use the hop count attached to a received Data packet:</div><div><br></div><div><a href="https://github.com/named-data-ndnSIM/ndnSIM/blob/a4915caa0c4121f2dd87fd3d7cc3b6eb91632f16/apps/ndn-consumer.cpp#L226-L234" target="_blank">https://github.com/named-data-ndnSIM/ndnSIM/blob/a4915caa0c4121f2dd87fd3d7cc3b6eb91632f16/apps/ndn-consumer.cpp#L226-L234</a></div><div><br></div><div>Would that work for you?</div><div><span class="HOEnZb"><font color="#888888"><br><div>
<div><div><div><span style="float:none;display:inline!important">Spyridon (Spyros) Mastorakis</span><br><span style="float:none;display:inline!important">Personal Website: </span><a href="http://cs.ucla.edu/~mastorakis/" target="_blank">http://cs.ucla.edu/~mastorakis/</a><br><span style="float:none;display:inline!important">Internet Research Laboratory</span><br><span style="float:none;display:inline!important">Computer Science Department</span><br><span style="float:none;display:inline!important">UCLA</span></div><div><span style="float:none;display:inline!important"><br></span></div></div></div><div><br></div><br>
</div></font></span><div><div class="h5">
<br><div><blockquote type="cite"><div>On Apr 7, 2016, at 1:45 AM, ndn ndn <<a href="mailto:ndn@sqh.me" target="_blank">ndn@sqh.me</a>> wrote:</div><br><div><div dir="ltr">Hi,<div>Recently, I want to add a hop-count number in interest class and when interest pass a node, this number will increase one.</div><div> so I define a mutable int in interest class, init it in construct function, and increase it in Forward::onIncomingInterest(). But I try it failed, I found every time when Forward got a interest in onIncomingInterest, the number always zero.</div><div><br></div><div>I didn't found any function to make this interest got zero, and How to increase it one by one ?</div><div><br></div><div>Thanks for your help?</div><div><br></div><div>qhsong</div><div><br></div></div></div></blockquote></div><br></div></div></div></div></blockquote></div><br></div>