Skip to content

Conversation

@T-X
Copy link
Contributor

@T-X T-X commented Jan 9, 2023

This adds two small fixes to mldq6. One fixes the usage of "--sleep ". The other adjusts and fixes the default query interval.

The third patch adds support for MLDv2 Queries. And sets MLDv2 as the default. (It seems that in the IETF PIM working group there are efforts to deprecate IGMPv2/MLDv1, so defaulting to the newer MLDv2 makes more sense to me.)

T-X added 3 commits January 8, 2023 16:00
Like the short option, the long option of --sleep|-z should have a
required argument of seconds to sleep.

Signed-off-by: Linus Lüssing <[email protected]>
The default MLD querier interval according to RFC2710 and RFC3810 is 125
seconds, not 120.

Signed-off-by: Linus Lüssing <[email protected]>
Next to the already implemented MLDv1 Queries (RFC2710) this now
implements MLDv2 Queries (RFC3810). And uses MLDv2 Queries by default,
unless specified otherwise with the new --mld-version|-V option.

The MLDv2 QQIC is calculated internally from the --sleep option (which
defaults to 125). Other than that the MLDv2 Query S-Flag (--mld-sflag|-M)
and QRV (--mld-qrv|-R) values can be configured.

MLDv2 Query messages for "Multicast Address and Source Specific Queries"
are not yet implemented and still to do. Therefore the "Number of Sources"
field is not configurable yet either.

Signed-off-by: Linus Lüssing <[email protected]>
@T-X
Copy link
Contributor Author

T-X commented May 5, 2023

What I guess might look a bit more complicated in this PR is the encoding of the Querier's Query Interval Code (QQIC). Ideally I would have liked to find a one-liner to calculate the inverse of the "QQI = (mant | 0x10) << (exp + 3)" specified in RFC3810. I looked at the PIM6SD code (https://github.com/troglobit/pim6sd/blob/master/src/mld6v2.c#L396), however found that a bit complicated, so I tried to find a "simpler" version here. If anyone finds an even simpler way, let me know.

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.

1 participant