[ndnSIM] reset FwHopCountTag

Alex Afanasyev alexander.afanasyev at ucla.edu
Mon Sep 2 10:02:05 PDT 2013


You can update code in model/fw/ndn-forwarding-strategy.cc around lines 185-189.
In the current form, the hop count tag is echoed from the interest.  If you simply add tag without peeking the interest tag first, you'll get a reset value:

That is, you ned something like this:

      FwHopCountTag hopCountTag;
      contentObject->GetPayload ()->AddPacketTag (hopCountTag);


On Sep 1, 2013, at 6:50 PM, 陈胜蓝 <blindeafer at 163.com> wrote:

> Hi All,
> I would like to reset the member m_hopCount of hopCountTag to 0 before the node send the content to satisfy interests if it cache the content, which function and how can I modify the code,would you please give me some hints?
> Regards.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.lists.cs.ucla.edu/pipermail/ndnsim/attachments/20130902/05145de0/attachment.html>

More information about the ndnSIM mailing list