<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<style type="text/css" style="display:none;"><!-- P {margin-top:0;margin-bottom:0;} --></style>
</head>
<body dir="ltr">
<div id="divtagdefaultwrapper" style="font-size:12pt;color:#000000;font-family:Calibri,Arial,Helvetica,sans-serif;" dir="ltr">
<p><span style="font-size:12pt;" id="divtagdefaultwrapper"></span></p>
<div style="margin-top:0;margin-bottom:0;">Greetings All,<br>
    Now I have a question regarding how to count the forwarding hops of an Interest in ndnSIM.  I simply added the below codes, but it seems like I got the wrong forwarding hops:</div>
<div style="margin-top:0;margin-bottom:0;">  1. added "interest->setTag(make_shared<lp::HopCountTag>(0));" for hopcount initialization at the function "SendPacket" in consumer.cpp;</div>
<div style="margin-top:0;margin-bottom:0;"> 2. added "interest.setTag(make_shared<lp::HopCountTag>(hopCount + 1))" for one hop increment when forwarding a time at the function "onIncomingInterest" in Forwarder.cpp.</div>
<div style="margin-top:0;margin-bottom:0;"><br>
</div>
<div style="margin-top:0;margin-bottom:0;">I do not know if you have a right solution to count the forwarding hops for an interest?
<br>
</div>
<div style="margin-top:0;margin-bottom:0;"><br>
</div>
<div style="margin-top:0;margin-bottom:0;">Thanks!</div>
<div style="margin-top:0;margin-bottom:0;"><br>
</div>
<div style="margin-top:0;margin-bottom:0;">Zhuhua<br>
</div>
<br>
<p></p>
</div>
</body>
</html>