iputils

package
v0.0.0-...-f7dd865 Latest Latest
Warning

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

Go to latest
Published: Apr 23, 2024 License: AGPL-3.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NextSubnetIP

func NextSubnetIP(subnet *net.IPNet, ipsInUse []net.IP) (net.IP, error)

NextSubnetIP returns the next available IP address in a given subnet.

func NthSubnetIP

func NthSubnetIP(subnet *net.IPNet, n int) net.IP

NthSubnetIP returns the n'th IP address in a given subnet, where n is a zero-based index, zero being the first available IP address in the subnet.

If n is out of range, NthSubnetIP will return nil.

Types

This section is empty.

Jump to

Keyboard shortcuts

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