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

Implement {join,leave}_multicast_v4_n #284

Merged
merged 2 commits into from
Jan 20, 2022
Merged

Implement {join,leave}_multicast_v4_n #284

merged 2 commits into from
Jan 20, 2022

Conversation

tamird
Copy link
Contributor

@tamird tamird commented Jan 13, 2022

See individual commit messages (please don't squash on merge). @Thomasdezeeuw

@tamird
Copy link
Contributor Author

tamird commented Jan 13, 2022

This depends on rust-lang/libc#2625 for Android, Apple, and FreeBSD.

Copy link
Collaborator

@Thomasdezeeuw Thomasdezeeuw left a comment

Choose a reason for hiding this comment

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

Can you include the libc update in the last commit to indicate it's required for this change.

If at all possible could you add a test of some kind, even if it just calls the function. I'm not sure if there is a way to get the value to check if its set correctly but that would be ideal of course, but not required.

Otherwise LGTM pending the libc changes.

src/socket.rs Show resolved Hide resolved
@tamird
Copy link
Contributor Author

tamird commented Jan 17, 2022

Done!

@tamird
Copy link
Contributor Author

tamird commented Jan 19, 2022

@Thomasdezeeuw what are next steps here? Should I remove this from apple,android,freebsd until the libc changes are included in a new release?

@Thomasdezeeuw
Copy link
Collaborator

Wait for rust-lang/libc#2635 to be published, usually doesn't take too long.

bors added a commit to rust-lang/libc that referenced this pull request Jan 20, 2022
@Thomasdezeeuw
Copy link
Collaborator

@tamird libc 0.2.113 has been released, if you can update libc and squash that with the last commit this should be good to merge.

These methods allow the local interface to be specified by its index or
an address assigned to it. This is supported in Linux since 2.2, in
FreeBSD since 13.0.0, and in macOS since 10.7.

DragonFlyBSD: DragonFlyBSD/DragonFlyBSD@1926f58.
OpenBSD: openbsd/src@c0ba2d2.

Haiku, illumos, netbsd, redox, and solaris (and perhaps others) do not
support ip_mreqn, so these functions are not available on those systems.

Requires libc with rust-lang/libc@8cba30b,
released in https://crates.io/crates/libc/0.2.113; the libc dependency
is bumped to this version.

Fixes #283.
@tamird
Copy link
Contributor Author

tamird commented Jan 20, 2022

Done, thanks.

@tamird
Copy link
Contributor Author

tamird commented Jan 20, 2022

Green!

@Thomasdezeeuw Thomasdezeeuw merged commit 750f836 into rust-lang:master Jan 20, 2022
@Thomasdezeeuw
Copy link
Collaborator

Thanks @tamird, let me know if you want a release for this.

@tamird tamird deleted the mreqn branch January 20, 2022 18:32
@tamird
Copy link
Contributor Author

tamird commented Jan 20, 2022

Yes please!

@messense
Copy link

Looks like this breaks on linux s390x: https://github.com/PyO3/maturin/runs/4906697417?check_suite_focus=true

@Thomasdezeeuw
Copy link
Collaborator

@messense created rust-lang/libc#2643 to fix it.

@tamird
Copy link
Contributor Author

tamird commented Jan 24, 2022

We should update the libc dependency to 0.2.114 and consider yanking 0.4.3.

@Thomasdezeeuw Thomasdezeeuw mentioned this pull request Jan 27, 2022
@Thomasdezeeuw
Copy link
Collaborator

Release v0.4.4 and yanked v0.4.3.

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