<html><head><meta http-equiv="Content-Type" content="text/html charset=utf-8"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;" class="">Hi,<div class=""><br class=""></div><div class="">take a look at the NDN packet format for a data packet:</div><div class=""><br class=""></div><div class=""><a href="https://named-data.net/doc/ndn-tlv/" class="">https://named-data.net/doc/ndn-tlv/</a></div><div class=""><br class=""></div><div class="">Then, at the ndn-cxx provided API for each field in a data packet:</div><div class=""><br class=""></div><div class=""><a href="https://github.com/named-data-ndnSIM/ndn-cxx" class="">https://github.com/named-data-ndnSIM/ndn-cxx</a></div><div class=""><br class=""></div><div class="">I am pretty sure that most of the classes have a size attribute or method.</div><div class=""><br class=""></div><div class="">For me the header of a data packet includes the name and the MetaInfo field (not the content and signature).</div><div class=""><br class=""></div><div class="">Hope that this helps,</div><div class=""><br class=""><div class="">
<div class=""><div class=""><div class=""><span class="" style="float: none; display: inline !important;">Spyridon (Spyros) Mastorakis</span><br class=""><span class="" style="float: none; display: inline !important;">Personal Website: </span><a href="http://cs.ucla.edu/~mastorakis/" class="">http://cs.ucla.edu/~mastorakis/</a><br class=""><span class="" style="float: none; display: inline !important;">Internet Research Laboratory</span><br class=""><span class="" style="float: none; display: inline !important;">Computer Science Department</span><br class=""><span class="" style="float: none; display: inline !important;">UCLA</span></div><div class=""><br class=""></div></div></div></div><div><blockquote type="cite" class=""><div class="">On Apr 26, 2017, at 1:11 AM, <a href="mailto:n.boubakr@bit.edu.cn" class="">n.boubakr@bit.edu.cn</a> wrote:</div><br class="Apple-interchange-newline"><div class=""><div class="WordSection1" style="page: WordSection1; font-family: Helvetica; font-size: 12px; font-style: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px; -webkit-text-stroke-width: 0px;"><div style="margin: 0in 0in 0.0001pt; font-size: 11pt; font-family: Calibri, sans-serif;" class=""><span lang="FR" class="">Hello,<o:p class=""></o:p></span></div><div style="margin: 0in 0in 0.0001pt; font-size: 11pt; font-family: Calibri, sans-serif;" class=""><span lang="FR" class="">How to calculate the header size of Data packets ?</span></div><div style="margin: 0in 0in 0.0001pt; font-size: 11pt; font-family: Calibri, sans-serif;" class=""><o:p class=""> </o:p></div><div style="margin: 0in 0in 0.0001pt; font-size: 11pt; font-family: Calibri, sans-serif;" class="">Best regards,</div><div style="margin: 0in 0in 0.0001pt; font-size: 11pt; font-family: Calibri, sans-serif;" class="">Boubakr Nour (Ph.D Candidate)<br class="">Beijing Institute of Technology (<span lang="ZH-CN" style="font-family: DengXian;" class="">北京理工大学</span>)</div><div style="margin: 0in 0in 0.0001pt; font-size: 11pt; font-family: Calibri, sans-serif;" class=""><br class=""></div></div></div></blockquote></div><br class=""></div></body></html>