Пример #1
0
        public static TAPInterface CreateAndGetTAP(this Emulation emulation, string hostInterfaceName, string name, bool persistent = false)
        {
            var result = new TAPInterface(hostInterfaceName, persistent);

            emulation.HostMachine.AddHostMachineElement(result, name);
            return(result);
        }
Пример #2
0
 public static TAPInterface CreateAndGetTAP(this Emulation emulation, string hostInterfaceName, string name, bool persistent = false)
 {
     var result = new TAPInterface(hostInterfaceName, persistent);
     emulation.HostMachine.AddHostMachineElement(result, name);
     return result;
 }