Skip to content
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

Merged
merged 2 commits into from Mar 28, 2019

Conversation

obgm
Copy link
Contributor

@obgm obgm commented Mar 26, 2019

tinydtls has moved its source repository to GitHub. This change therefore updates the PKG_URL for package tinydtls and the PKG_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.

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.
@leandrolanzieri leandrolanzieri added the Area: pkg Area: External package ports label Mar 26, 2019
@leandrolanzieri leandrolanzieri self-requested a review March 26, 2019 20:11
Copy link
Contributor

@leandrolanzieri leandrolanzieri left a 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);

@leandrolanzieri leandrolanzieri added the Reviewed: 1-fundamentals The fundamentals of the PR were reviewed according to the maintainer guidelines label Mar 26, 2019
[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
@obgm
Copy link
Contributor Author

obgm commented Mar 27, 2019

RIOT/examples/dtls-echo/bin/pkg/native/tinydtls/session.h:96:53: error: unknown type name ‘socklen_t’

Sorry, I did not re-test the dtls-echo example for a while. This should work now.

@leandrolanzieri leandrolanzieri added Reviewed: 2-code-design The code design of the PR was reviewed according to the maintainer guidelines Reviewed: 3-testing The PR was tested according to the maintainer guidelines Reviewed: 4-code-style The adherence to coding conventions by the PR were reviewed according to the maintainer guidelines Reviewed: 5-documentation The documentation details of the PR were reviewed according to the maintainer guidelines CI: ready for build If set, CI server will compile all applications for all available boards for the labeled PR labels Mar 28, 2019
Copy link
Contributor

@leandrolanzieri leandrolanzieri left a 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

@leandrolanzieri
Copy link
Contributor

And go

@leandrolanzieri leandrolanzieri merged commit ef2b33c into RIOT-OS:master Mar 28, 2019
@danpetry danpetry added this to the Release 2019.04 milestone Apr 11, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Area: pkg Area: External package ports CI: ready for build If set, CI server will compile all applications for all available boards for the labeled PR Reviewed: 1-fundamentals The fundamentals of the PR were reviewed according to the maintainer guidelines Reviewed: 2-code-design The code design of the PR was reviewed according to the maintainer guidelines Reviewed: 3-testing The PR was tested according to the maintainer guidelines Reviewed: 4-code-style The adherence to coding conventions by the PR were reviewed according to the maintainer guidelines Reviewed: 5-documentation The documentation details of the PR were reviewed according to the maintainer guidelines
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants