<html><head><meta http-equiv="Content-Type" content="text/html; charset=us-ascii"><meta http-equiv="Content-Type" content="text/html; charset=us-ascii"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; line-break: after-white-space;" class="">Hi Aman,<div class=""><br class=""></div><div class="">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 class=""><br class=""></div><div class="">The code has a few examples for tag encoding, look in face.cpp and detail/face-impl.hpp.</div><div class=""><br class=""></div><div class="">--</div><div class="">Alex<br class=""><div><br class=""><blockquote type="cite" class=""><div class="">On Nov 17, 2018, at 7:26 PM, Aman Maldar <<a href="mailto:amanmaldar@gmail.com" class="">amanmaldar@gmail.com</a>> wrote:</div><br class="Apple-interchange-newline"><div class=""><div dir="ltr" class=""><div dir="ltr" class=""><div dir="ltr" class=""><div dir="ltr" class="">Hello All,<br class=""> I have 2 questions.<br class="">First,<br class="">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 class="">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" class="">https://github.com/named-data/ndn-cxx/blob/master/src/lp/tags.hpp</a><br class=""><br clear="all" class=""><div class=""><div class="">typedef SimpleTag<uint64_t, 10> IncomingFaceIdTag;</div><div class="">typedef SimpleTag<uint64_t, 11> NextHopFaceIdTag;</div></div><div class=""><br class="">Second,</div><div class="">Also, is there a way I can calculate the interest packet overhead after adding a new tag?<br class="">If I do following before and after adding the tags, would I get correct result? <br class="">auto intSize = interest.wireEncode().size();</div><div class=""><br class=""></div><div class="">Ndn-dissect didn't work very well, I didn't get what I was looking for. Some fields were missing.  <br class=""><br class=""></div>-- <br class=""><div dir="ltr" class="gmail_signature"><div dir="ltr" class=""><div class=""><div dir="ltr" class=""><b class=""><font size="2" class="">Regards,</font></b><font size="2" class=""><b class=""><i class=""><br class=""></i><font size="4" class=""><span style="color:rgb(0,102,0)" class=""><span style="background-color:rgb(255,255,255)" class="">M<span class=""></span>r. Maldar Aman M.</span></span></font></b></font><font size="4" class=""><b class=""><span style="color:rgb(0,102,0)" class=""><span style="background-color:rgb(255,255,255)" class=""><span class=""></span><span class=""></span></span></span></b></font><br class=""><b class="">University of Massachusetts, Lowell</b><br class=""></div></div></div></div></div></div></div></div>
_______________________________________________<br class="">Nfd-dev mailing list<br class=""><a href="mailto:Nfd-dev@lists.cs.ucla.edu" class="">Nfd-dev@lists.cs.ucla.edu</a><br class=""><a href="http://www.lists.cs.ucla.edu/mailman/listinfo/nfd-dev" class="">http://www.lists.cs.ucla.edu/mailman/listinfo/nfd-dev</a><br class=""></div></blockquote></div><br class=""></div></body></html>