Skip to content

Make our own multicast group and join it. #137

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

Merged
merged 1 commit into from
Oct 4, 2017
Merged

Conversation

SeppoTakalo
Copy link
Contributor

Do not rely on any default multicast groups to be enabled.
Don't spam nodes which have not joined our group.

Fixes #130

This needs to be manually tested for both Thread and 6LoWPAN.

Do not rely on any default multicast groups to be enabled.
Don't spam nodes which have not joined our group.

Fixes #130

ns_ipv6_mreq_t mreq;
memcpy(mreq.ipv6mr_multiaddr, multi_cast_addr, 16);
mreq.ipv6mr_interface = 0;

Choose a reason for hiding this comment

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

Why zero? Can it change?

Copy link
Contributor

Choose a reason for hiding this comment

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

Zero means "default". Best we can do as we don't have visibility of Nanostack interface IDs.

There is a PR going through to add a generic NSAPI for this - ARMmbed/mbed-os#4820. That is intending to use interface address instead.

@kseverinkangas-zg
Copy link

Verified!

@SeppoTakalo SeppoTakalo merged commit b215f76 into master Oct 4, 2017
@SeppoTakalo SeppoTakalo deleted the issues/130 branch October 4, 2017 14:47
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants