<div dir="ltr">Thanks Spyridon. Actually I want access the newly added field of a CS entry from the forwarder.cpp.<br><br></div><div class="gmail_extra"><br><div class="gmail_quote">On Wed, Mar 15, 2017 at 10:07 PM, Spyridon (Spyros) Mastorakis <span dir="ltr"><<a href="mailto:mastorakis@cs.ucla.edu" target="_blank">mastorakis@cs.ucla.edu</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div style="word-wrap:break-word">Hi,<div><br></div><div>you will have to modify the cs-entry class of NFD:</div><div><br></div><div><a href="https://github.com/named-data-ndnSIM/NFD/blob/NFD-0.5.0-30-g934f505-ndnSIM/daemon/table/cs-entry.hpp" target="_blank">https://github.com/named-data-<wbr>ndnSIM/NFD/blob/NFD-0.5.0-30-<wbr>g934f505-ndnSIM/daemon/table/<wbr>cs-entry.hpp</a></div><div><br></div><div>To access a cs entry from the forwarder.cpp you can use the find method:</div><div><br></div><div><a href="https://github.com/named-data-ndnSIM/NFD/blob/NFD-0.5.0-30-g934f505-ndnSIM/daemon/fw/forwarder.cpp#L165" target="_blank">https://github.com/named-data-<wbr>ndnSIM/NFD/blob/NFD-0.5.0-30-<wbr>g934f505-ndnSIM/daemon/fw/<wbr>forwarder.cpp#L165</a></div><div><br></div><div>Thanks,</div><div><br><div>
<div><div><div><span style="float:none;display:inline!important">Spyridon (Spyros) Mastorakis</span><br><span style="float:none;display:inline!important">Personal Website: </span><a href="http://cs.ucla.edu/~mastorakis/" target="_blank">http://cs.ucla.edu/~<wbr>mastorakis/</a><br><span style="float:none;display:inline!important">Internet Research Laboratory</span><br><span style="float:none;display:inline!important">Computer Science Department</span><br><span style="float:none;display:inline!important">UCLA</span></div></div></div>
</div><div><div class="h5">
<br><div><blockquote type="cite"><div>On Mar 15, 2017, at 12:57 AM, Shahid Md. Asif Iqbal <<a href="mailto:asifcsep@gmail.com" target="_blank">asifcsep@gmail.com</a>> wrote:</div><br class="m_-258852876510022570Apple-interchange-newline"><div><div dir="ltr"><div>Dear All,<br></div><div>How can I add a new field to a CS entry, e.g. hop count of a Data, an update it as needed? Also, I want to access the cs entry from the forwarder.cpp.<br><br></div><div>Sincerely<br></div><div>Asif <br></div></div><br></div></blockquote></div><br></div></div></div></div></blockquote></div><br></div>