<div dir="auto">Hi Prajjwal</div><div dir="auto"><br></div><div dir="auto">If forwarder cannot modify this field:</div><div dir="auto">Put it as part of the Name or ApplicationParameters.</div><div dir="auto"><br></div><div dir="auto">If forwarder can modify this field:</div><div dir="auto">It should be added to the hop-by-hop header.</div><div dir="auto">See <div dir="auto"><a href="https://lo.calho.st/posts/ndnsim-custom-fields/">https://lo.calho.st/posts/ndnsim-custom-fields/</a> for specific steps.</div><div dir="auto">Note that InterestLifetime, Nonce, and HopLimit are modifiable by the forwarder so they technically belong to the hop-by-hop header; they are in Interest due to historic reason.</div></div><div dir="auto"><br></div><div dir="auto">Yours, Junxiao</div><div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Mon, May 3, 2021 at 12:37 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-width:1px;border-left-style:solid;padding-left:1ex;border-left-color:rgb(204,204,204)"><p style="text-align:center"><font style="color:rgb(255,0,0)"><strong>External Email</strong><br></font></p><div dir="ltr"><div>Hello all,</div><div>I am trying to add a new field, Priority, to interest Packets.</div><div><br></div><div>Till now I have followed this:</div><div><ol><li> Add field in tlv.hpp<code style="font-family:monospace"><br></code></li><li> Add member and its getter and setter functions in interest.hpp<br></li><li> Implement the functions in interest.cpp</li><li>Modify the encoding function wireEncode() and decoding function wireDecode() in interest.cpp</li></ol><div>Then I added some code to set the Priority field for interest packets by SetAttribute features of the ndnHelpers.</div><div><br></div><div>But now My problem is that the Priority field gets set to default after the first hop.</div><div>Please help me make this work.</div><div><br></div><div>Thank you,</div><div>Prajjwal Singh<br></div><div><br></div></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></div>