You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 
Adam Ierymenko 74404f56ee
Actually invoke extended armor
1 year ago
..
AES.cpp Clang-format!!! 2 years ago
AES.hpp Clang-format!!! 2 years ago
AES_aesni.cpp Clang-format!!! 2 years ago
AES_armcrypto.cpp Clang-format!!! 2 years ago
Address.hpp Clang-format!!! 2 years ago
AtomicCounter.hpp Clang-format!!! 2 years ago
Bond.cpp Clang-format!!! 2 years ago
Bond.hpp Clang-format!!! 2 years ago
Buffer.hpp Clang-format!!! 2 years ago
Capability.cpp Clang-format!!! 2 years ago
Capability.hpp Clang-format!!! 2 years ago
CertificateOfMembership.cpp Clang-format!!! 2 years ago
CertificateOfMembership.hpp Clang-format!!! 2 years ago
CertificateOfOwnership.cpp Clang-format!!! 2 years ago
CertificateOfOwnership.hpp Clang-format!!! 2 years ago
Constants.hpp Clang-format!!! 2 years ago
Credential.hpp Clang-format!!! 2 years ago
DNS.hpp Clang-format!!! 2 years ago
Dictionary.hpp Clang-format!!! 2 years ago
ECC.cpp Clang-format!!! 2 years ago
ECC.hpp Clang-format!!! 2 years ago
Hashtable.hpp Clang-format!!! 2 years ago
Identity.cpp Clang-format!!! 2 years ago
Identity.hpp Clang-format!!! 2 years ago
IncomingPacket.cpp Clang-format!!! 2 years ago
IncomingPacket.hpp Clang-format!!! 2 years ago
InetAddress.cpp Clang-format!!! 2 years ago
InetAddress.hpp Clang-format!!! 2 years ago
MAC.hpp Clang-format!!! 2 years ago
Membership.cpp Clang-format!!! 2 years ago
Membership.hpp Clang-format!!! 2 years ago
Metrics.cpp Bug fix in extended armor. 1 year ago
Metrics.hpp Bug fix in extended armor. 1 year ago
MulticastGroup.hpp Clang-format!!! 2 years ago
Multicaster.cpp Clang-format!!! 2 years ago
Multicaster.hpp Clang-format!!! 2 years ago
Mutex.hpp Clang-format!!! 2 years ago
Network.cpp Clang-format!!! 2 years ago
Network.hpp Clang-format!!! 2 years ago
NetworkConfig.cpp Clang-format!!! 2 years ago
NetworkConfig.hpp Clang-format!!! 2 years ago
NetworkController.hpp Clang-format!!! 2 years ago
Node.cpp Clang-format!!! 2 years ago
Node.hpp Clang-format!!! 2 years ago
OutboundMulticast.cpp Clang-format!!! 2 years ago
OutboundMulticast.hpp Clang-format!!! 2 years ago
Packet.cpp Bug fix in extended armor. 1 year ago
Packet.hpp Clang-format!!! 2 years ago
PacketMultiplexer.cpp Clang-format!!! 2 years ago
PacketMultiplexer.hpp Clang-format!!! 2 years ago
Path.cpp Clang-format!!! 2 years ago
Path.hpp Clang-format!!! 2 years ago
Peer.cpp Actually invoke extended armor 1 year ago
Peer.hpp Clang-format!!! 2 years ago
Poly1305.cpp Clang-format!!! 2 years ago
Poly1305.hpp Clang-format!!! 2 years ago
README.md Actual documentation. 9 years ago
Revocation.cpp Clang-format!!! 2 years ago
Revocation.hpp Clang-format!!! 2 years ago
RingBuffer.hpp Clang-format!!! 2 years ago
RuntimeEnvironment.hpp Clang-format!!! 2 years ago
SHA512.cpp Clang-format!!! 2 years ago
SHA512.hpp Clang-format!!! 2 years ago
Salsa20.cpp Clang-format!!! 2 years ago
Salsa20.hpp Clang-format!!! 2 years ago
SelfAwareness.cpp Clang-format!!! 2 years ago
SelfAwareness.hpp Clang-format!!! 2 years ago
SharedPtr.hpp Clang-format!!! 2 years ago
Switch.cpp Clang-format!!! 2 years ago
Switch.hpp Clang-format!!! 2 years ago
Tag.cpp Clang-format!!! 2 years ago
Tag.hpp Clang-format!!! 2 years ago
Topology.cpp Clang-format!!! 2 years ago
Topology.hpp Clang-format!!! 2 years ago
Trace.cpp Clang-format!!! 2 years ago
Trace.hpp Clang-format!!! 2 years ago
Utils.cpp Clang-format!!! 2 years ago
Utils.hpp Clang-format!!! 2 years ago
World.hpp Clang-format!!! 2 years ago

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.