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

Disable IPv6 functionality in Cobalt on platforms without IPv6 support #4856

Merged
merged 1 commit into from
Feb 12, 2025

Conversation

MSoliankoLuxoft
Copy link
Collaborator

b/394777605

On platforms where IPv6 is not supported, performing the IPv6 reachability check caused a DCHECK failure in development mode.

This change introduces a macro check (SB_HAS(IPV6)) to conditionally execute the DoIPv6Reachability() function only when IPv6 support is available.

If IPv6 is not supported, the state transitions directly to STATE_GET_PARAMETERS, bypassing the unnecessary check.

This prevents erroneous DCHECK failures on platforms without IPv6.

b/394777605

On platforms where IPv6 is not supported, performing the IPv6 reachability check
caused a DCHECK failure in development mode.

This change introduces a macro check (SB_HAS(IPV6)) to conditionally execute
the DoIPv6Reachability() function only when IPv6 support is available.

If IPv6 is not supported, the state transitions directly to STATE_GET_PARAMETERS,
bypassing the unnecessary check.

This prevents erroneous DCHECK failures on platforms without IPv6.

Signed-off-by: MSoliankoLuxoft <[email protected]>
@amurovanyi amurovanyi requested a review from kaidokert February 6, 2025 16:22
@amurovanyi
Copy link
Collaborator

@kaidokert, please review this PR or assign someone who is aware about IPv6 support in Cobalt

Copy link
Member

@kaidokert kaidokert left a comment

Choose a reason for hiding this comment

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

Seems okay as an interim solution on C25

@kaidokert kaidokert merged commit 2ba1733 into youtube:25.lts.1+ Feb 12, 2025
290 of 295 checks passed
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.

3 participants