tailscale.comtailscale.com/cmd/natc/ippool Index | Files

package ippool

import "tailscale.com/cmd/natc/ippool"

ippool implements IP address storage, creation, and retrieval for cmd/natc

Index

Variables

var ErrNoIPsAvailable = errors.New("no IPs available")

Types

type IPPool

type IPPool struct {
	IPSet *netipx.IPSet
	// contains filtered or unexported fields
}

func (*IPPool) DomainForIP

func (ipp *IPPool) DomainForIP(from tailcfg.NodeID, addr netip.Addr) (string, bool)

func (*IPPool) IPForDomain

func (ipp *IPPool) IPForDomain(from tailcfg.NodeID, domain string) (netip.Addr, error)

Source Files

ippool.go ipx.go

Version
v1.84.0 (latest)
Published
May 21, 2025
Platform
linux/amd64
Imports
13 packages
Last checked
1 day ago

Tools for package owners.