<div dir="ltr">Hi<div><br></div><div>I also had the same problem , and happened that<font size="4"> "TLV length doesn't match buffer length".</font></div><div><font size="4"><br></font></div><div>I add the length of my value to the "totallength" , and it pops up that messages.</div><div><br></div><div>Anyone knows how to fixed it step by step , I will appreciate very much </div></div><div class="gmail_extra"><br><div class="gmail_quote">2017-03-28 17:19 GMT+08:00 lahmer ilyas <span dir="ltr"><<a href="mailto:ilyaslahmer93@gmail.com" target="_blank">ilyaslahmer93@gmail.com</a>></span>:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">






<div style="LINE-HEIGHT:1.5;BORDER-RIGHT-WIDTH:0px;MARGIN:12px;FONT-FAMILY:微软雅黑;BORDER-TOP-WIDTH:0px;BORDER-BOTTOM-WIDTH:0px;COLOR:#000000;FONT-SIZE:10.5pt;BORDER-LEFT-WIDTH:0px" marginheight="0" marginwidth="0"><div>Hi, I had the same problem, but I added a string rather than int in the interest. My solution was to recreate the interest at each hop with the new string value. I don't know why but this fixed the problem.<br><br><br><br></div>
<div>Sent from <a href="http://www.bluemail.me/r" target="_blank">BlueMail</a><br><br></div>
<div class="gmail_quote"><span class="">On Mar 28, 2017, at 3:26 AM, gc199211 <<a href="mailto:gc199211@mail.ustc.edu.cn" target="_blank">gc199211@mail.ustc.edu.cn</a>> wrote:</span><blockquote class="gmail_quote" style="margin:0pt 0pt 0pt 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><span class="">
<u></u>
<div> </div>
<div>Hi sir :<br>     I find  out that my last 
email is incomplete in maillist, so I  finish it  and send 
again.  </div>
<div>     I am  trying to add  hop information in 
Interest recently on <strong>ndnSIM 2.2</strong>. Here is my code.</div>
<div>1). I add a private member variable  which is named 
hop in ndnSIM/ndn-cxx/src/interest.h </div>
<div>            
private:</div>
<div>                         
 Name m_name;</div>
<div>                              <wbr>        
......</div>
<div>                        
 mutable Block m_wire;</div>
<div>                       
   <span style="FONT-SIZE:16pt"><strong><span style="FONT-SIZE:14pt"><span style="FONT-SIZE:16pt"><span style="FONT-SIZE:16pt">int 
hop;</span></span></span></strong> </span>          
// a new private member 
variable                      <wbr> </div>
<div>                   </div>
<div>2). I increace the value of hop in the 
nfd::Forwarder::<wbr>onOutgoingInterest(shared_ptr<<wbr>pit::Entry> pitEntry, 
Face& outFace,<span style="COLOR:rgb(96,64,32)" class="m_-8895239626861104905keywordtype">bool  </span>wantNewNonce),so as to caculate the hop 
.</div>
<div>  </div>
<div style="FONT-SIZE:16pt">              <span style="FONT-SIZE:10.5pt"><strong><span style="FONT-SIZE:16pt"> int 
tmpHop=interest->getHop();</span></strong></span></div>
<div style="FONT-SIZE:10.5pt"><strong><span style="FONT-SIZE:16pt">               
tmpHop++;</span></strong></div>
<div style="FONT-SIZE:16pt"><span style="FONT-SIZE:10.5pt"><span style="FONT-SIZE:16pt"><strong><span style="FONT-SIZE:16pt">               
interest->setHop(tmpHop);</span></strong> </span>    <wbr>   </span>         
</div>
<div align="center"> </div>
<div align="left">Here is my problem,It seems that the hop value is always 0 no 
matter how many nodes it is forwarded.How to solve the problem? I know there is 
a <span style="TEXT-TRANSFORM:none;BACKGROUND-COLOR:rgb(232,232,232);FONT-STYLE:normal;TEXT-INDENT:0px;DISPLAY:inline!important;FONT-FAMILY:'Lucida Grande',Verdana,Geneva,Arial,sans-serif;WHITE-SPACE:normal;FLOAT:none;LETTER-SPACING:normal;COLOR:rgb(50,50,50);FONT-SIZE:13px;FONT-WEIGHT:bold;WORD-SPACING:0px;font-variant-ligatures:normal;font-variant-caps:normal">ns3::ndn::FwHopCountTag 
</span>a to caculate the hop in <span style="TEXT-TRANSFORM:none;BACKGROUND-COLOR:rgb(232,232,232);FONT-STYLE:normal;TEXT-INDENT:0px;DISPLAY:inline!important;FONT-FAMILY:'Lucida Grande',Verdana,Geneva,Arial,sans-serif;WHITE-SPACE:normal;FLOAT:none;LETTER-SPACING:normal;COLOR:rgb(50,50,50);FONT-SIZE:13px;FONT-WEIGHT:bold;WORD-SPACING:0px;font-variant-ligatures:normal;font-variant-caps:normal">ns3::ndn::NetDeviceLinkService</span><wbr> ,But 
I want to caculate the hop value directly in Interest. If it works ,I 
can add other member variable in Interest  which is quite important 
for my research.Thank you very much .</div>
</span><div>                              <wbr>                              <wbr>                              <wbr>                              <wbr>                              <wbr>              !
  &nb
sp;                 </div>
<div style="FONT-FAMILY:Verdana;COLOR:#c0c0c0;FONT-SIZE:10pt">
<div align="left">2016-12-20</div>
<hr style="BORDER-BOTTOM:0px;BORDER-LEFT:0px;WIDTH:122px;HEIGHT:1px;BORDER-TOP:#c0c0c0 1px solid;BORDER-RIGHT:0px" id="m_-8895239626861104905SignNameHR" align="left">
<span id="m_-8895239626861104905_FlashSignName">gc199211</span> </div><u></u><pre class="m_-8895239626861104905blue"><hr><br>ndnSIM mailing list<br><a href="mailto:ndnSIM@lists.cs.ucla.edu" target="_blank">ndnSIM@lists.cs.ucla.edu</a><br><a href="http://www.lists.cs.ucla.edu/mailman/listinfo/ndnsim" target="_blank">http://www.lists.cs.ucla.edu/<wbr>mailman/listinfo/ndnsim</a><br></pre></blockquote></div></div><br>______________________________<wbr>_________________<br>
ndnSIM mailing list<br>
<a href="mailto:ndnSIM@lists.cs.ucla.edu">ndnSIM@lists.cs.ucla.edu</a><br>
<a href="http://www.lists.cs.ucla.edu/mailman/listinfo/ndnsim" rel="noreferrer" target="_blank">http://www.lists.cs.ucla.edu/<wbr>mailman/listinfo/ndnsim</a><br>
<br></blockquote></div><br></div>