Skip to content

Commit ba47b49

Browse files
Michael ZappaMichael Zappa
authored andcommitted
Enhanced dad set to 1
Signed-off-by: Michael Zappa <[email protected]>
1 parent 2be2960 commit ba47b49

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

plugins/main/bridge/bridge.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -503,6 +503,7 @@ func cmdAdd(args *skel.CmdArgs) error {
503503
// Configure the container hardware address and IP address(es)
504504
if err := netns.Do(func(_ ns.NetNS) error {
505505
if n.EnableDad {
506+
_, _ = sysctl.Sysctl(fmt.Sprintf("/net/ipv6/conf/%s/enhanced_dad", args.IfName), "1")
506507
_, _ = sysctl.Sysctl(fmt.Sprintf("net/ipv6/conf/%s/accept_dad", args.IfName), "1")
507508
} else {
508509
_, _ = sysctl.Sysctl(fmt.Sprintf("net/ipv6/conf/%s/accept_dad", args.IfName), "0")

0 commit comments

Comments
 (0)