forked from ccll/go-virtualbox
-
Notifications
You must be signed in to change notification settings - Fork 5
/
nic.go
34 lines (29 loc) · 1 KB
/
nic.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
package virtualbox
// NIC represents a virtualized network interface card.
type NIC struct {
Network NICNetwork
Hardware NICHardware
HostInterface string // The host interface name to bind to in 'hostonly' and 'bridged' mode
MacAddr string
}
// NICNetwork represents the type of NIC networks.
type NICNetwork string
const (
NICNetAbsent = NICNetwork("none")
NICNetDisconnected = NICNetwork("null")
NICNetNAT = NICNetwork("nat")
NICNetBridged = NICNetwork("bridged")
NICNetInternal = NICNetwork("intnet")
NICNetHostonly = NICNetwork("hostonly")
NICNetGeneric = NICNetwork("generic")
)
// NICHardware represents the type of NIC hardware.
type NICHardware string
const (
AMDPCNetPCIII = NICHardware("Am79C970A")
AMDPCNetFASTIII = NICHardware("Am79C973")
IntelPro1000MTDesktop = NICHardware("82540EM")
IntelPro1000TServer = NICHardware("82543GC")
IntelPro1000MTServer = NICHardware("82545EM")
VirtIO = NICHardware("virtio")
)