[ndnSIM] Modifying Interest and Data packets
Spyridon (Spyros) Mastorakis
mastorakis at CS.UCLA.EDU
Tue Mar 7 15:53:46 PST 2017
Hi,
take a look at the ndn-cxx library used by ndnSIM:
https://github.com/named-data-ndnSIM/ndn-cxx
Modify the data and interest classes to add the fields that you want:
https://github.com/named-data-ndnSIM/ndn-cxx/blob/ndn-cxx-0.3.4-ndnSIM/src/data.cpp
https://github.com/named-data-ndnSIM/ndn-cxx/blob/ndn-cxx-0.3.4-ndnSIM/src/interest.cpp
Make sure that you also modify the way that you encode and decode an NDN packet to/from its wire format (methods wireEncode and wireDecode).
Hope that this helps,
Spyridon (Spyros) Mastorakis
Personal Website: http://cs.ucla.edu/~mastorakis/ <http://cs.ucla.edu/~mastorakis/>
Internet Research Laboratory
Computer Science Department
UCLA
> On Mar 7, 2017, at 12:26 PM, John Scott <scott1091 at yahoo.com> wrote:
>
> Hi,
>
> I would like to add extra information in the Interest and Data packets so that intermediate nodes can make forwarding decisions; however, I did not find this option in the ndnSIM.
> Could you please point me to some references?
>
> Thank you
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.lists.cs.ucla.edu/pipermail/ndnsim/attachments/20170307/4d8148d4/attachment-0001.html>
More information about the ndnSIM
mailing list