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

coap_join_mcast_group_intf: fix interface selection on windows #1530

Merged
merged 1 commit into from
Oct 10, 2024

Conversation

anyc
Copy link
Contributor

@anyc anyc commented Oct 10, 2024

On the Windows platform, a set ifname parameter of the coap_join_mcast_group_intf function is only used for debug output. Only if it is NULL, the interface which should join a multicast group is derived from the bind address. So, setting the ifname parameter on the windows platform is counterproductive.

With this patch, ifname is always set to NULL on the windows platform and libcoap can try to derive the interface from the bind address.

Copy link
Collaborator

@mrdeep1 mrdeep1 left a comment

Choose a reason for hiding this comment

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

Minor documentation tidy up - otherwise this looks good to me.

src/coap_net.c Outdated Show resolved Hide resolved
src/coap_net.c Outdated Show resolved Hide resolved
@mrdeep1
Copy link
Collaborator

mrdeep1 commented Oct 10, 2024

Thanks for doing this.

@mrdeep1 mrdeep1 merged commit 7b4a20f into obgm:develop Oct 10, 2024
31 checks passed
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.

2 participants