Skip to content

Socket option for IP_MULTICAST_ALL & IPV6_MULTICAST_ALL for linux#485

Merged
Thomasdezeeuw merged 1 commit intorust-lang:masterfrom
mzachar:master
Dec 18, 2023
Merged

Socket option for IP_MULTICAST_ALL & IPV6_MULTICAST_ALL for linux#485
Thomasdezeeuw merged 1 commit intorust-lang:masterfrom
mzachar:master

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
@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.

2 participants