named-data-iot / ndn-riot Goto Github PK
View Code? Open in Web Editor NEWNDN stack module for RIOT-OS
NDN stack module for RIOT-OS
Is it normal that we create a ndn_data packet with the "raw content" (using ndn_data_create
), and we get a TLV-encoded content back with ndn_data_get_content
?
This behaviour is not symetric.
Is there a simple way to get rid of the TLV header returned ?
I guess there is a memory-leak bug in the function ndn_app_register_prefix2 if it returns on line 570.
Errors while flashing Zolertia Re-Mote (remote-reva). Fixed by changing all afflicted lines from (%u) to (%" PRIu32"). Is this correct, or is it a bug on my part?
Ubuntu 16.04
Zolertia Re-Mote
In file included from /home/martin/dev/riot/ndn-riot/encoding/data.c:21:0:
/home/martin/dev/riot/ndn-riot/encoding/data.c: In function 'ndn_data_verify_signature':
/home/martin/dev/riot/ndn-riot/encoding/data.c:898:23: error: format '%u' expects argument of type 'unsigned int', but argument 2 has type 'uint32_t {aka long unsigned int}' [-Werror=format=]
DEBUG("ndn_encoding: invalid digest sig value length (%u)\n",
^
/home/martin/dev/riot/RIOT/core/include/debug.h:56:20: note: in definition of macro 'DEBUG_PRINT'
printf(__VA_ARGS__); \
^~~~~~~~~~~
/home/martin/dev/riot/ndn-riot/encoding/data.c:898:17: note: in expansion of macro 'DEBUG'
DEBUG("ndn_encoding: invalid digest sig value length (%u)\n",
^~~~~
/home/martin/dev/riot/ndn-riot/encoding/data.c:915:23: error: format '%u' expects argument of type 'unsigned int', but argument 2 has type 'uint32_t {aka long unsigned int}' [-Werror=format=]
DEBUG("ndn_encoding: invalid hmac sig value length (%u)\n",
^
/home/martin/dev/riot/RIOT/core/include/debug.h:56:20: note: in definition of macro 'DEBUG_PRINT'
printf(__VA_ARGS__); \
^~~~~~~~~~~
/home/martin/dev/riot/ndn-riot/encoding/data.c:915:17: note: in expansion of macro 'DEBUG'
DEBUG("ndn_encoding: invalid hmac sig value length (%u)\n",
^~~~~
/home/martin/dev/riot/ndn-riot/encoding/data.c:937:23: error: format '%u' expects argument of type 'unsigned int', but argument 2 has type 'uint32_t {aka long unsigned int}' [-Werror=format=]
DEBUG("ndn_encoding: invalid ecdsa sig value length (%u)\n",
^
/home/martin/dev/riot/RIOT/core/include/debug.h:56:20: note: in definition of macro 'DEBUG_PRINT'
printf(__VA_ARGS__); \
^~~~~~~~~~~
/home/martin/dev/riot/ndn-riot/encoding/data.c:937:17: note: in expansion of macro 'DEBUG'
DEBUG("ndn_encoding: invalid ecdsa sig value length (%u)\n",
^~~~~
/home/martin/dev/riot/ndn-riot/encoding/data.c: In function 'ndn_data_decrypt_with_ccm':
/home/martin/dev/riot/ndn-riot/encoding/data.c:1007:15: error: format '%d' expects argument of type 'int', but argument 2 has type 'int32_t {aka long int}' [-Werror=format=]
DEBUG("ndn_encoding: wrong content type %d for ccm data\n",
^
metainfo.content_type);
~~~~~~~~~~
/home/martin/dev/riot/RIOT/core/include/debug.h:56:20: note: in definition of macro 'DEBUG_PRINT'
printf(__VA_ARGS__); \
^~~~~~~~~~~
/home/martin/dev/riot/ndn-riot/encoding/data.c:1007:9: note: in expansion of macro 'DEBUG'
DEBUG("ndn_encoding: wrong content type %d for ccm data\n",
^~~~~
cc1: all warnings being treated as errors
I liked your project and i want to use it to do some simulation can i use it with a virtual test bed, if yes which one do you recommend
The aim is to put data in the cache when it is generated, even if no interest message have been received.
Is that even an acceptable behaviour ?
Currently, if the data don't match anything in the pit, the data is discarded.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.