subnet

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Oct 21, 2022 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func FirstIPInSubnet

func FirstIPInSubnet(addr *net.IPNet) (net.IP, error)

firstIPInSubnet gets the first IP in a subnet https://github.com/containers/podman/blob/v4.0.0-rc1/libpod/network/util/ip.go#L36

func GetFreeSubnet

func GetFreeSubnet(n *net.IPNet, usedNetworks []*net.IPNet) (*net.IPNet, error)

GetFreeSubnet try to find a free subnet in the given network

func GetLiveNetworkSubnets

func GetLiveNetworkSubnets() ([]*net.IPNet, error)

func IntersectsWithNetworks

func IntersectsWithNetworks(n *net.IPNet, networklist []*net.IPNet) bool

func LastIPInSubnet

func LastIPInSubnet(addr *net.IPNet) (net.IP, error)

lastIPInSubnet gets the last IP in a subnet https://github.com/containers/podman/blob/v4.0.0-rc1/libpod/network/util/ip.go#L18

Types

This section is empty.

Jump to

Keyboard shortcuts

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