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

multicast: use single Cargo feature for both ipv4 and ipv6. #988

Merged
merged 1 commit into from
Sep 16, 2024

Conversation

Dirbaio
Copy link
Member

@Dirbaio Dirbaio commented Sep 12, 2024

Builds on top of #985

multicast: use single Cargo feature for both ipv4 and ipv6.

The multicast feature was somewhat broken before, there was no way to do IPv6-only multicast
since a lot of multicast code was gated behind proto-igmp which force-enables ipv4.

Solution:

  • Added feature multicast which enables multicast for ipv4 and/or ipv6, whatever the user has enabled.
  • Removed feature proto-igmp. IGMP support in wire is always built if ipv4 is enabled. This causes no bloat if unused, and the increase in compile time is negligible. iface only uses it if the multicast feature is enabled.

The multicast feature was somewhat broken before, there was no way to do IPv6-only multicast
since a lot of multicast code was gated behind `proto-igmp` which force-enables ipv4.

Solution:

- Added feature `multicast` which enables multicast for ipv4 and/or ipv6, whatever the user has enabled.
- Removed feature `proto-igmp`. IGMP support in `wire` is always built if ipv4 is enabled. This causes no bloat if unused, and the increase in compile time is negligible. `iface` only uses it if the `multicast` feature is enabled.
@Dirbaio Dirbaio marked this pull request as ready for review September 12, 2024 15:03
@Dirbaio
Copy link
Member Author

Dirbaio commented Sep 12, 2024

ready to go now that #985 is merged

@Dirbaio Dirbaio added this pull request to the merge queue Sep 16, 2024
Copy link
Contributor

@whitequark whitequark left a comment

Choose a reason for hiding this comment

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

Looks okay at a glance

Merged via the queue into main with commit 469dccd Sep 16, 2024
9 checks passed
@Dirbaio Dirbaio deleted the multicast-refactor-features branch September 16, 2024 14:40
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

2 participants