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 be7fca254f Merge branch 'master' of https://github.com/xumng123/ZeroTierOne into xumng123-master 5 years ago
..
AES.cpp Likely fix for some alignment issues on ARM. 5 years ago
AES.hpp Backport AES fixes for compiler, arch, and splitting into separate files. 5 years ago
AES_aesni.cpp Windows build fixes, version bump in AIP. 5 years ago
AES_armcrypto.cpp Fixing regression in AES for ARM targets 5 years ago
Address.hpp BSL date bump 6 years ago
AtomicCounter.hpp BSL date bump 6 years ago
Bond.cpp Fix (some) compile-time warnings on Windows 5 years ago
Bond.hpp Fix (some) compile-time warnings on Windows 5 years ago
BondController.cpp Match formatting of Bond-related sources to ZeroTier standard (no functional changes) 5 years ago
BondController.hpp Match formatting of Bond-related sources to ZeroTier standard (no functional changes) 5 years ago
Buffer.hpp BSL date bump 6 years ago
C25519.cpp AES integrated on send side. 6 years ago
C25519.hpp BSL date bump 6 years ago
Capability.cpp BSL date bump 6 years ago
Capability.hpp BSL date bump 6 years ago
CertificateOfMembership.cpp BSL date bump 6 years ago
CertificateOfMembership.hpp BSL date bump 6 years ago
CertificateOfOwnership.cpp BSL date bump 6 years ago
CertificateOfOwnership.hpp BSL date bump 6 years ago
Constants.hpp Likely fix for some alignment issues on ARM. 5 years ago
Credential.hpp BSL date bump 6 years ago
DNS.hpp BSL date bump 6 years ago
Dictionary.hpp BSL date bump 6 years ago
Flow.hpp Match formatting of Bond-related sources to ZeroTier standard (no functional changes) 5 years ago
Hashtable.hpp BSL date bump 6 years ago
Identity.cpp AES integrated on send side. 6 years ago
Identity.hpp AES works! Only with this or newer nodes. Uses salsa with older ones as usual. 6 years ago
IncomingPacket.cpp Lets try always supplying the AES keys to Packet dearmor() and see if that prevents the coma problem. 5 years ago
IncomingPacket.hpp BSL date bump 6 years ago
InetAddress.cpp missing break in InetAddress::ipScope() 5 years ago
InetAddress.hpp Fix for ZTO-33 (Jira), only assign routes if there is a viable source IP. 5 years ago
MAC.hpp BSL date bump 6 years ago
Membership.cpp BSL date bump 6 years ago
Membership.hpp BSL date bump 6 years ago
MulticastGroup.hpp BSL date bump 6 years ago
Multicaster.cpp Tweak multicast settings to prevent failures due to TX queue overflow. 5 years ago
Multicaster.hpp Fix some timestamp signedness mismatches. 5 years ago
Mutex.hpp BSL date bump 6 years ago
Network.cpp Try pipelining tap reads on Linux for a little more speed. 5 years ago
Network.hpp BSL date bump 6 years ago
NetworkConfig.cpp BSL date bump 6 years ago
NetworkConfig.hpp BSL date bump 6 years ago
NetworkController.hpp BSL date bump 6 years ago
Node.cpp BSL date bump 6 years ago
Node.hpp BSL date bump 6 years ago
OutboundMulticast.cpp BSL date bump 6 years ago
OutboundMulticast.hpp BSL date bump 6 years ago
Packet.cpp Apple "fat binaries" are back! 5 years ago
Packet.hpp AES work... but disabled in this commit. 6 years ago
Path.cpp BSL date bump 6 years ago
Path.hpp Add new bond control commands to CLI 5 years ago
Peer.cpp Crash fix 5 years ago
Peer.hpp Lets try always supplying the AES keys to Packet dearmor() and see if that prevents the coma problem. 5 years ago
Poly1305.cpp RingBuffer<> is now templated with size, buffer is now static. 7 years ago
Poly1305.hpp BSL date bump 6 years ago
README.md Actual documentation. 9 years ago
Revocation.cpp BSL date bump 6 years ago
Revocation.hpp BSL date bump 6 years ago
RingBuffer.hpp BSL date bump 6 years ago
RuntimeEnvironment.hpp BSL date bump 6 years ago
SHA512.cpp More selective push of AES modifications and refactoring stuff. 6 years ago
SHA512.hpp AES integrated on send side. 6 years ago
Salsa20.cpp Spellcheck sweep across codebase 8 years ago
Salsa20.hpp Another very small crypto optimization. 9 years ago
SelfAwareness.cpp BSL date bump 6 years ago
SelfAwareness.hpp BSL date bump 6 years ago
SharedPtr.hpp BSL date bump 6 years ago
Switch.cpp Fix (some) compile-time warnings on Linux 5 years ago
Switch.hpp BSL date bump 6 years ago
Tag.cpp BSL date bump 6 years ago
Tag.hpp BSL date bump 6 years ago
Topology.cpp Update hard-coded default planet to latest. 5 years ago
Topology.hpp BSL date bump 6 years ago
Trace.cpp Fix erroneous cast of verb to double that causes invalid tracing output 5 years ago
Trace.hpp BSL date bump 6 years ago
Utils.cpp yes 5 years ago
Utils.hpp Fix for ZTO-33 (Jira), only assign routes if there is a viable source IP. 5 years ago
World.hpp BSL date bump 6 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.