[ndnSIM] Adding new field to data packet

Renato Cavalcante renato.frca at gmail.com
Mon Oct 16 18:14:07 PDT 2017

Hi all,

I created a new field to Data packet, following this steps:

The my field created "Access" store the access in the data. On the
ContentStore Policy this need to be updated (here is the problem).

The alterations aren't persistent on Datas stored on the Data Structure
from the custom policy.

//my field
mutable uint32_t m_access = 1;

inline uint32_t
Data::getCountAccessData() const
  return m_access;

// set
Data::setCountAccessData(uint32_t cAccess)
m_access = cAccess;
return *this;

I added my field to tlv.hpp and i respected wireEncod and wireDecode.


Renato Araújo
Computer Science Department
UFBA -- Brazil
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.lists.cs.ucla.edu/pipermail/ndnsim/attachments/20171016/c335189d/attachment.html>

More information about the ndnSIM mailing list