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

Socket option for IP_MULTICAST_ALL & IPV6_MULTICAST_ALL for linux #485

Merged
merged 1 commit into from
Dec 18, 2023

Conversation

mzachar
Copy link
Contributor

@mzachar mzachar commented Dec 18, 2023

Added socket options for IP_MULTICAST_ALL & IPV6_MULTICAST_ALL which can be used to filter multicast packets received on the socket only from the groups that have been explicitly joined.

Useful when used in combination with SO_REUSEPORT

@Thomasdezeeuw Thomasdezeeuw merged commit d83cf04 into rust-lang:master Dec 18, 2023
41 checks passed
@Thomasdezeeuw
Copy link
Collaborator

Thanks @mzachar

@Thomasdezeeuw
Copy link
Collaborator

Shit, actually this is missing a test. @mzachar can you add something like the following: https://github.com/rust-lang/socket2/blob/master/tests/socket.rs#L1322?

@mzachar
Copy link
Contributor Author

mzachar commented Dec 18, 2023

Certainly! Is it ok If I push new commit here?

@Thomasdezeeuw
Copy link
Collaborator

Certainly! Is it ok If I push new commit here?

I think you'll need to open a new pr.

mzachar added a commit to mzachar/socket2 that referenced this pull request Dec 18, 2023
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.

None yet

2 participants