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.
 
 
 
 
 
 
Joseph Henry c4af2d79c5
Don't count bridges towards multicast limit. Send to all bridges
9 months ago
..
AES.cpp clang-format 9 months ago
AES.hpp clang-format 9 months ago
AES_aesni.cpp clang-format 9 months ago
AES_armcrypto.cpp clang-format 9 months ago
Address.hpp clang-format 9 months ago
AtomicCounter.hpp clang-format 9 months ago
Bond.cpp clang-format 9 months ago
Bond.hpp clang-format 9 months ago
Buffer.hpp clang-format 9 months ago
C25519.cpp clang-format 9 months ago
C25519.hpp clang-format 9 months ago
Capability.cpp clang-format 9 months ago
Capability.hpp clang-format 9 months ago
CertificateOfMembership.cpp clang-format 9 months ago
CertificateOfMembership.hpp clang-format 9 months ago
CertificateOfOwnership.cpp clang-format 9 months ago
CertificateOfOwnership.hpp clang-format 9 months ago
Constants.hpp clang-format 9 months ago
Credential.hpp clang-format 9 months ago
DNS.hpp clang-format 9 months ago
Dictionary.hpp clang-format 9 months ago
Hashtable.hpp clang-format 9 months ago
Identity.cpp clang-format 9 months ago
Identity.hpp clang-format 9 months ago
IncomingPacket.cpp clang-format 9 months ago
IncomingPacket.hpp clang-format 9 months ago
InetAddress.cpp clang-format 9 months ago
InetAddress.hpp clang-format 9 months ago
MAC.hpp clang-format 9 months ago
Membership.cpp clang-format 9 months ago
Membership.hpp clang-format 9 months ago
Metrics.cpp one more clang-format fix 9 months ago
Metrics.hpp stop clang-format from breaking the build by sorting headers here 9 months ago
MulticastGroup.hpp clang-format 9 months ago
Multicaster.cpp Don't count bridges towards multicast limit. Send to all bridges 9 months ago
Multicaster.hpp clang-format 9 months ago
Mutex.hpp clang-format 9 months ago
Network.cpp clang-format 9 months ago
Network.hpp clang-format 9 months ago
NetworkConfig.cpp clang-format 9 months ago
NetworkConfig.hpp clang-format 9 months ago
NetworkController.hpp clang-format 9 months ago
Node.cpp clang-format 9 months ago
Node.hpp clang-format 9 months ago
OutboundMulticast.cpp clang-format 9 months ago
OutboundMulticast.hpp clang-format 9 months ago
Packet.cpp clang-format 9 months ago
Packet.hpp clang-format 9 months ago
PacketMultiplexer.cpp clang-format 9 months ago
PacketMultiplexer.hpp Simplify packet critical path. Plus more platform fixes 2 years ago
Path.cpp clang-format 9 months ago
Path.hpp clang-format 9 months ago
Peer.cpp clang-format 9 months ago
Peer.hpp clang-format 9 months ago
Poly1305.cpp clang-format 9 months ago
Poly1305.hpp clang-format 9 months ago
README.md Actual documentation. 9 years ago
Revocation.cpp clang-format 9 months ago
Revocation.hpp clang-format 9 months ago
RingBuffer.hpp clang-format 9 months ago
RuntimeEnvironment.hpp clang-format 9 months ago
SHA512.cpp clang-format 9 months ago
SHA512.hpp clang-format 9 months ago
Salsa20.cpp clang-format 9 months ago
Salsa20.hpp clang-format 9 months ago
SelfAwareness.cpp clang-format 9 months ago
SelfAwareness.hpp clang-format 9 months ago
SharedPtr.hpp clang-format 9 months ago
Switch.cpp clang-format 9 months ago
Switch.hpp clang-format 9 months ago
Tag.cpp clang-format 9 months ago
Tag.hpp clang-format 9 months ago
Topology.cpp clang-format 9 months ago
Topology.hpp clang-format 9 months ago
Trace.cpp clang-format 9 months ago
Trace.hpp clang-format 9 months ago
Utils.cpp clang-format 9 months ago
Utils.hpp clang-format 9 months ago
World.hpp clang-format 9 months 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.