[ndnSIM] Question about Forwarding of interest

Spyridon (Spyros) Mastorakis mastorakis at cs.ucla.edu
Tue Jun 5 17:54:54 PDT 2018


either use directly std::cout statements or NFD_LOG_DEBUG statements like here:



Spyridon (Spyros) Mastorakis
Personal Website: http://cs.ucla.edu/~mastorakis/
Internet Research Laboratory
Computer Science Department

> 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