<div dir="ltr">Yes, I got it. Thank you. I have the tags working. I was trying to figure out how the tags add to the traffic. </div><br><div class="gmail_quote"><div dir="ltr">On Sun, Nov 18, 2018 at 3:42 AM Alex Afanasyev <<a href="mailto:cawka1@gmail.com">cawka1@gmail.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div style="word-wrap:break-word;line-break:after-white-space">Hi Aman,<div><br></div><div>The tags are just in-memory annotation of the packet and have no direct impact on the size of the actual packet.  To encode any value of the tag, you will need to provision it as part of, for example, NDNLP encoding process.   Therefore, if you just added a custom tag on the packet and didn't change any encoding, you will not see any changes in packet size, nor see anything when dissecting the packet.</div><div><br></div><div>The code has a few examples for tag encoding, look in face.cpp and detail/face-impl.hpp.</div><div><br></div><div>--</div><div>Alex<br><div><br><blockquote type="cite"><div>On Nov 17, 2018, at 7:26 PM, Aman Maldar <<a href="mailto:amanmaldar@gmail.com" target="_blank">amanmaldar@gmail.com</a>> wrote:</div><br class="m_960526606550701892Apple-interchange-newline"><div><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr">Hello All,<br> I have 2 questions.<br>First,<br>I have added hopCount tag to the packet. But my questions is why these tags have to be 64 bit log? I tried to use 16/32 bit long tags. I got compilation issues.<br>I see the following tags are also defined as 64 bit long. ref - <a href="https://github.com/named-data/ndn-cxx/blob/master/src/lp/tags.hpp" target="_blank">https://github.com/named-data/ndn-cxx/blob/master/src/lp/tags.hpp</a><br><br clear="all"><div><div>typedef SimpleTag<uint64_t, 10> IncomingFaceIdTag;</div><div>typedef SimpleTag<uint64_t, 11> NextHopFaceIdTag;</div></div><div><br>Second,</div><div>Also, is there a way I can calculate the interest packet overhead after adding a new tag?<br>If I do following before and after adding the tags, would I get correct result? <br>auto intSize = interest.wireEncode().size();</div><div><br></div><div>Ndn-dissect didn't work very well, I didn't get what I was looking for. Some fields were missing.  <br><br></div>-- <br><div dir="ltr" class="m_960526606550701892gmail_signature"><div dir="ltr"><div><div dir="ltr"><b><font size="2">Regards,</font></b><font size="2"><b><i><br></i><font size="4"><span style="color:rgb(0,102,0)"><span style="background-color:rgb(255,255,255)">M<span></span>r. Maldar Aman M.</span></span></font></b></font><font size="4"><b><span style="color:rgb(0,102,0)"><span style="background-color:rgb(255,255,255)"><span></span><span></span></span></span></b></font><br><b>University of Massachusetts, Lowell</b><br></div></div></div></div></div></div></div></div>
_______________________________________________<br>Nfd-dev mailing list<br><a href="mailto:Nfd-dev@lists.cs.ucla.edu" target="_blank">Nfd-dev@lists.cs.ucla.edu</a><br><a href="http://www.lists.cs.ucla.edu/mailman/listinfo/nfd-dev" target="_blank">http://www.lists.cs.ucla.edu/mailman/listinfo/nfd-dev</a><br></div></blockquote></div><br></div></div></blockquote></div><br clear="all"><div><br></div>-- <br><div dir="ltr" class="gmail_signature" data-smartmail="gmail_signature"><div dir="ltr"><div><div dir="ltr"><b><font size="2">Regards,</font></b><font size="2"><b><i><br></i><font size="4"><span style="color:rgb(0,102,0)"><span style="background-color:rgb(255,255,255)">M<span></span>r. Maldar Aman M.</span></span></font></b></font><font size="4"><b><span style="color:rgb(0,102,0)"><span style="background-color:rgb(255,255,255)"><span></span><span></span></span></span></b></font><br><b>University of Massachusetts, Lowell</b><br></div></div></div></div>