vmnet

package
v0.4.0 Latest Latest
Warning

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

Go to latest
Published: Feb 2, 2019 License: BSD-3-Clause Imports: 6 Imported by: 12

Documentation

Index

Constants

View Source
const (
	CONFIG_PLIST = "/Library/Preferences/SystemConfiguration/com.apple.vmnet"
	NET_ADDR_KEY = "Shared_Net_Address"
	NET_MASK_KEY = "Shared_Net_Mask"
)
View Source
const (
	DHCPD_LEASES_FILE = "/var/db/dhcpd_leases"
)

Variables

This section is empty.

Functions

func GetIPAddressByMACAddress

func GetIPAddressByMACAddress(mac string) (string, error)

func GetIPAddressByName

func GetIPAddressByName(name string) (string, error)

func GetIPNet

func GetIPNet() (*net.IPNet, error)

func GetNetAddr

func GetNetAddr() (net.IP, error)

func IsExist added in v0.3.0

func IsExist(filename string) bool

IsExist returns whether the filename is exists.

Types

type DHCPEntry

type DHCPEntry struct {
	Name      string
	IPAddress string
	HWAddress string
	ID        string
	Lease     string
}

Jump to

Keyboard shortcuts

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