Enhanced dad set to 1
Signed-off-by: Michael Zappa <Michael.Zappa@stateless.net>
This commit is contained in:
parent
2be2960897
commit
ba47b49609
@ -503,6 +503,7 @@ func cmdAdd(args *skel.CmdArgs) error {
|
||||
// Configure the container hardware address and IP address(es)
|
||||
if err := netns.Do(func(_ ns.NetNS) error {
|
||||
if n.EnableDad {
|
||||
_, _ = sysctl.Sysctl(fmt.Sprintf("/net/ipv6/conf/%s/enhanced_dad", args.IfName), "1")
|
||||
_, _ = sysctl.Sysctl(fmt.Sprintf("net/ipv6/conf/%s/accept_dad", args.IfName), "1")
|
||||
} else {
|
||||
_, _ = sysctl.Sysctl(fmt.Sprintf("net/ipv6/conf/%s/accept_dad", args.IfName), "0")
|
||||
|
Loading…
x
Reference in New Issue
Block a user