예제 #1
0
 public VirtualEthernet(NetworkType netType, string address, EthernetDeviceType ethType)
 {
     this.netType = netType;
     this.address = address;
     this.ethType = ethType;
 }
예제 #2
0
 public static string EthernetDeviceTypeToString(EthernetDeviceType type)
 {
     switch (type) {
     case EthernetDeviceType.PCnet:
         return "vlance";
     case EthernetDeviceType.VMXnet:
         return "vmxnet";
     case EthernetDeviceType.E1000:
         return "e1000";
     default:
         return null;
     }
 }