Help us shape the future of Go! Take the 2026 Go Developer Survey

ipam

package
v0.1.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 21, 2026 License: AGPL-3.0 Imports: 2 Imported by: 0

Documentation

Overview

Package ipam allocates overlay addresses from the mesh prefix.

Index

Constants

This section is empty.

Variables

View Source
var ErrExhausted = errors.New("ipam: address space exhausted")

ErrExhausted is returned when every usable address in the prefix is taken.

Functions

func Allocate

func Allocate(prefix netip.Prefix, used func(netip.Addr) bool) (netip.Addr, error)

Allocate returns the lowest free IPv4 address in prefix, skipping the network and broadcast addresses and anything for which used returns true.

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL