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

IGMP version higher than net.inet.igmp.default_version #237

Open
2 tasks done
etihwo opened this issue Feb 9, 2025 · 0 comments
Open
2 tasks done

IGMP version higher than net.inet.igmp.default_version #237

etihwo opened this issue Feb 9, 2025 · 0 comments
Labels
upstream Third party issue

Comments

@etihwo
Copy link

etihwo commented Feb 9, 2025

Important notices

Before you add a new report, we ask you kindly to acknowledge the following:

Describe the bug

The tunable net.inet.igmp.default_version has not effect on the IGMP version used on interfaces. The problem was also present in 24.7.

Tip: to validate your setup was working with the previous version, use opnsense-revert (https://docs.opnsense.org/manual/opnsense_tools.html#opnsense-revert)

To Reproduce

Steps to reproduce the behavior:

  1. Go to 'System: Settings: Tunables' and set 2 for net.inet.igmp.default_version
  2. Apply settings and reboot to be sure that change is taken into account
  3. Open a shell and run sysctl net.inet.igmp to see that default_version is 2
  4. Run ifmcstat -f inet to notice that igmpv3 is indicated for each interface

Expected behavior

When runing the command ifmcstat -f inet, the igmp version should be less or equal than the net.inet.igmp.default_version

Describe alternatives you considered

I have applied the commit freebsd/freebsd-src@b94ec00 as this topic has been discussed in the main branch of FreeBSD. However, it is not sufficient and ifmcstat -f inet still indicate version 3.

In addition to the commit above, I have changed VNET_DEFINE_STATIC(int, igmp_default_version) = IGMP_VERSION_2; in igmp.c. This modification allows:

  • to have IGMPv2 after a reboot
  • to switch to IGMPv3 at runtime if net.inet.igmp.default_version is set to 3

However, this modification does not allow:

  • to switch from IGMPv3 to IGMPv2 at runtime

Environment

OPNsense 25.1 (amd64)

@AdSchellevis AdSchellevis added the upstream Third party issue label Feb 9, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
upstream Third party issue
Development

No branches or pull requests

2 participants