[ndnSIM] Data has no wire encoding (not signed)

Junxiao Shi shijunxiao at email.arizona.edu
Fri Dec 15 04:17:59 PST 2017

Hi cjb

NFD ContentStore expects Data::getFullName() to return a valid name with
implicit digest. If your changes cannot maintain this property, it will
have undefined behavior (such as crashing).
Look at the logic in Data::getFullName() and see what went wrong.

Yours, Junxiao

On Thu, Dec 14, 2017 at 04:44 <cjb0725 at mail.ustc.edu.cn> wrote:

> Greetings all,
>   I add two new fields into Data and modified the encode and decode function, tlv.hpp as well. if I use the old ContentStore
>    ndnHelper.SetOldContentStore("ns3::ndn::cs::Lru","MaxSize","100");
> it works well.But if I use the nfd::Cs
>    ndnHelper.setCsSize(100);
>    ndnHelper.setPolicy("nfd::cs::lru");
> I got this error:
> libc++abi.dylib: terminating with uncaught exception of type boost::exception_detail::clone_impl<boost::exception_detail::error_info_injector<ndn::Data::Error> >: Cannot compute full name because Data has no wire encoding (not signed).
> And I have another question, we can use ndn::CsTracer to obtain metrics about hits/misses, but this only works with the old ContentStore , how to obtain these metrics when I use nfd::Cs?
> any help would be great.
> Thanks in advance!
> _______________________________________________
> ndnSIM mailing list
> ndnSIM at lists.cs.ucla.edu
> http://www.lists.cs.ucla.edu/mailman/listinfo/ndnsim
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.lists.cs.ucla.edu/pipermail/ndnsim/attachments/20171215/e95852a2/attachment-0001.html>

More information about the ndnSIM mailing list