Skip to content

Commit

Permalink
Merge pull request #479 from Nordix/issue-478
Browse files Browse the repository at this point in the history
plugins/meta/sbr: Adjusted ipv6 address mask to /128
  • Loading branch information
jellonek authored Apr 29, 2020
2 parents 5af9ff4 + 02bfece commit 6957f6c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions plugins/meta/sbr/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -237,7 +237,7 @@ func doRoutes(ipCfgs []*current.IPConfig, origRoutes []*types.Route, iface strin
if ipCfg.Version == "4" {
src.Mask = net.CIDRMask(32, 32)
} else {
src.Mask = net.CIDRMask(64, 64)
src.Mask = net.CIDRMask(128, 128)
}

log.Printf("Source to use %s", src.String())
Expand All @@ -258,7 +258,7 @@ func doRoutes(ipCfgs []*current.IPConfig, origRoutes []*types.Route, iface strin
dest.Mask = net.CIDRMask(0, 32)
} else {
dest.IP = net.IPv6zero
dest.Mask = net.CIDRMask(0, 64)
dest.Mask = net.CIDRMask(0, 128)
}

route := netlink.Route{
Expand Down

0 comments on commit 6957f6c

Please sign in to comment.