Skip to content

nhdp: port to sock#6974

Merged
miri64 merged 1 commit intoRIOT-OS:masterfrom
miri64:nhdp/cleanup/port-to-sock
Apr 27, 2017
Merged

nhdp: port to sock#6974
miri64 merged 1 commit intoRIOT-OS:masterfrom
miri64:nhdp/cleanup/port-to-sock

Conversation

@miri64
Copy link
Copy Markdown
Member

@miri64 miri64 commented Apr 26, 2017

Still one dependency left for conn.

@miri64 miri64 added Type: cleanup The issue proposes a clean-up / The PR cleans-up parts of the codebase / documentation Area: network Area: Networking labels Apr 26, 2017
@miri64 miri64 added the CI: ready for build If set, CI server will compile all applications for all available boards for the labeled PR label Apr 26, 2017
@miri64 miri64 mentioned this pull request Apr 26, 2017
conn_udp_sendto(buffer, length, &src, sizeof(src), &dst, sizeof(dst), AF_INET, sport, dport);
sock_udp_ep_t ep = { .family = AF_INET6, .netif = SOCK_ADDR_ANY_NETIF,
.port = MANET_PORT };
memcpy(ep.addr.ipv6, &ipv6_addr_all_nodes_link_local, sizeof(ep.addr.ipv6));
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

shouldn't this rather be &(ep.addr.ipv6)?

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

its an array, so its arbitrary if you do ep.addr.ipv6, &(ep.addr.ipv6) or &(ep.addr.ipv6[0]) I prefer the first.

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

and me the second, it make the usage of a pointer (address) more explicit -- but that's just a (non-blocking) personal preference 😉.

Copy link
Copy Markdown
Member

@smlng smlng left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

looks good to me.

@smlng smlng added CI: ready for build If set, CI server will compile all applications for all available boards for the labeled PR and removed CI: ready for build If set, CI server will compile all applications for all available boards for the labeled PR labels Apr 27, 2017
@miri64 miri64 merged commit 3897b75 into RIOT-OS:master Apr 27, 2017
@miri64 miri64 deleted the nhdp/cleanup/port-to-sock branch April 27, 2017 12:27
@aabadie aabadie modified the milestone: Release 2017.07 Jun 30, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Area: network Area: Networking CI: ready for build If set, CI server will compile all applications for all available boards for the labeled PR Type: cleanup The issue proposes a clean-up / The PR cleans-up parts of the codebase / documentation

Projects

None yet

Development

Successfully merging this pull request may close these issues.

6 participants