ippool

package
v1.84.2 Latest Latest
Warning

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

Go to latest
Published: Jun 9, 2025 License: BSD-3-Clause Imports: 13 Imported by: 0

Documentation

Overview

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

Index

Constants

This section is empty.

Variables

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

Functions

This section is empty.

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)

Jump to

Keyboard shortcuts

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