ip

package
v0.0.0-...-cb1b3fc Latest Latest
Warning

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

Go to latest
Published: Sep 22, 2018 License: GPL-3.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ConvertNetmaskToCIDR

func ConvertNetmaskToCIDR(netmask string) int

Types

type IPConfig

type IPConfig struct {
	NIC     string
	IP      string
	Netmask string
}

func NewIP

func NewIP(nic, ip, netmask string) *IPConfig

func (*IPConfig) IsSet

func (c *IPConfig) IsSet() bool

func (*IPConfig) Ping

func (c *IPConfig) Ping() bool

func (*IPConfig) Set

func (c *IPConfig) Set() error

func (*IPConfig) Unset

func (c *IPConfig) Unset() error

Jump to

Keyboard shortcuts

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