mirror of
https://github.com/ZeroTier/ZeroTierOne
synced 2025-08-20 13:24:09 -07:00
Testnet work... getting there!
This commit is contained in:
parent
0a195e7bc0
commit
4fbb098daa
11 changed files with 398 additions and 149 deletions
|
@ -53,10 +53,6 @@ EthernetTap *TestEthernetTapFactory::open(
|
|||
Mutex::Lock _l(_taps_m);
|
||||
_taps.insert(tap);
|
||||
}
|
||||
{
|
||||
Mutex::Lock _l(_tapsByDevice_m);
|
||||
_tapsByDevice[tap->deviceName()] = tap;
|
||||
}
|
||||
{
|
||||
Mutex::Lock _l(_tapsByMac_m);
|
||||
_tapsByMac[mac] = tap;
|
||||
|
@ -73,10 +69,6 @@ void TestEthernetTapFactory::close(EthernetTap *tap,bool destroyPersistentDevice
|
|||
Mutex::Lock _l(_taps_m);
|
||||
_taps.erase(tapp);
|
||||
}
|
||||
{
|
||||
Mutex::Lock _l(_tapsByDevice_m);
|
||||
_tapsByDevice.erase(tapp->deviceName());
|
||||
}
|
||||
{
|
||||
Mutex::Lock _l(_tapsByMac_m);
|
||||
_tapsByMac.erase(tapp->mac());
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue