Joseph Henry 1debe2292d Cleanup. Misc type conversion and signedness fixes před 7 roky
..
Address.hpp 65c07afe05 Copyright updates for 2018. před 8 roky
AtomicCounter.hpp e74cd4b4ef A little more cleanup. před 8 roky
Buffer.hpp 65c07afe05 Copyright updates for 2018. před 8 roky
C25519.cpp beb170e4fb Use X64 ASM ed25519 signatures on Linux/x64, which are about 10X faster. Will matter a lot for network controllers, not so much for other things. před 7 roky
C25519.hpp f3dfd63634 Clean up some old stuff. před 8 roky
Capability.cpp 65c07afe05 Copyright updates for 2018. před 8 roky
Capability.hpp 65c07afe05 Copyright updates for 2018. před 8 roky
CertificateOfMembership.cpp f3dfd63634 Clean up some old stuff. před 8 roky
CertificateOfMembership.hpp f3dfd63634 Clean up some old stuff. před 8 roky
CertificateOfOwnership.cpp 65c07afe05 Copyright updates for 2018. před 8 roky
CertificateOfOwnership.hpp 65c07afe05 Copyright updates for 2018. před 8 roky
Constants.hpp 6a2ba4baca Introduced basic multipath support před 7 roky
Credential.hpp 65c07afe05 Copyright updates for 2018. před 8 roky
Dictionary.hpp 51aadcf901 A few fixes dicatated by valgrind. před 8 roky
Hashtable.hpp fe1fa20c6c Fix build on Intel C/C++ Compiler for Linux. před 8 roky
Identity.cpp f3dfd63634 Clean up some old stuff. před 8 roky
Identity.hpp f3dfd63634 Clean up some old stuff. před 8 roky
IncomingPacket.cpp 6a2ba4baca Introduced basic multipath support před 7 roky
IncomingPacket.hpp 65c07afe05 Copyright updates for 2018. před 8 roky
InetAddress.cpp 40a9ebd078 GitHub issue #675 před 7 roky
InetAddress.hpp 40a9ebd078 GitHub issue #675 před 7 roky
MAC.hpp 65c07afe05 Copyright updates for 2018. před 8 roky
Membership.cpp 65c07afe05 Copyright updates for 2018. před 8 roky
Membership.hpp 65c07afe05 Copyright updates for 2018. před 8 roky
MulticastGroup.hpp 65c07afe05 Copyright updates for 2018. před 8 roky
Multicaster.cpp 6a2ba4baca Introduced basic multipath support před 7 roky
Multicaster.hpp d3d58ba8a7 Add support for designated multicast replicators to Multicaster::send(). před 8 roky
Mutex.hpp 6d8e1e8783 More cleanup of old stuff. před 8 roky
Network.cpp c908b9f67a Add anchor and multicast hub address field to new multicast enabled ad-hoc address format. před 7 roky
Network.hpp 6d8e1e8783 More cleanup of old stuff. před 8 roky
NetworkConfig.cpp f7019d9e80 Tie up the rest of hub and spoke designated replicator multicast mode. před 8 roky
NetworkConfig.hpp f7019d9e80 Tie up the rest of hub and spoke designated replicator multicast mode. před 8 roky
NetworkController.hpp 65c07afe05 Copyright updates for 2018. před 8 roky
Node.cpp 6a2ba4baca Introduced basic multipath support před 7 roky
Node.hpp 6a2ba4baca Introduced basic multipath support před 7 roky
OutboundMulticast.cpp 65c07afe05 Copyright updates for 2018. před 8 roky
OutboundMulticast.hpp 939ab43ceb Do not send to origin in second buffered multicast path. před 8 roky
Packet.cpp 5bc4399a58 cleanup před 8 roky
Packet.hpp f7019d9e80 Tie up the rest of hub and spoke designated replicator multicast mode. před 8 roky
Path.cpp 65c07afe05 Copyright updates for 2018. před 8 roky
Path.hpp 1debe2292d Cleanup. Misc type conversion and signedness fixes před 7 roky
Peer.cpp 1debe2292d Cleanup. Misc type conversion and signedness fixes před 7 roky
Peer.hpp 6a2ba4baca Introduced basic multipath support před 7 roky
Poly1305.cpp b9e1d53d7a Minor cleanup. před 8 roky
Poly1305.hpp 65c07afe05 Copyright updates for 2018. před 8 roky
README.md 8a2ff0b31e Actual documentation. před 9 roky
Revocation.cpp 65c07afe05 Copyright updates for 2018. před 8 roky
Revocation.hpp 65c07afe05 Copyright updates for 2018. před 8 roky
RingBuffer.hpp 1debe2292d Cleanup. Misc type conversion and signedness fixes před 7 roky
RuntimeEnvironment.hpp 7e7723e98f A small memory use reduction. před 8 roky
SHA512.cpp beb170e4fb Use X64 ASM ed25519 signatures on Linux/x64, which are about 10X faster. Will matter a lot for network controllers, not so much for other things. před 7 roky
SHA512.hpp 65c07afe05 Copyright updates for 2018. před 8 roky
Salsa20.cpp a8ced184dc Some code cleanup and make sure any type punning is guarded with ZT_NO_TYPE_PUNNING. před 8 roky
Salsa20.hpp 41c187ba12 Another very small crypto optimization. před 8 roky
SelfAwareness.cpp 65c07afe05 Copyright updates for 2018. před 8 roky
SelfAwareness.hpp 65c07afe05 Copyright updates for 2018. před 8 roky
SharedPtr.hpp 74f2b78c04 Refactor some potentially unsafe SharedPtr<> code. před 7 roky
Switch.cpp 6a2ba4baca Introduced basic multipath support před 7 roky
Switch.hpp 6d8e1e8783 More cleanup of old stuff. před 8 roky
Tag.cpp 65c07afe05 Copyright updates for 2018. před 8 roky
Tag.hpp 65c07afe05 Copyright updates for 2018. před 8 roky
Topology.cpp 74f2b78c04 Refactor some potentially unsafe SharedPtr<> code. před 7 roky
Topology.hpp 6a2ba4baca Introduced basic multipath support před 7 roky
Trace.cpp 6a2ba4baca Introduced basic multipath support před 7 roky
Trace.hpp 6a2ba4baca Introduced basic multipath support před 7 roky
Utils.cpp 65c07afe05 Copyright updates for 2018. před 8 roky
Utils.hpp fe1fa20c6c Fix build on Intel C/C++ Compiler for Linux. před 8 roky
World.hpp f3dfd63634 Clean up some old stuff. před 8 roky

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.