networkdriver

package
v0.7.7-0...-35ef0d3 Latest Latest
Warning

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

Go to latest
Published: Jan 31, 2014 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrNetworkOverlapsWithNameservers = errors.New("requested network overlaps with nameserver")
	ErrNetworkOverlaps                = errors.New("requested network overlaps with existing network")
)

Functions

func CheckNameserverOverlaps

func CheckNameserverOverlaps(nameservers []string, toCheck *net.IPNet) error

func CheckRouteOverlaps

func CheckRouteOverlaps(toCheck *net.IPNet) error

func NetworkOverlaps

func NetworkOverlaps(netX *net.IPNet, netY *net.IPNet) bool

Detects overlap between one IPNet and another

func NetworkRange

func NetworkRange(network *net.IPNet) (net.IP, net.IP)

Calculates the first and last IP addresses in an IPNet

func NetworkSize

func NetworkSize(mask net.IPMask) int32

Given a netmask, calculates the number of available hosts

Types

This section is empty.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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