[ndnSIM] Question about Forwarding of interest
Farwa A. Hannan
f169006 at nu.edu.pk
Wed May 30 14:16:05 PDT 2018
Hi all,
I want to do one hop forwarding of Interest Packet. I'm trying to get the
HopCount value in the following manner in the
*Forwarder::onIncomingInterest *function so that I can further manipulate
it for one hop forwarding of Interest but in output I'm just getting *Log:
Hop count: *
***Code***
int hopCount = 0;
auto hopCountTag = interest.getTag<lp::HopCountTag>();
if (hopCountTag != nullptr) {
hopCount = *hopCountTag;
}
LogManager::AddLog("Hop count: ", hopCount);
***Output***
Log: Hop count:
Do you have any idea about the cause or may be the solution regarding how
should I pursue it to get the required output?
Regards
Farwa
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.lists.cs.ucla.edu/pipermail/ndnsim/attachments/20180531/30c3a130/attachment.html>
More information about the ndnSIM
mailing list