[riot-notifications] [RIOT-OS/RIOT] RFC: Integration of (tiny)DTLS for RIOT O.S. (#7397)

Raul Fuentes notifications at github.com
Wed Sep 6 18:44:42 CEST 2017


One of the main issues that I'm having with tinyDTLS and RIOT is the handling of the memory required for the data structures of the former.

Right now, I'm using the original code which uses malloc/free functions. Yet, RIOT's `free()` function is in a [TODO](http://doc.riot-os.org/group__oneway__malloc.html#gafbedc913aa4651b3c3b4b3aecd9b4711) state.

For communication between sensors with a single external node, this is not a big issue, as long the DTLS session is neither closed or renewed constantly. Otherwise, tinyDTLS will eventually exhaust all the RAM available of the node.

Also, the use of malloc/free force me to inflate the stack size for the thread establishing the DTLS channel.

I'm thinking of using macro functions (fixed arrays) and replacing the calls of malloc/free by them. Yet, I'm not an expert on memory issues, and this is a very delicate topic for RIOT,  therefore I'm open to suggestions.


-- 
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/RIOT-OS/RIOT/issues/7397#issuecomment-327543852
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.riot-os.org/pipermail/notifications/attachments/20170906/9ba1f8bf/attachment-0001.html>


More information about the notifications mailing list