<div dir="ltr">Hi Prajjwal,<br><br>I do not know if I fully understood your question.<br><br>ndnSIM has no helpers for creating new interest packet fields.<br><br>You need to change the Interest class (ndn-cxx library) to add new fields.<br><br>Path:<br>     - ndnSIM/ns-3/src/ndnSIM/ndn-cxx/ndn-cxx/interest.cpp<br>     - ndnSIM/ns-3/src/ndnSIM/ndn-cxx/ndn-cxx/interest.hpp<br><br>When creating a new interest packet, you will set the value of the new field, similar to how it is done with the other fields. For example:<br><br>...<br>shared_ptr<Interest> interest = make_shared<Interest>();<br>interest->setOldField(value1);<br>interest->setNewField(value2);<br>...<br>send(*interest);<br>...<br><br>Regards,<br>Ygor Amaral<br></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Tue, Apr 6, 2021 at 3:26 AM Prajjwal Singh <<a href="mailto:csb17053@tezu.ac.in">csb17053@tezu.ac.in</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 dir="ltr"><div>Hello all,</div><div>After adding a custom field, say Priority, to the interest packet, how can I make use of ndnSIM helpers to specify this Priority field in the interest packets, while installing and specifying prefix to consumer nodes in the simulating examples?</div><div><br></div><div>Thanks in advance,</div><div>Prajjwal Singh<br></div><div><br></div></div>
_______________________________________________<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" rel="noreferrer" target="_blank">http://www.lists.cs.ucla.edu/mailman/listinfo/ndnsim</a><br>
</blockquote></div>