Adam Ierymenko 91c9f4cb20 Fix TRACE and CLUSTER builds. 8 jaren geleden
..
Address.hpp 31db768e4d A bit of code cleanup. 9 jaren geleden
Array.hpp 4e4fd51117 boring doc stuff 10 jaren geleden
AtomicCounter.hpp 4931e44998 Implement "weak pointer" behavior on Topology Path canonicalization hash table. 9 jaren geleden
Buffer.hpp 2bf9145ae6 Outgoing side of packet counter for link quality reporting. Also some cleanup and a cluster mode build fix. 8 jaren geleden
C25519.cpp 38433e85bf More little stuff in crypto code. 11 jaren geleden
C25519.hpp 4e4fd51117 boring doc stuff 10 jaren geleden
Capability.cpp e4896b257f Add thread PTR that gets passed through the entire ZT core call stack and then passed to handler functions resulting from a call. 8 jaren geleden
Capability.hpp e4896b257f Add thread PTR that gets passed through the entire ZT core call stack and then passed to handler functions resulting from a call. 8 jaren geleden
CertificateOfMembership.cpp e4896b257f Add thread PTR that gets passed through the entire ZT core call stack and then passed to handler functions resulting from a call. 8 jaren geleden
CertificateOfMembership.hpp e4896b257f Add thread PTR that gets passed through the entire ZT core call stack and then passed to handler functions resulting from a call. 8 jaren geleden
CertificateOfOwnership.cpp e4896b257f Add thread PTR that gets passed through the entire ZT core call stack and then passed to handler functions resulting from a call. 8 jaren geleden
CertificateOfOwnership.hpp e4896b257f Add thread PTR that gets passed through the entire ZT core call stack and then passed to handler functions resulting from a call. 8 jaren geleden
CertificateOfRepresentation.hpp 010d0a7d56 Docs and a bit of cleanup. In particular ALL makes no sense for revocations because they have IDs. In that case you would just revoke the COM. 8 jaren geleden
Cluster.cpp 91c9f4cb20 Fix TRACE and CLUSTER builds. 8 jaren geleden
Cluster.hpp 29ec7bf3a2 Add more specific check in source==self case instead of dumping it. 9 jaren geleden
Constants.hpp 0f3148bda2 Roots need to respond to lots of WHOISes 8 jaren geleden
Dictionary.hpp c6a39ed927 Fixes for possible ARM issues, cleanup, fix for spurious meaningless exceptions on NETWORK_CONFIG_REQUEST 8 jaren geleden
Hashtable.hpp 8a2e8bd585 Rework how paths are set as remote cluster preferred. The code is now clearer and cluster preference indications are now very sticky as they should be. 9 jaren geleden
Identity.cpp 43182f8f57 Docs, code cleanup, and protect the extra new fields of HELLO with encryption as a precaution. 9 jaren geleden
Identity.hpp 7036831203 Sign Dictionary in doNETWORK_CONFIG_REQUEST. 9 jaren geleden
IncomingPacket.cpp e4896b257f Add thread PTR that gets passed through the entire ZT core call stack and then passed to handler functions resulting from a call. 8 jaren geleden
IncomingPacket.hpp e4896b257f Add thread PTR that gets passed through the entire ZT core call stack and then passed to handler functions resulting from a call. 8 jaren geleden
InetAddress.cpp 6a50291aa2 Fix the case for InetAddress::containsAddress for IPv6 route of :: 9 jaren geleden
InetAddress.hpp 25f9c294dc Small bug fix and warning removal. 9 jaren geleden
MAC.hpp 4e4fd51117 boring doc stuff 10 jaren geleden
Membership.cpp e4896b257f Add thread PTR that gets passed through the entire ZT core call stack and then passed to handler functions resulting from a call. 8 jaren geleden
Membership.hpp e4896b257f Add thread PTR that gets passed through the entire ZT core call stack and then passed to handler functions resulting from a call. 8 jaren geleden
MulticastGroup.hpp dbf3e6c3c9 Dead code removal. 9 jaren geleden
Multicaster.cpp e4896b257f Add thread PTR that gets passed through the entire ZT core call stack and then passed to handler functions resulting from a call. 8 jaren geleden
Multicaster.hpp e4896b257f Add thread PTR that gets passed through the entire ZT core call stack and then passed to handler functions resulting from a call. 8 jaren geleden
Mutex.hpp 4e4fd51117 boring doc stuff 10 jaren geleden
Network.cpp e4896b257f Add thread PTR that gets passed through the entire ZT core call stack and then passed to handler functions resulting from a call. 8 jaren geleden
Network.hpp e4896b257f Add thread PTR that gets passed through the entire ZT core call stack and then passed to handler functions resulting from a call. 8 jaren geleden
NetworkConfig.cpp 10185e92fa Certificate of ownership -- used to secure against IP address spoofing, especially for IPv4 and regular IPv6. 8 jaren geleden
NetworkConfig.hpp 10185e92fa Certificate of ownership -- used to secure against IP address spoofing, especially for IPv4 and regular IPv6. 8 jaren geleden
NetworkController.hpp 5e6a4e5f5e Send revocations automatically on deauth for instant kill, also fix some issues with the RP. 8 jaren geleden
Node.cpp 91c9f4cb20 Fix TRACE and CLUSTER builds. 8 jaren geleden
Node.hpp e4896b257f Add thread PTR that gets passed through the entire ZT core call stack and then passed to handler functions resulting from a call. 8 jaren geleden
NonCopyable.hpp 4e4fd51117 boring doc stuff 10 jaren geleden
OutboundMulticast.cpp e4896b257f Add thread PTR that gets passed through the entire ZT core call stack and then passed to handler functions resulting from a call. 8 jaren geleden
OutboundMulticast.hpp e4896b257f Add thread PTR that gets passed through the entire ZT core call stack and then passed to handler functions resulting from a call. 8 jaren geleden
Packet.cpp 78ef2c5f16 Windows build fixes, app about text revisions. 8 jaren geleden
Packet.hpp e10325e133 GitHub issue #461 -- plus a bit of cleanup and optimization 8 jaren geleden
Path.cpp e4896b257f Add thread PTR that gets passed through the entire ZT core call stack and then passed to handler functions resulting from a call. 8 jaren geleden
Path.hpp e4896b257f Add thread PTR that gets passed through the entire ZT core call stack and then passed to handler functions resulting from a call. 8 jaren geleden
Peer.cpp 91c9f4cb20 Fix TRACE and CLUSTER builds. 8 jaren geleden
Peer.hpp e4896b257f Add thread PTR that gets passed through the entire ZT core call stack and then passed to handler functions resulting from a call. 8 jaren geleden
Poly1305.cpp c952fbbd8d Only enable 128-bit Poly1305 on X86_64 right now. Has compilation issues on ARM, but the 64-bit version should be fine. 10 jaren geleden
Poly1305.hpp 4e4fd51117 boring doc stuff 10 jaren geleden
README.md 8a2ff0b31e Actual documentation. 9 jaren geleden
Revocation.cpp e4896b257f Add thread PTR that gets passed through the entire ZT core call stack and then passed to handler functions resulting from a call. 8 jaren geleden
Revocation.hpp e4896b257f Add thread PTR that gets passed through the entire ZT core call stack and then passed to handler functions resulting from a call. 8 jaren geleden
RuntimeEnvironment.hpp 98152d974a More cleanup and removal of DeferredPackets, will do the latter in a more elegant way. 9 jaren geleden
SHA512.cpp 4e4fd51117 boring doc stuff 10 jaren geleden
SHA512.hpp 4e4fd51117 boring doc stuff 10 jaren geleden
Salsa20.cpp 43182f8f57 Docs, code cleanup, and protect the extra new fields of HELLO with encryption as a precaution. 9 jaren geleden
Salsa20.hpp 43182f8f57 Docs, code cleanup, and protect the extra new fields of HELLO with encryption as a precaution. 9 jaren geleden
SelfAwareness.cpp e4896b257f Add thread PTR that gets passed through the entire ZT core call stack and then passed to handler functions resulting from a call. 8 jaren geleden
SelfAwareness.hpp e4896b257f Add thread PTR that gets passed through the entire ZT core call stack and then passed to handler functions resulting from a call. 8 jaren geleden
SharedPtr.hpp 4931e44998 Implement "weak pointer" behavior on Topology Path canonicalization hash table. 9 jaren geleden
Switch.cpp 91c9f4cb20 Fix TRACE and CLUSTER builds. 8 jaren geleden
Switch.hpp e4896b257f Add thread PTR that gets passed through the entire ZT core call stack and then passed to handler functions resulting from a call. 8 jaren geleden
Tag.cpp e4896b257f Add thread PTR that gets passed through the entire ZT core call stack and then passed to handler functions resulting from a call. 8 jaren geleden
Tag.hpp e4896b257f Add thread PTR that gets passed through the entire ZT core call stack and then passed to handler functions resulting from a call. 8 jaren geleden
Topology.cpp e4896b257f Add thread PTR that gets passed through the entire ZT core call stack and then passed to handler functions resulting from a call. 8 jaren geleden
Topology.hpp e4896b257f Add thread PTR that gets passed through the entire ZT core call stack and then passed to handler functions resulting from a call. 8 jaren geleden
Utils.cpp 42f28bce52 Cleanup and make moons (federated roots) a little easier to deal with. 9 jaren geleden
Utils.hpp 1d39be61b2 ZeroTier now has link quality measurement. We are not using this yet but decided to put it in to prep for future QoS support and SD-WAN stuff. 8 jaren geleden
World.hpp 4b11566505 Integrate moon concept into http config bus, and clean up that code quite a bit. 9 jaren geleden

README.md

ZeroTier Network Hypervisor Core

This directory contains the real ZeroTier: a completely OS-independent global virtual Ethernet switch engine. This is where the magic happens.

Give it wire packets and it gives you Ethernet packets, and vice versa. The core contains absolutely no actual I/O, port configuration, or other OS-specific code (except Utils::getSecureRandom()). It provides a simple C API via /include/ZeroTierOne.h. It's designed to be small and maximally portable for future use on small embedded and special purpose systems.

Code in here follows these guidelines:

  • Keep it minimal, especially in terms of code footprint and memory use.
  • There should be no OS-dependent code here unless absolutely necessary (e.g. getSecureRandom).
  • If it's not part of the core virtual Ethernet switch it does not belong here.
  • No C++11 or C++14 since older and embedded compilers don't support it yet and this should be maximally portable.
  • Minimize the use of complex C++ features since at some point we might end up "minus-minus'ing" this code if doing so proves necessary to port to tiny embedded systems.