New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
pkg/tinydtls: Update repository URL to new location, fix posix_sockets #11277
Conversation
When WITH_RIOT_GNRC is set in CFLAGS, tinydtls will use a more compact address representation based on ipv6_addr_t instead of POSIX-style sockaddr_in6 to identify sessions (cf. struct session_t). When posix_sockets are used (as in libcoap, e.g.), the POSIX address representation should be selected automatically for consistency. This change adds -DWITH_RIOT_GNRC to CFLAGS only when the module posix_sockets is not selected.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'm getting the following error while building the dtls-echo
example application on native:
RIOT/examples/dtls-echo/bin/pkg/native/tinydtls/session.h:96:53: error: unknown type name ‘socklen_t’
struct sockaddr* dtls_session_addr(session_t *sess, socklen_t *addrlen);
[tinydtls] Makefile: Updated PKG_URL The tinydtls repository has moved from Eclipse Gerrit to GitHub [1]. PKG_URL now points to the new direction and PKG_VERSION was updated to the HEAD of the develop branch. [1] https://github.com/eclipse/tinydtls.git
Sorry, I did not re-test the dtls-echo example for a while. This should work now. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Tested and the dtls-echo works fine. ACK
And go |
tinydtls has moved its source repository to GitHub. This change therefore updates the
PKG_URL
for package tinydtls and thePKG_VERSION
to the HEAD of the development branch. (Note that there is no official stable release for tinydtls yet and the development branch contains the entire RIOT support.)The second change in this PR fixes the configuration for
posix_sockets
as the existing CFLAGS-based method did not work.