diff --git a/Makefile b/Makefile new file mode 100644 index 000000000..7ae8565a9 --- /dev/null +++ b/Makefile @@ -0,0 +1,6 @@ +all: + +clean: FORCE + rm -rf zerotier-core-crypto/target zerotier-network-hypervisor/target zerotier-system-service/target + +FORCE: diff --git a/zerotier-network-hypervisor/src/util/pool.rs b/zerotier-network-hypervisor/src/util/pool.rs index b86060a5a..c3118402b 100644 --- a/zerotier-network-hypervisor/src/util/pool.rs +++ b/zerotier-network-hypervisor/src/util/pool.rs @@ -29,7 +29,8 @@ struct PoolInner>(F, Mutex>>>); /// When this is dropped the object is returned to the pool or if the pool or is /// dropped if the pool has been dropped. There is also an into_raw() and from_raw() /// functionality that allows conversion to/from naked pointers to O for -/// interoperation with C/C++ APIs. +/// interoperation with C/C++ APIs. This in addition to being as slim as possible is +/// why we implemented our own pool. /// /// Note that pooled objects are not clonable. If you want to share them use Rc<> /// or Arc<>. diff --git a/zerotier-network-hypervisor/src/vl1/peer.rs b/zerotier-network-hypervisor/src/vl1/peer.rs index 079827a0c..4842a295d 100644 --- a/zerotier-network-hypervisor/src/vl1/peer.rs +++ b/zerotier-network-hypervisor/src/vl1/peer.rs @@ -23,7 +23,7 @@ use zerotier_core_crypto::random::next_u64_secure; use zerotier_core_crypto::salsa::Salsa; use zerotier_core_crypto::secret::Secret; -use crate::{VERSION_MAJOR, VERSION_MINOR, VERSION_PROTO, VERSION_REVISION}; +use crate::{VERSION_MAJOR, VERSION_MINOR, VERSION_PROTO, VERSION_REVISION, PacketBuffer}; use crate::defaults::UDP_DEFAULT_MTU; use crate::util::pool::{Pool, PoolFactory}; use crate::vl1::{Dictionary, Endpoint, Identity, InetAddress, Path};