vmnet

package
v0.0.2-0...-8b542eb Latest Latest
Warning

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

Go to latest
Published: Oct 11, 2016 License: BSD-3-Clause Imports: 6 Imported by: 0

Documentation

Overview

Originally Author is @ailispaw import by https://github.com/ailispaw/xhyvectl/tree/master/vmnet

Originally Author is @ailispaw import by https://github.com/ailispaw/xhyvectl/tree/master/vmnet

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)

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