Windows: disable and enable tap to allow changes to take effect.

This commit is contained in:
Adam Ierymenko 2013-08-26 17:48:47 -04:00
parent 487eb17ec0
commit 4a370c5f3f
2 changed files with 52 additions and 8 deletions

View file

@ -219,7 +219,8 @@ private:
char _tapReadBuf[ZT_IF_MTU + 32];
HANDLE _injectSemaphore;
GUID _deviceGuid;
std::string _myDeviceInstanceId;
std::string _myDeviceInstanceId; // NetCfgInstanceId, a GUID
std::string _myDeviceInstanceIdPath; // DeviceInstanceID, another kind of "instance ID"
std::queue< std::pair< Array<char,ZT_IF_MTU + 32>,unsigned int > > _injectPending;
Mutex _injectPending_m;
volatile bool _run;