[ndnSIM] How to add a new field in a CS entry

Shahid Md. Asif Iqbal asifcsep at gmail.com
Wed Mar 15 19:50:09 PDT 2017


Thanks Spyridon. Actually I want access the newly added field of a CS entry
from the forwarder.cpp.


On Wed, Mar 15, 2017 at 10:07 PM, Spyridon (Spyros) Mastorakis <
mastorakis at cs.ucla.edu> wrote:

> Hi,
>
> you will have to modify the cs-entry class of NFD:
>
> https://github.com/named-data-ndnSIM/NFD/blob/NFD-0.5.0-30-
> g934f505-ndnSIM/daemon/table/cs-entry.hpp
>
> To access a cs entry from the forwarder.cpp you can use the find method:
>
> https://github.com/named-data-ndnSIM/NFD/blob/NFD-0.5.0-30-
> g934f505-ndnSIM/daemon/fw/forwarder.cpp#L165
>
> Thanks,
>
> Spyridon (Spyros) Mastorakis
> Personal Website: http://cs.ucla.edu/~mastorakis/
> Internet Research Laboratory
> Computer Science Department
> UCLA
>
> On Mar 15, 2017, at 12:57 AM, Shahid Md. Asif Iqbal <asifcsep at gmail.com>
> wrote:
>
> Dear All,
> 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.
>
> Sincerely
> Asif
>
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.lists.cs.ucla.edu/pipermail/ndnsim/attachments/20170316/57f13a8b/attachment.html>


More information about the ndnSIM mailing list