[ndnSIM] cannot change data attributes in onOutgoingData
aa at CS.UCLA.EDU
Mon Mar 7 14:53:33 PST 2016
Data in NDN is immutable. You cannot modify en route, i.e., all security properties associated with the data will be gone.
If you need to add something alongside to help with forwarding, you should use tags instead.
> On Mar 7, 2016, at 2:23 PM, Carl Zu <carlzu8 at gmail.com> wrote:
> I had added some attributes to data.hpp. Then I tried to change their value in onOutgoingData. But received following error:
> ../src/ndnSIM/NFD/daemon/fw/forwarder.cpp:526:54: error: passing ‘const ndn::Data’ as ‘this’ argument of ‘void ndn::Data::setCarlComponents(ns3::Ptr<CarlComp>)’ discards qualifiers [-fpermissive]
> data.setCarlComponents (cPointer);
> Changing my attributes to mutable also did not help, i.e. only the same error appeared later.
> Thanks for guidance in advance.
> ndnSIM mailing list
> ndnSIM at lists.cs.ucla.edu
-------------- next part --------------
A non-text attachment was scrubbed...
Size: 841 bytes
Desc: Message signed with OpenPGP using GPGMail
More information about the ndnSIM