[ndnSIM] Question about Forwarding of interest
Spyridon (Spyros) Mastorakis
mastorakis at cs.ucla.edu
Tue Jun 5 17:54:54 PDT 2018
Hi,
either use directly std::cout statements or NFD_LOG_DEBUG statements like here:
https://github.com/named-data-ndnSIM/NFD/blob/NFD-0.6.1-ndnSIM/daemon/fw/forwarder.cpp#L88-L89
Thanks,
Spyridon (Spyros) Mastorakis
Personal Website: http://cs.ucla.edu/~mastorakis/
Internet Research Laboratory
Computer Science Department
UCLA
> On May 30, 2018, at 2:16 PM, Farwa A. Hannan <f169006 at nu.edu.pk> wrote:
>
> 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
More information about the ndnSIM
mailing list