<div dir="ltr"><br><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">---------- Forwarded message ---------<br>From: <b class="gmail_sendername" dir="auto">Anantha krishnan saji</b> <span dir="auto"><<a href="mailto:ananthakrishnan190@gmail.com">ananthakrishnan190@gmail.com</a>></span><br>Date: Thu, Oct 31, 2019 at 6:39 AM<br>Subject: Re: [ndnSIM] Adding new fields in interest packets<br>To: Spyridon Mastorakis <<a href="mailto:smastorakis@unomaha.edu">smastorakis@unomaha.edu</a>><br></div><br><br><div dir="ltr"><div>Hello all,</div><div>Thank you for the kind reply. I created a tag which carries a ndn::Name. There is no compilation error and there is no run time error. But the packets are not reaching producer. If I run the ndn-simple.cpp example, Interest packets go from node 0 to node 1. But interest packets are dropped at node1. If I change the data type in my tag to uint64_t it works. With the data type ndn::Name its not working. <br></div><div><br></div><div><div>The new tag I created carries a ndn::Name. The interest packets are
 getting dropped because this new tag is neither recognized nor can be 
ignored. <br></div><div>This is the log message:</div><div>"+1.010456000s 1 ndn-cxx.nfd.GenericLinkService:doReceivePacket(): [id=257,local=netdev://[00:00:00:00:00:02],remote=netdev://[00:00:00:00:00:01]] <b>packet parse error (unrecognized field 7 cannot be ignored): DROP</b>"</div><div><br></div><div>From
 the log message, what I understand is that ndn::Name is an unrecognized
 field. I need to make this field recognized or ignore this field.</div><div>I followed instructions in this link <a href="https://lo.calho.st/posts/ndnsim-custom-fields/" target="_blank">https://lo.calho.st/posts/ndnsim-custom-fields/</a>
 to ignore the tag. But, the tlv type that is making problems here is 
tlv type of the ndn::Name (7) and I think changing this type is not the 
correct way of solving this. Is it possible to ignore my tag or make the
 tag recognized?</div></div><div><br></div><div>Thanks and regards,</div><div>Ananthakrishnan S<br></div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Thu, Oct 24, 2019 at 11:12 PM Spyridon Mastorakis <<a href="mailto:smastorakis@unomaha.edu" target="_blank">smastorakis@unomaha.edu</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">



<div>
Please take a look at the other fields of Interests and data in ndn-cxx:
<div><br>
</div>
<div><a href="https://github.com/named-data/ndn-cxx/blob/master/ndn-cxx/interest.cpp" target="_blank">https://github.com/named-data/ndn-cxx/blob/master/ndn-cxx/interest.cpp</a></div>
<div><a href="https://github.com/named-data/ndn-cxx/blob/master/ndn-cxx/data.cpp" target="_blank">https://github.com/named-data/ndn-cxx/blob/master/ndn-cxx/data.cpp</a></div>
<div><br>
</div>
<div>Also: <a href="https://lo.calho.st/networks/adding-custom-packet-fields-to-packets-in-ndnsim-2-3-without-forking-the-entire-repository/" target="_blank">
https://lo.calho.st/networks/adding-custom-packet-fields-to-packets-in-ndnsim-2-3-without-forking-the-entire-repository/</a></div>
<div><br>
</div>
<div>
<div>
<div dir="auto" style="color:rgb(0,0,0);letter-spacing:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px;text-decoration:none">
<div dir="auto" style="color:rgb(0,0,0);letter-spacing:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px;text-decoration:none">
<div dir="auto" style="color:rgb(0,0,0);letter-spacing:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px;text-decoration:none">
<div>Spyridon (Spyros) Mastorakis<br>
Assistant Professor<br>
Computer Science Department<br>
University of Nebraska, Omaha<br>
Peter Kiewit Institute Room 175A<br>
<a href="https://sites.google.com/site/spyridonmastorakis" target="_blank">https://sites.google.com/site/spyridonmastorakis</a><br>
<br>
<br>
</div>
</div>
</div>
</div>
</div>
<div>
<blockquote type="cite">
<div>On Oct 19, 2019, at 2:06 PM, Anantha krishnan saji via ndnSIM <<a href="mailto:ndnsim@lists.cs.ucla.edu" target="_blank">ndnsim@lists.cs.ucla.edu</a>> wrote:</div>
<br>
<div>
<div dir="ltr">
<div>Hello all,</div>
<div>I am trying to add three new fields in interest packet. I would like to know how TLV type numbers are assigned to each fields. I have seen the TLV type number assignment specification. I am not sure how I can assign a number to my newly added
 fields. Any help would be appreciated.</div>
<div><br>
</div>
<div>Thanks and regards,</div>
<div>Ananthakrishnan S</div>
</div>
<br>
</div>
</blockquote>
</div>
<br>
</div>
</div>

</blockquote></div>
</div></div>