Giter VIP home page Giter VIP logo

ndn-riot's People

Contributors

astralien3000 avatar cawka avatar wentaoshang avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar

ndn-riot's Issues

Question about ndn_data_* API

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 ?

Debugging type error for ndn-riot/encoding/data.c during flashing

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

Can i use it in virtual testbed

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

put data before an interest is received

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.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.