smegmesh/pkg/ip/types.go
Tim Beatham dbc18bddc6 74-perform-dad
- Performing DAD to check if IPv6 address present before adding
  outselves to mesh
- Changing name from wgmesh to smegmesh
2024-01-01 23:55:50 +00:00

12 lines
183 B
Go

package ip
import (
"net"
"golang.zx2c4.com/wireguard/wgctrl/wgtypes"
)
type IPAllocator interface {
GetIP(key wgtypes.Key, meshId string, collisionCount int) (net.IP, error)
}