Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CanonicalIP ¶
CanonicalIP normalizes an address with or without a prefix while preserving invalid input.
func CanonicalPrefix ¶
CanonicalPrefix normalizes a prefix while preserving invalid input.
Types ¶
type DADClient ¶
type DADClient struct {
// contains filtered or unexported fields
}
DADClient checks address availability on a macvlan parent segment.
func NewDADClient ¶
NewDADClient snapshots host and neighbour addresses for the parent segment.
func (*DADClient) Close ¶
Close releases the temporary probe interface and packet socket. It must not run concurrently with Probe.
type IPAllocator ¶
type IPAllocator struct {
// contains filtered or unexported fields
}
IPAllocator assigns addresses from one subnet. It is not safe for concurrent use.
func NewIPAllocator ¶
NewIPAllocator creates an allocator, excluding subnet boundary addresses. Reserved addresses (for example gateways) may be outside the allocation pool.
func (*IPAllocator) Next ¶
Next reserves and returns the first free address accepted by duplicate detection.