[riot-notifications] [RIOT-OS/RIOT] net/gcoap: support DTLS (#15549)

János Brodbeck notifications at github.com
Wed May 26 13:31:31 CEST 2021

@janosbrodbeck commented on this pull request.

> + * @}
+ */
+#include "net/dsm.h"
+#include "mutex.h"
+#include "net/sock/util.h"
+#include "xtimer.h"
+#define ENABLE_DEBUG 0
+#include "debug.h"
+typedef struct {
+    sock_dtls_t *sock;
+    sock_dtls_session_t session;
+    dsm_state_t state;
+    uint64_t last_used;

Will add unit. ms accuracy is sufficient. With ms we would have an overflow after 18 days? Right now there is now session timeout, so theoretically a session could be kept longer. The standard recommends to time out sessions after a maximum of 24h hours. With 32 bit, wouldn't we need two 32 bit values then? One for `established_ms` and one for `last_used_ms`, for the case when the current runtime of the device is longer than 18 days?

You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.riot-os.org/pipermail/notifications/attachments/20210526/c9e8cd0b/attachment-0001.htm>

More information about the notifications mailing list