Skip to content

Commit

Permalink
Add ndisc_notify in ipvlan for ipv6 ndp
Browse files Browse the repository at this point in the history
  • Loading branch information
s1061123 committed Nov 13, 2023
1 parent dad27e9 commit e894c86
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions plugins/main/ipvlan/ipvlan.go
Original file line number Diff line number Diff line change
Expand Up @@ -293,6 +293,7 @@ func cmdAdd(args *skel.CmdArgs) error {

err = netns.Do(func(_ ns.NetNS) error {
_, _ = sysctl.Sysctl(fmt.Sprintf("net/ipv4/conf/%s/arp_notify", args.IfName), "1")
_, _ = sysctl.Sysctl(fmt.Sprintf("net/ipv6/conf/%s/ndisc_notify", args.IfName), "1")

return ipam.ConfigureIface(args.IfName, result)
})
Expand Down

0 comments on commit e894c86

Please sign in to comment.