Bugfix for hang in VirtualTap after calling getRoutes() and attempting to leave(), bugfix for potential memory leak if packet was rejected from stack

This commit is contained in:
Joseph Henry
2019-01-27 22:43:42 -08:00
parent 2fde6158ed
commit d715ebd461
3 changed files with 66 additions and 61 deletions

View File

@@ -57,7 +57,8 @@ namespace ZeroTier {
class Mutex;
/**
* emulates an Ethernet tap device
* A virtual tap device. The ZeroTier core service creates one of these for each
* virtual network joined. It will be destroyed upon leave().
*/
class VirtualTap
{
@@ -210,9 +211,9 @@ public:
std::vector<MulticastGroup> _multicastGroups;
Mutex _multicastGroups_m;
Mutex _ips_m, _tcpconns_m, _rx_buf_m, _close_m;
Mutex _ips_m;
struct zts_network_details nd;
//struct zts_network_details nd;
/*
* Timestamp of last run of housekeeping