Skip to content

Keep IPv6 subnet setup valid through its assertion - #15196

Open
copybara-service[bot] wants to merge 1 commit into
masterfrom
test/cl991804473
Open

copybara-service[bot] wants to merge 1 commit into
masterfrom
test/cl991804473

Conversation

@copybara-service

Copy link
Copy Markdown

Keep IPv6 subnet setup valid through its assertion

JoinSubnet, added in 339d266, leaves its address on the loopback interface, so its second socket parameter fails setup with EEXIST. A checkpoint after adding the address also replaces network configuration: the bind assertion can then pass without its prerequisite subnet, and checked cleanup finds that the address is already gone.

Require successful setup and remove the address on scope exit. Keep this temporary network configuration outside cooperative checkpoints, then checkpoint the still-open socket after cleanup. Both socket parameters retain the original bind assertion and report setup or cleanup failures.

Assisted-by: Codex

FUTURE_COPYBARA_INTEGRATE_REVIEW=#15124 from tamird:netlink-test-address-cleanup a2d673b

@copybara-service copybara-service Bot added the exported Issue was exported automatically label Oct 1, 2026
JoinSubnet, added in 339d266, leaves its address on the loopback interface, so its second socket parameter fails setup with EEXIST. A checkpoint after adding the address also replaces network configuration: the bind assertion can then pass without its prerequisite subnet, and checked cleanup finds that the address is already gone.

Require successful setup and remove the address on scope exit. Keep this temporary network configuration outside cooperative checkpoints, then checkpoint the still-open socket after cleanup. Both socket parameters retain the original bind assertion and report setup or cleanup failures.

Assisted-by: Codex

<!-- codex-thread: 01a0680f-bbf5-7511-95f7-4414f4e10d2e -->

FUTURE_COPYBARA_INTEGRATE_REVIEW=#15124 from tamird:netlink-test-address-cleanup a2d673b
PiperOrigin-RevId: 991804473
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

exported Issue was exported automatically

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant