vmnet

package
v0.0.0-...-05992ad Latest Latest
Warning

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

Go to latest
Published: Sep 23, 2016 License: MIT Imports: 7 Imported by: 0

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 GetMACAddressByUUID

func GetMACAddressByUUID(uuid string) (string, error)

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