-
Notifications
You must be signed in to change notification settings - Fork 2.4k
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
Slirp4netns with ipv6 set net.ipv6.conf.default.accept_dad=0 #12098
Conversation
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: Luap99 The full list of commands accepted by this bot can be found here. The pull request process is described here
Needs approval from an approver in each of these files:
Approvers can indicate their approval by writing |
Duplicate Address Detection slows the ipv6 setup down for 1-2 seconds. Since slirp4netns is run it is own namespace and not directly routed we can skip this to make the ipv6 address immediately available. We change the default to make sure the slirp tap interface gets the correct value assigned so DAD is disabled for it. Also make sure to change this value back to the original after slirp4netns is ready in case users rely on this sysctl. Fixes containers#11062 Signed-off-by: Paul Holzinger <[email protected]>
@rhatdan @AkihiroSuda PTAL |
LGTM |
Tests are red, but code LGTM |
They look like flakes, I restarted them. |
LGTM and tests are happy |
/lgtm |
What this PR does / why we need it:
Duplicate Address Detection slows the ipv6 setup down for 1-2 seconds.
Since slirp4netns is run it is own namespace and not directly routed
we can skip this to make the ipv6 address immediately available.
We change the default to make sure the slirp tap interface gets the
correct value assigned so DAD is disabled for it.
Also make sure to change this value back to the original after slirp4netns
is ready in case users rely on this sysctl.
How to verify it
run
podman run --network slirp4netns:enable_ipv6=true alpine ip a
and check that afd00::
ipv6 address is in the outputWhich issue(s) this PR fixes:
Fixes #11062
Special notes for your reviewer: