Help us shape the future of Go! Take the 2026 Go Developer Survey

subnet

package
v1.11.0 Latest Latest
Warning

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

Go to latest
Published: Dec 24, 2018 License: Apache-2.0 Imports: 3 Imported by: 0

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