public static TapDevice GetTapDevice(string device_name) { TapDevice tap = null; if(OSDependent.OSVersion == OSDependent.OS.Linux) { tap = new LinuxTap(device_name); } else if(OSDependent.OSVersion == OSDependent.OS.Windows) { tap = new WindowsTap(device_name); } else { tap = new cTap(device_name); } return tap; }
public static TapDevice GetTapDevice(string device_name) { TapDevice tap = null; if (OSDependent.OSVersion == OSDependent.OS.Linux) { tap = new LinuxTap(device_name); } else if (OSDependent.OSVersion == OSDependent.OS.Windows) { tap = new WindowsTap(device_name); } else { tap = new cTap(device_name); } return(tap); }