subnet

package
v1.21.0 Latest Latest
Warning

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

Go to latest
Published: Jul 2, 2021 License: Apache-2.0 Imports: 3 Imported by: 35

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func BelongsTo

func BelongsTo(parent *net.IPNet, child *net.IPNet) bool

BelongsTo checks if child is a subnet of parent

func Overlap

func Overlap(l, r *net.IPNet) bool

Overlap checks if two subnets overlap

func SplitInto8

func SplitInto8(parent *net.IPNet) ([]*net.IPNet, error)

SplitInto8 splits the parent IPNet into 8 subnets

Types

This section is empty.

Jump to

Keyboard shortcuts

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