<div dir="ltr">Hi all,<div><br></div><div>I want to do one hop forwarding of Interest Packet. I'm trying to get the HopCount value in the following manner <span style="font-size:12.8px">in the </span><b style="font-size:12.8px">Forwarder::<wbr>onIncomingInterest </b><span style="font-size:12.8px">function so that I can further manipulate it for one hop forwarding of Interest but in output I'm just getting <b>Log: Hop count: </b></span><div><br></div><div><blockquote style="margin:0px 0px 0px 40px;border:none;padding:0px"><div><b>**Code**</b></div></blockquote></div><div><blockquote style="font-size:12.8px;margin:0px 0px 0px 40px;border:none;padding:0px">int hopCount = 0;</blockquote><span style="font-size:12.8px;white-space:pre-wrap">       </span><span style="font-size:12.8px">  auto hopCountTag = interest.getTag<lp::</span><wbr style="font-size:12.8px"><span style="font-size:12.8px">HopCountTag>();</span><span class="gmail-im" style="font-size:12.8px"><br><span style="white-space:pre-wrap">       </span>  if (hopCountTag != nullptr) { <br><span style="white-space:pre-wrap">    </span>    hopCount = *hopCountTag;<br><span style="white-space:pre-wrap">        </span>  }<br></span><div style="font-size:12.8px"><span style="white-space:pre-wrap">       </span>  LogManager::AddLog("Hop count: ", hopCount);</div></div><div style=""><blockquote style="font-size:12.8px;margin:0px 0px 0px 40px;border:none;padding:0px"><div style="font-size:12.8px"><br></div><div style="font-size:12.8px"><b>**Output**</b></div><div style="font-size:12.8px"><span style="font-size:12.8px">Log: Hop count: </span><b><br></b></div></blockquote><span style="font-size:12.8px"><br></span></div><div style="">Do you have any idea about the cause or may be the solution regarding how should I pursue it to get the required output?<br><br>Regards</div></div><div style="">Farwa</div></div>