ipv4calc

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Aug 4, 2021 License: AGPL-3.0 Imports: 6 Imported by: 2

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func IPToBinary

func IPToBinary(ip net.IP) uint32

func IPToBinarySTR

func IPToBinarySTR(ip net.IP) string
func IsPtpLink(ip net.IPNet) bool

http://www.ietf.org/rfc/rfc3021.txt point to point

Types

type IPCalc

type IPCalc struct {
	*net.IPNet
}

func New

func New(IPNet interface{}) IPCalc

func (*IPCalc) GetBroadCastIP

func (ipcalc *IPCalc) GetBroadCastIP() net.IP

func (*IPCalc) GetClass

func (ipcalc *IPCalc) GetClass() byte

func (*IPCalc) GetMaxHost

func (ipcalc *IPCalc) GetMaxHost() net.IP

func (*IPCalc) GetMinHost

func (ipcalc *IPCalc) GetMinHost() net.IP

func (*IPCalc) GetNetworkAddr

func (ipcalc *IPCalc) GetNetworkAddr() net.IP

func (*IPCalc) GetValidHosts

func (ipcalc *IPCalc) GetValidHosts() int

func (IPCalc) GetWildcard

func (ipcalc IPCalc) GetWildcard() net.IP

func (IPCalc) LookUp

func (ipcalc IPCalc) LookUp() []string

func (*IPCalc) ToString

func (ipcalc *IPCalc) ToString() string

Jump to

Keyboard shortcuts

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