[Ndn-interest] Modifying NDN Data Structure

Steve DiBenedetto dibenede at cs.colostate.edu
Mon Feb 1 12:55:57 PST 2016


I suspect it's a small off-by-something error in either the encoding
or decoding process. I would double check to make sure you're updating
the running total length variable. Also, if your field is optional,
make sure you're handling it appropriately.




On Mon, Feb 1, 2016 at 1:34 PM, Mehdi Bahrami <mbahrami at ucmerced.edu> wrote:
> Hi all,
>
> Is anyone has an idea about the following issue:
>
> I’m working on ndn-cxx and I want to extend the data structure of Data, but
> after adding a field to the Data or MetaInfo, the examples/producer.cpp
> gives me memory access errors as follows:
>
> Segmenttion fault (core dumped).
>
>
>
> To add fields into the data structures as Alex confirmed the process, you
> need to perform 3 steps:
>
> - add actual field that will hold your data into the data structure
>
> - add invocation of proper decoding into Data::wireDecode method
>
> - add invocation of proper encoding into Data::wireEncode templated method.
> Note that encoding is performed in reverse order.  So, if you added your
> field at the end of data packet, you need to encode it first.
>
>
>
> Still I have the same issue.
>
>
>
>
>
> --
>
> Sincerely,
>
> Mehdi Bahrami
>
> Cloud Lab, EECS
>
> University of California Merced
>
> IEEE Senior Member
>
> http://cloudlab.ucmerced.edu/~mehdi
>
>
>
>
> _______________________________________________
> Ndn-interest mailing list
> Ndn-interest at lists.cs.ucla.edu
> http://www.lists.cs.ucla.edu/mailman/listinfo/ndn-interest
>




More information about the Ndn-interest mailing list