Adam Ierymenko bfa4bd2584 Removing this, which was suggested by a linter, turns out to break things by breaking equality comparison. The NetworkConfig struct would have to be re-implemented in a more modern way to allow the compiler to properly generate comparison operators, which is not important right now. 2 mēneši atpakaļ
..
AES.cpp 9aff094b6f node/ -> MPL 2 mēneši atpakaļ
AES.hpp 9aff094b6f node/ -> MPL 2 mēneši atpakaļ
AES_aesni.cpp 9aff094b6f node/ -> MPL 2 mēneši atpakaļ
AES_armcrypto.cpp 9aff094b6f node/ -> MPL 2 mēneši atpakaļ
Address.hpp 9aff094b6f node/ -> MPL 2 mēneši atpakaļ
AtomicCounter.hpp 9aff094b6f node/ -> MPL 2 mēneši atpakaļ
Bond.cpp 9aff094b6f node/ -> MPL 2 mēneši atpakaļ
Bond.hpp 9aff094b6f node/ -> MPL 2 mēneši atpakaļ
Buffer.hpp 9aff094b6f node/ -> MPL 2 mēneši atpakaļ
Capability.cpp 9aff094b6f node/ -> MPL 2 mēneši atpakaļ
Capability.hpp 9aff094b6f node/ -> MPL 2 mēneši atpakaļ
CertificateOfMembership.cpp 9aff094b6f node/ -> MPL 2 mēneši atpakaļ
CertificateOfMembership.hpp 9aff094b6f node/ -> MPL 2 mēneši atpakaļ
CertificateOfOwnership.cpp 9aff094b6f node/ -> MPL 2 mēneši atpakaļ
CertificateOfOwnership.hpp 9aff094b6f node/ -> MPL 2 mēneši atpakaļ
Constants.hpp 9aff094b6f node/ -> MPL 2 mēneši atpakaļ
Credential.hpp 9aff094b6f node/ -> MPL 2 mēneši atpakaļ
DNS.hpp 9aff094b6f node/ -> MPL 2 mēneši atpakaļ
Dictionary.hpp 9aff094b6f node/ -> MPL 2 mēneši atpakaļ
ECC.cpp 342fa9d33f clang-format this branch 3 mēneši atpakaļ
ECC.hpp 9aff094b6f node/ -> MPL 2 mēneši atpakaļ
Hashtable.hpp 9aff094b6f node/ -> MPL 2 mēneši atpakaļ
Identity.cpp 9aff094b6f node/ -> MPL 2 mēneši atpakaļ
Identity.hpp 9aff094b6f node/ -> MPL 2 mēneši atpakaļ
IncomingPacket.cpp 9aff094b6f node/ -> MPL 2 mēneši atpakaļ
IncomingPacket.hpp 9aff094b6f node/ -> MPL 2 mēneši atpakaļ
InetAddress.cpp 9aff094b6f node/ -> MPL 2 mēneši atpakaļ
InetAddress.hpp 9aff094b6f node/ -> MPL 2 mēneši atpakaļ
MAC.hpp 9aff094b6f node/ -> MPL 2 mēneši atpakaļ
Membership.cpp 9aff094b6f node/ -> MPL 2 mēneši atpakaļ
Membership.hpp 9aff094b6f node/ -> MPL 2 mēneši atpakaļ
Metrics.cpp 9aff094b6f node/ -> MPL 2 mēneši atpakaļ
Metrics.hpp 9aff094b6f node/ -> MPL 2 mēneši atpakaļ
MulticastGroup.hpp 9aff094b6f node/ -> MPL 2 mēneši atpakaļ
Multicaster.cpp 6e6fc9a704 Add conditional compilation of controller. 2 mēneši atpakaļ
Multicaster.hpp 9aff094b6f node/ -> MPL 2 mēneši atpakaļ
Mutex.hpp 9aff094b6f node/ -> MPL 2 mēneši atpakaļ
Network.cpp 1e62d69762 Do not compress frames -- also unrelated to bug. 2 mēneši atpakaļ
Network.hpp 9aff094b6f node/ -> MPL 2 mēneši atpakaļ
NetworkConfig.cpp 9aff094b6f node/ -> MPL 2 mēneši atpakaļ
NetworkConfig.hpp bfa4bd2584 Removing this, which was suggested by a linter, turns out to break things by breaking equality comparison. The NetworkConfig struct would have to be re-implemented in a more modern way to allow the compiler to properly generate comparison operators, which is not important right now. 2 mēneši atpakaļ
NetworkController.hpp 9aff094b6f node/ -> MPL 2 mēneši atpakaļ
Node.cpp ab208bb8f9 Make encrypted HELLO a local.conf setting -- 99.999999% of users do not need it and it introduces scalability problems on large controllers. 2 mēneši atpakaļ
Node.hpp ab208bb8f9 Make encrypted HELLO a local.conf setting -- 99.999999% of users do not need it and it introduces scalability problems on large controllers. 2 mēneši atpakaļ
OutboundMulticast.cpp 9aff094b6f node/ -> MPL 2 mēneši atpakaļ
OutboundMulticast.hpp 9aff094b6f node/ -> MPL 2 mēneši atpakaļ
Packet.cpp 9aff094b6f node/ -> MPL 2 mēneši atpakaļ
Packet.hpp 9aff094b6f node/ -> MPL 2 mēneši atpakaļ
PacketMultiplexer.cpp 9aff094b6f node/ -> MPL 2 mēneši atpakaļ
PacketMultiplexer.hpp 9aff094b6f node/ -> MPL 2 mēneši atpakaļ
Path.cpp 9aff094b6f node/ -> MPL 2 mēneši atpakaļ
Path.hpp 9aff094b6f node/ -> MPL 2 mēneši atpakaļ
Peer.cpp ab208bb8f9 Make encrypted HELLO a local.conf setting -- 99.999999% of users do not need it and it introduces scalability problems on large controllers. 2 mēneši atpakaļ
Peer.hpp 9aff094b6f node/ -> MPL 2 mēneši atpakaļ
Poly1305.cpp ba2a4a605c clang-format 3 mēneši atpakaļ
Poly1305.hpp 9aff094b6f node/ -> MPL 2 mēneši atpakaļ
README.md 8a2ff0b31e Actual documentation. 8 gadi atpakaļ
Revocation.cpp 9aff094b6f node/ -> MPL 2 mēneši atpakaļ
Revocation.hpp 9aff094b6f node/ -> MPL 2 mēneši atpakaļ
RingBuffer.hpp 9aff094b6f node/ -> MPL 2 mēneši atpakaļ
RuntimeEnvironment.hpp 9aff094b6f node/ -> MPL 2 mēneši atpakaļ
SHA512.cpp ba2a4a605c clang-format 3 mēneši atpakaļ
SHA512.hpp 9aff094b6f node/ -> MPL 2 mēneši atpakaļ
Salsa20.cpp ba2a4a605c clang-format 3 mēneši atpakaļ
Salsa20.hpp ba2a4a605c clang-format 3 mēneši atpakaļ
SelfAwareness.cpp 9aff094b6f node/ -> MPL 2 mēneši atpakaļ
SelfAwareness.hpp 9aff094b6f node/ -> MPL 2 mēneši atpakaļ
SharedPtr.hpp 9aff094b6f node/ -> MPL 2 mēneši atpakaļ
Switch.cpp bed6557a6d Re-enable relaying checks, also not bug related but put back after we decided to punt removing moons. 2 mēneši atpakaļ
Switch.hpp 9aff094b6f node/ -> MPL 2 mēneši atpakaļ
Tag.cpp 9aff094b6f node/ -> MPL 2 mēneši atpakaļ
Tag.hpp 9aff094b6f node/ -> MPL 2 mēneši atpakaļ
Topology.cpp 1e62d69762 Do not compress frames -- also unrelated to bug. 2 mēneši atpakaļ
Topology.hpp 9aff094b6f node/ -> MPL 2 mēneši atpakaļ
Trace.cpp 9aff094b6f node/ -> MPL 2 mēneši atpakaļ
Trace.hpp 9aff094b6f node/ -> MPL 2 mēneši atpakaļ
Utils.cpp 9aff094b6f node/ -> MPL 2 mēneši atpakaļ
Utils.hpp 9aff094b6f node/ -> MPL 2 mēneši atpakaļ
World.hpp 9aff094b6f node/ -> MPL 2 mēneši atpakaļ

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.