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

Spyridon (Spyros) Mastorakis mastorakis at CS.UCLA.EDU
Wed Mar 15 09:07:27 PDT 2017


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 <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 <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/ <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/20170315/2987b239/attachment.html>


More information about the ndnSIM mailing list