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

dhclient: ensure DHCPv6 address is routable if using non-multicast address #2845

Merged
merged 2 commits into from
Jan 11, 2024

Conversation

hugelgupf
Copy link
Member

@hugelgupf hugelgupf commented Jan 11, 2024

This de-flakes some Google-internal netboot testing which uses manually configured unicast IPv6 addresses.

…dress

Signed-off-by: Chris Koch <chrisko@google.com>
@hugelgupf hugelgupf marked this pull request as ready for review January 11, 2024 02:53
Copy link

codecov bot commented Jan 11, 2024

Codecov Report

Attention: 28 lines in your changes are missing coverage. Please review.

Comparison is base (df70864) 75.89% compared to head (fb66fc0) 75.71%.

Files Patch % Lines
pkg/dhclient/dhclient.go 0.00% 28 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##             main    #2845      +/-   ##
==========================================
- Coverage   75.89%   75.71%   -0.19%     
==========================================
  Files         423      423              
  Lines       42744    42769      +25     
==========================================
- Hits        32442    32381      -61     
- Misses      10302    10388      +86     
Flag Coverage Δ
.-amd64 67.87% <ø> (ø)
cmds/...-amd64 71.71% <ø> (+0.01%) ⬆️
integration/generic-tests/...-amd64 0.00% <ø> (ø)
integration/generic-tests/...-arm 0.00% <ø> (ø)
integration/generic-tests/...-arm64 0.00% <ø> (ø)
integration/gotests/...-amd64 73.96% <0.00%> (-0.25%) ⬇️
integration/gotests/...-arm64 74.90% <0.00%> (-0.13%) ⬇️
pkg/...-amd64 76.11% <0.00%> (-0.06%) ⬇️

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@hugelgupf hugelgupf requested review from 10000TB and a team January 11, 2024 03:08
Copy link
Member

@rminnich rminnich left a comment

Choose a reason for hiding this comment

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

Wow, I get so confused by ip6 ;-)

@hugelgupf hugelgupf merged commit 0f77722 into u-root:main Jan 11, 2024
24 of 25 checks passed
@hugelgupf hugelgupf deleted the route-ready branch January 11, 2024 06:04
case <-ctx.Done():
return nil, errors.New("timeout after waiting for a non-tentative IPv6 address")
}
}

// If user specified a non-multicast address, make sure it's routable before we start.
if c.V6ServerAddr != nil {
Copy link
Member

@10000TB 10000TB Jan 11, 2024

Choose a reason for hiding this comment

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

BTW, what are the practical cases where users are specifying this these days ?

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.

None yet

3 participants