diff --git a/zerotier-core-crypto/src/balloon.rs b/zerotier-core-crypto/src/balloon.rs index 9bbbb5b98..9faa92117 100644 --- a/zerotier-core-crypto/src/balloon.rs +++ b/zerotier-core-crypto/src/balloon.rs @@ -1,3 +1,11 @@ +/* This Source Code Form is subject to the terms of the Mozilla Public + * License, v. 2.0. If a copy of the MPL was not distributed with this + * file, You can obtain one at https://mozilla.org/MPL/2.0/. + * + * (c)2021 ZeroTier, Inc. + * https://www.zerotier.com/ + */ + use std::convert::TryInto; use std::mem::MaybeUninit; diff --git a/zerotier-core-crypto/src/c25519.rs b/zerotier-core-crypto/src/c25519.rs index 07045975b..8785be12c 100644 --- a/zerotier-core-crypto/src/c25519.rs +++ b/zerotier-core-crypto/src/c25519.rs @@ -1,3 +1,11 @@ +/* This Source Code Form is subject to the terms of the Mozilla Public + * License, v. 2.0. If a copy of the MPL was not distributed with this + * file, You can obtain one at https://mozilla.org/MPL/2.0/. + * + * (c)2021 ZeroTier, Inc. + * https://www.zerotier.com/ + */ + use std::convert::TryInto; use std::io::Write; diff --git a/zerotier-core-crypto/src/hash.rs b/zerotier-core-crypto/src/hash.rs index bf9cfef64..bfa25e363 100644 --- a/zerotier-core-crypto/src/hash.rs +++ b/zerotier-core-crypto/src/hash.rs @@ -1,3 +1,11 @@ +/* This Source Code Form is subject to the terms of the Mozilla Public + * License, v. 2.0. If a copy of the MPL was not distributed with this + * file, You can obtain one at https://mozilla.org/MPL/2.0/. + * + * (c)2021 ZeroTier, Inc. + * https://www.zerotier.com/ + */ + use std::mem::MaybeUninit; use std::convert::TryInto; use std::io::Write; diff --git a/zerotier-core-crypto/src/kbkdf.rs b/zerotier-core-crypto/src/kbkdf.rs index bce63e163..ebbacddc3 100644 --- a/zerotier-core-crypto/src/kbkdf.rs +++ b/zerotier-core-crypto/src/kbkdf.rs @@ -1,3 +1,11 @@ +/* This Source Code Form is subject to the terms of the Mozilla Public + * License, v. 2.0. If a copy of the MPL was not distributed with this + * file, You can obtain one at https://mozilla.org/MPL/2.0/. + * + * (c)2021 ZeroTier, Inc. + * https://www.zerotier.com/ + */ + use crate::hash::{SHA384, SHA384_HASH_SIZE}; use crate::secret::Secret; diff --git a/zerotier-core-crypto/src/lib.rs b/zerotier-core-crypto/src/lib.rs index db32939e6..ebfb1b0c5 100644 --- a/zerotier-core-crypto/src/lib.rs +++ b/zerotier-core-crypto/src/lib.rs @@ -1,3 +1,11 @@ +/* This Source Code Form is subject to the terms of the Mozilla Public + * License, v. 2.0. If a copy of the MPL was not distributed with this + * file, You can obtain one at https://mozilla.org/MPL/2.0/. + * + * (c)2021 ZeroTier, Inc. + * https://www.zerotier.com/ + */ + pub mod c25519; pub mod hash; pub mod p521; diff --git a/zerotier-core-crypto/src/p521.rs b/zerotier-core-crypto/src/p521.rs index 46ead09bd..45972357d 100644 --- a/zerotier-core-crypto/src/p521.rs +++ b/zerotier-core-crypto/src/p521.rs @@ -1,3 +1,11 @@ +/* This Source Code Form is subject to the terms of the Mozilla Public + * License, v. 2.0. If a copy of the MPL was not distributed with this + * file, You can obtain one at https://mozilla.org/MPL/2.0/. + * + * (c)2021 ZeroTier, Inc. + * https://www.zerotier.com/ + */ + use std::convert::TryInto; use std::str::FromStr; diff --git a/zerotier-core-crypto/src/poly1305.rs b/zerotier-core-crypto/src/poly1305.rs index 497ce4c96..89a9a91ff 100644 --- a/zerotier-core-crypto/src/poly1305.rs +++ b/zerotier-core-crypto/src/poly1305.rs @@ -1,3 +1,11 @@ +/* This Source Code Form is subject to the terms of the Mozilla Public + * License, v. 2.0. If a copy of the MPL was not distributed with this + * file, You can obtain one at https://mozilla.org/MPL/2.0/. + * + * (c)2021 ZeroTier, Inc. + * https://www.zerotier.com/ + */ + /// The poly1305 message authentication function. pub struct Poly1305(gcrypt::mac::Mac); diff --git a/zerotier-core-crypto/src/random.rs b/zerotier-core-crypto/src/random.rs index d44af1f74..26ee76a4a 100644 --- a/zerotier-core-crypto/src/random.rs +++ b/zerotier-core-crypto/src/random.rs @@ -1,3 +1,11 @@ +/* This Source Code Form is subject to the terms of the Mozilla Public + * License, v. 2.0. If a copy of the MPL was not distributed with this + * file, You can obtain one at https://mozilla.org/MPL/2.0/. + * + * (c)2021 ZeroTier, Inc. + * https://www.zerotier.com/ + */ + use rand_core::{RngCore, Error}; use rand_core::CryptoRng; use gcrypt::rand::{Level, randomize}; diff --git a/zerotier-core-crypto/src/salsa.rs b/zerotier-core-crypto/src/salsa.rs index 7ba8d8489..e2ab0c04a 100644 --- a/zerotier-core-crypto/src/salsa.rs +++ b/zerotier-core-crypto/src/salsa.rs @@ -1,3 +1,11 @@ +/* This Source Code Form is subject to the terms of the Mozilla Public + * License, v. 2.0. If a copy of the MPL was not distributed with this + * file, You can obtain one at https://mozilla.org/MPL/2.0/. + * + * (c)2021 ZeroTier, Inc. + * https://www.zerotier.com/ + */ + /// The classic Salsa20 stream cipher supporting 20-round and 12-round variants. pub struct Salsa(gcrypt::cipher::Cipher); diff --git a/zerotier-core-crypto/src/secret.rs b/zerotier-core-crypto/src/secret.rs index 55cac208b..35369dcf6 100644 --- a/zerotier-core-crypto/src/secret.rs +++ b/zerotier-core-crypto/src/secret.rs @@ -1,3 +1,11 @@ +/* This Source Code Form is subject to the terms of the Mozilla Public + * License, v. 2.0. If a copy of the MPL was not distributed with this + * file, You can obtain one at https://mozilla.org/MPL/2.0/. + * + * (c)2021 ZeroTier, Inc. + * https://www.zerotier.com/ + */ + use std::convert::TryInto; use std::mem::size_of; use std::ptr::write_volatile; diff --git a/zerotier-network-hypervisor/src/defaults.rs b/zerotier-network-hypervisor/src/defaults.rs index 45fdc11ef..ed9bac17d 100644 --- a/zerotier-network-hypervisor/src/defaults.rs +++ b/zerotier-network-hypervisor/src/defaults.rs @@ -1,3 +1,11 @@ +/* This Source Code Form is subject to the terms of the Mozilla Public + * License, v. 2.0. If a copy of the MPL was not distributed with this + * file, You can obtain one at https://mozilla.org/MPL/2.0/. + * + * (c)2021 ZeroTier, Inc. + * https://www.zerotier.com/ + */ + /// Default root set that uses ZeroTier's own global roots. pub const ROOT_SET: [u8; 570] = [ 0x01,0x00,0x00,0x00,0x00,0x08,0xea,0xc9,0x0a,0x00,0x00,0x01,0x78,0xcc,0x8e,0xf8,0xcb,0xb8,0xb3,0x88,0xa4,0x69,0x22,0x14,0x91,0xaa,0x9a,0xcd,0x66,0xcc,0x76,0x4c,0xde,0xfd,0x56,0x03,0x9f,0x10,0x67,0xae,0x15,0xe6,0x9c,0x6f,0xb4,0x2d,0x7b,0x55,0x33,0x0e,0x3f,0xda,0xac,0x52,0x9c,0x07,0x92,0xfd,0x73,0x40,0xa6,0xaa,0x21,0xab,0xa8,0xa4,0x89,0xfd,0xae,0xa4,0x4a,0x39,0xbf,0x2d,0x00,0x65,0x9a,0xc9,0xc8,0x18,0xeb,0x31,0xdc,0x40,0xa9,0xc7,0xb5,0xd2,0xf9,0x8e,0xd9,0x7b,0xf6,0x41,0x27,0x29,0x02,0xb6,0xb3,0x34,0x6f,0x56,0x16,0x11,0x45,0x82,0x44,0x55,0x85,0x78,0x79,0xb9,0x30,0xcb,0x01,0x51,0x15,0x49,0xf3,0x38,0x24,0xd8,0xd4,0x78,0x7d,0x77,0x23,0xda,0xc3,0x51,0x50,0x0b,0xe7,0xdf,0x5b,0x8f,0x72,0xdd,0x25,0x81,0xa5,0x0b,0x4a,0x36,0x01,0x46,0x85,0x95,0xbe,0x4d,0x5e,0xe6,0x3b,0x46,0xc2,0x9b,0x15,0x3c,0x43,0x8a,0x30,0xe0,0xa2,0xbf,0xba,0x1a,0x57,0xfc,0x98,0x7b,0x42,0x71,0xde,0x9c,0x53,0x6c,0x00,0x04,0x61,0xd2,0x94,0xb9,0xcb,0x00,0xe6,0x53,0xef,0x7a,0xd9,0x25,0x59,0x52,0xb7,0xc9,0xfc,0xa1,0x68,0x6d,0x3b,0x17,0xc6,0x10,0xb0,0x4e,0x6b,0x6c,0x82,0xd2,0xd3,0x7c,0xd3,0xa6,0xef,0xb2,0x56,0x3d,0x57,0x7f,0x81,0x22,0x24,0x37,0x62,0x02,0x09,0xe9,0x23,0x48,0xad,0x33,0x7b,0xd1,0x91,0xac,0x00,0xb7,0x49,0x2c,0xfd,0x55,0xce,0x0f,0xa0,0x36,0xd8,0xc5,0x62,0x83,0x00,0x02,0x04,0x32,0x07,0x49,0x22,0x27,0x09,0x06,0x20,0x01,0x49,0xf0,0xd0,0x02,0x00,0x06,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x02,0x27,0x09,0x77,0x8c,0xde,0x71,0x90,0x00,0x3f,0x66,0x81,0xa9,0x9e,0x5a,0xd1,0x89,0x5e,0x9f,0xba,0x33,0xe6,0x21,0x2d,0x44,0x54,0xe1,0x68,0xbc,0xec,0x71,0x12,0x10,0x1b,0xf0,0x00,0x95,0x6e,0xd8,0xe9,0x2e,0x42,0x89,0x2c,0xb6,0xf2,0xec,0x41,0x08,0x81,0xa8,0x4a,0xb1,0x9d,0xa5,0x0e,0x12,0x87,0xba,0x3d,0x92,0x6c,0x3a,0x1f,0x75,0x5c,0xcc,0xf2,0x99,0xa1,0x20,0x70,0x55,0x00,0x02,0x04,0x67,0xc3,0x67,0x42,0x27,0x09,0x06,0x26,0x05,0x98,0x80,0x04,0x00,0x00,0xc3,0x02,0x54,0xf2,0xbc,0xa1,0xf7,0x00,0x19,0x27,0x09,0x62,0xf8,0x65,0xae,0x71,0x00,0xe2,0x07,0x6c,0x57,0xde,0x87,0x0e,0x62,0x88,0xd7,0xd5,0xe7,0x40,0x44,0x08,0xb1,0x54,0x5e,0xfc,0xa3,0x7d,0x67,0xf7,0x7b,0x87,0xe9,0xe5,0x41,0x68,0xc2,0x5d,0x3e,0xf1,0xa9,0xab,0xf2,0x90,0x5e,0xa5,0xe7,0x85,0xc0,0x1d,0xff,0x23,0x88,0x7a,0xd4,0x23,0x2d,0x95,0xc7,0xa8,0xfd,0x2c,0x27,0x11,0x1a,0x72,0xbd,0x15,0x93,0x22,0xdc,0x00,0x02,0x04,0x32,0x07,0xfc,0x8a,0x27,0x09,0x06,0x20,0x01,0x49,0xf0,0xd0,0xdb,0x00,0x02,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x02,0x27,0x09,0x99,0x2f,0xcf,0x1d,0xb7,0x00,0x20,0x6e,0xd5,0x93,0x50,0xb3,0x19,0x16,0xf7,0x49,0xa1,0xf8,0x5d,0xff,0xb3,0xa8,0x78,0x7d,0xcb,0xf8,0x3b,0x8c,0x6e,0x94,0x48,0xd4,0xe3,0xea,0x0e,0x33,0x69,0x30,0x1b,0xe7,0x16,0xc3,0x60,0x93,0x44,0xa9,0xd1,0x53,0x38,0x50,0xfb,0x44,0x60,0xc5,0x0a,0xf4,0x33,0x22,0xbc,0xfc,0x8e,0x13,0xd3,0x30,0x1a,0x1f,0x10,0x03,0xce,0xb6,0x00,0x02,0x04,0xc3,0xb5,0xad,0x9f,0x27,0x09,0x06,0x2a,0x02,0x6e,0xa0,0xc0,0x24,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x27,0x09 ]; diff --git a/zerotier-network-hypervisor/src/error.rs b/zerotier-network-hypervisor/src/error.rs index f570a53aa..3671821ee 100644 --- a/zerotier-network-hypervisor/src/error.rs +++ b/zerotier-network-hypervisor/src/error.rs @@ -1,3 +1,11 @@ +/* This Source Code Form is subject to the terms of the Mozilla Public + * License, v. 2.0. If a copy of the MPL was not distributed with this + * file, You can obtain one at https://mozilla.org/MPL/2.0/. + * + * (c)2021 ZeroTier, Inc. + * https://www.zerotier.com/ + */ + use std::error::Error; use std::fmt::{Display, Debug}; diff --git a/zerotier-network-hypervisor/src/lib.rs b/zerotier-network-hypervisor/src/lib.rs index 3ea7b61c6..91bdd0ab8 100644 --- a/zerotier-network-hypervisor/src/lib.rs +++ b/zerotier-network-hypervisor/src/lib.rs @@ -1,3 +1,11 @@ +/* This Source Code Form is subject to the terms of the Mozilla Public + * License, v. 2.0. If a copy of the MPL was not distributed with this + * file, You can obtain one at https://mozilla.org/MPL/2.0/. + * + * (c)2021 ZeroTier, Inc. + * https://www.zerotier.com/ + */ + pub mod util; pub mod error; pub mod vl1; diff --git a/zerotier-network-hypervisor/src/util/gate.rs b/zerotier-network-hypervisor/src/util/gate.rs index d1cd55228..ea53bc1a1 100644 --- a/zerotier-network-hypervisor/src/util/gate.rs +++ b/zerotier-network-hypervisor/src/util/gate.rs @@ -1,3 +1,11 @@ +/* This Source Code Form is subject to the terms of the Mozilla Public + * License, v. 2.0. If a copy of the MPL was not distributed with this + * file, You can obtain one at https://mozilla.org/MPL/2.0/. + * + * (c)2021 ZeroTier, Inc. + * https://www.zerotier.com/ + */ + use std::sync::atomic::{AtomicI64, Ordering}; /// Boolean rate limiter with normal (non-atomic) semantics. diff --git a/zerotier-network-hypervisor/src/util/hex.rs b/zerotier-network-hypervisor/src/util/hex.rs index 8ea7526ca..b03524262 100644 --- a/zerotier-network-hypervisor/src/util/hex.rs +++ b/zerotier-network-hypervisor/src/util/hex.rs @@ -1,3 +1,11 @@ +/* This Source Code Form is subject to the terms of the Mozilla Public + * License, v. 2.0. If a copy of the MPL was not distributed with this + * file, You can obtain one at https://mozilla.org/MPL/2.0/. + * + * (c)2021 ZeroTier, Inc. + * https://www.zerotier.com/ + */ + pub(crate) const HEX_CHARS: [u8; 16] = [ b'0', b'1', b'2', b'3', b'4', b'5', b'6', b'7', b'8', b'9', b'a', b'b', b'c', b'd', b'e', b'f']; /// Encode a byte slice to a hexadecimal string. diff --git a/zerotier-network-hypervisor/src/util/mod.rs b/zerotier-network-hypervisor/src/util/mod.rs index 09d9b2c24..3baf5d7db 100644 --- a/zerotier-network-hypervisor/src/util/mod.rs +++ b/zerotier-network-hypervisor/src/util/mod.rs @@ -1,3 +1,11 @@ +/* This Source Code Form is subject to the terms of the Mozilla Public + * License, v. 2.0. If a copy of the MPL was not distributed with this + * file, You can obtain one at https://mozilla.org/MPL/2.0/. + * + * (c)2021 ZeroTier, Inc. + * https://www.zerotier.com/ + */ + pub mod hex; pub mod pool; pub mod gate; diff --git a/zerotier-network-hypervisor/src/util/pool.rs b/zerotier-network-hypervisor/src/util/pool.rs index ab9ebfb2b..e18622eec 100644 --- a/zerotier-network-hypervisor/src/util/pool.rs +++ b/zerotier-network-hypervisor/src/util/pool.rs @@ -1,3 +1,11 @@ +/* This Source Code Form is subject to the terms of the Mozilla Public + * License, v. 2.0. If a copy of the MPL was not distributed with this + * file, You can obtain one at https://mozilla.org/MPL/2.0/. + * + * (c)2021 ZeroTier, Inc. + * https://www.zerotier.com/ + */ + use std::mem::size_of; use std::ptr::NonNull; use std::sync::{Arc, Weak}; diff --git a/zerotier-network-hypervisor/src/util/varint.rs b/zerotier-network-hypervisor/src/util/varint.rs index ff71da34d..01e8b8b7b 100644 --- a/zerotier-network-hypervisor/src/util/varint.rs +++ b/zerotier-network-hypervisor/src/util/varint.rs @@ -1,3 +1,11 @@ +/* This Source Code Form is subject to the terms of the Mozilla Public + * License, v. 2.0. If a copy of the MPL was not distributed with this + * file, You can obtain one at https://mozilla.org/MPL/2.0/. + * + * (c)2021 ZeroTier, Inc. + * https://www.zerotier.com/ + */ + use std::io::{Read, Write}; pub fn write(w: &mut W, mut v: u64) -> std::io::Result<()> { diff --git a/zerotier-network-hypervisor/src/vl1/address.rs b/zerotier-network-hypervisor/src/vl1/address.rs index 79a21066d..9a89bcc9d 100644 --- a/zerotier-network-hypervisor/src/vl1/address.rs +++ b/zerotier-network-hypervisor/src/vl1/address.rs @@ -1,3 +1,11 @@ +/* This Source Code Form is subject to the terms of the Mozilla Public + * License, v. 2.0. If a copy of the MPL was not distributed with this + * file, You can obtain one at https://mozilla.org/MPL/2.0/. + * + * (c)2021 ZeroTier, Inc. + * https://www.zerotier.com/ + */ + use std::hash::{Hash, Hasher}; use std::num::NonZeroU64; use std::str::FromStr; diff --git a/zerotier-network-hypervisor/src/vl1/buffer.rs b/zerotier-network-hypervisor/src/vl1/buffer.rs index 6f6923984..aaf8bfad2 100644 --- a/zerotier-network-hypervisor/src/vl1/buffer.rs +++ b/zerotier-network-hypervisor/src/vl1/buffer.rs @@ -1,3 +1,11 @@ +/* This Source Code Form is subject to the terms of the Mozilla Public + * License, v. 2.0. If a copy of the MPL was not distributed with this + * file, You can obtain one at https://mozilla.org/MPL/2.0/. + * + * (c)2021 ZeroTier, Inc. + * https://www.zerotier.com/ + */ + use std::io::Write; use std::mem::size_of; diff --git a/zerotier-network-hypervisor/src/vl1/dictionary.rs b/zerotier-network-hypervisor/src/vl1/dictionary.rs index 3cc905f9d..fff0927eb 100644 --- a/zerotier-network-hypervisor/src/vl1/dictionary.rs +++ b/zerotier-network-hypervisor/src/vl1/dictionary.rs @@ -1,3 +1,11 @@ +/* This Source Code Form is subject to the terms of the Mozilla Public + * License, v. 2.0. If a copy of the MPL was not distributed with this + * file, You can obtain one at https://mozilla.org/MPL/2.0/. + * + * (c)2021 ZeroTier, Inc. + * https://www.zerotier.com/ + */ + use std::collections::BTreeMap; use std::io::Write; diff --git a/zerotier-network-hypervisor/src/vl1/endpoint.rs b/zerotier-network-hypervisor/src/vl1/endpoint.rs index 14aae809a..da144bf83 100644 --- a/zerotier-network-hypervisor/src/vl1/endpoint.rs +++ b/zerotier-network-hypervisor/src/vl1/endpoint.rs @@ -1,3 +1,11 @@ +/* This Source Code Form is subject to the terms of the Mozilla Public + * License, v. 2.0. If a copy of the MPL was not distributed with this + * file, You can obtain one at https://mozilla.org/MPL/2.0/. + * + * (c)2021 ZeroTier, Inc. + * https://www.zerotier.com/ + */ + use std::cmp::Ordering; use std::hash::{Hash, Hasher}; diff --git a/zerotier-network-hypervisor/src/vl1/fragmentedpacket.rs b/zerotier-network-hypervisor/src/vl1/fragmentedpacket.rs index 99458f1e3..32fbbc70e 100644 --- a/zerotier-network-hypervisor/src/vl1/fragmentedpacket.rs +++ b/zerotier-network-hypervisor/src/vl1/fragmentedpacket.rs @@ -1,3 +1,11 @@ +/* This Source Code Form is subject to the terms of the Mozilla Public + * License, v. 2.0. If a copy of the MPL was not distributed with this + * file, You can obtain one at https://mozilla.org/MPL/2.0/. + * + * (c)2021 ZeroTier, Inc. + * https://www.zerotier.com/ + */ + use crate::vl1::node::PacketBuffer; use crate::vl1::protocol::*; diff --git a/zerotier-network-hypervisor/src/vl1/identity.rs b/zerotier-network-hypervisor/src/vl1/identity.rs index b072d40e6..3fef5ae2e 100644 --- a/zerotier-network-hypervisor/src/vl1/identity.rs +++ b/zerotier-network-hypervisor/src/vl1/identity.rs @@ -1,3 +1,11 @@ +/* This Source Code Form is subject to the terms of the Mozilla Public + * License, v. 2.0. If a copy of the MPL was not distributed with this + * file, You can obtain one at https://mozilla.org/MPL/2.0/. + * + * (c)2021 ZeroTier, Inc. + * https://www.zerotier.com/ + */ + use std::alloc::{alloc, dealloc, Layout}; use std::cmp::Ordering; use std::convert::TryInto; diff --git a/zerotier-network-hypervisor/src/vl1/inetaddress.rs b/zerotier-network-hypervisor/src/vl1/inetaddress.rs index 19d1fa53e..8017426fa 100644 --- a/zerotier-network-hypervisor/src/vl1/inetaddress.rs +++ b/zerotier-network-hypervisor/src/vl1/inetaddress.rs @@ -1,3 +1,11 @@ +/* This Source Code Form is subject to the terms of the Mozilla Public + * License, v. 2.0. If a copy of the MPL was not distributed with this + * file, You can obtain one at https://mozilla.org/MPL/2.0/. + * + * (c)2021 ZeroTier, Inc. + * https://www.zerotier.com/ + */ + use std::cmp::Ordering; use std::hash::{Hash, Hasher}; use std::mem::{MaybeUninit, size_of, transmute_copy, zeroed}; diff --git a/zerotier-network-hypervisor/src/vl1/locator.rs b/zerotier-network-hypervisor/src/vl1/locator.rs index 946880c3f..d63f9dea9 100644 --- a/zerotier-network-hypervisor/src/vl1/locator.rs +++ b/zerotier-network-hypervisor/src/vl1/locator.rs @@ -1,3 +1,11 @@ +/* This Source Code Form is subject to the terms of the Mozilla Public + * License, v. 2.0. If a copy of the MPL was not distributed with this + * file, You can obtain one at https://mozilla.org/MPL/2.0/. + * + * (c)2021 ZeroTier, Inc. + * https://www.zerotier.com/ + */ + use std::cmp::Ordering; use std::hash::{Hash, Hasher}; diff --git a/zerotier-network-hypervisor/src/vl1/mac.rs b/zerotier-network-hypervisor/src/vl1/mac.rs index d538e84ec..acb0237fb 100644 --- a/zerotier-network-hypervisor/src/vl1/mac.rs +++ b/zerotier-network-hypervisor/src/vl1/mac.rs @@ -1,3 +1,11 @@ +/* This Source Code Form is subject to the terms of the Mozilla Public + * License, v. 2.0. If a copy of the MPL was not distributed with this + * file, You can obtain one at https://mozilla.org/MPL/2.0/. + * + * (c)2021 ZeroTier, Inc. + * https://www.zerotier.com/ + */ + use std::num::NonZeroU64; use std::str::FromStr; use std::hash::{Hash, Hasher}; diff --git a/zerotier-network-hypervisor/src/vl1/mod.rs b/zerotier-network-hypervisor/src/vl1/mod.rs index d5ccbad58..6fa6e7560 100644 --- a/zerotier-network-hypervisor/src/vl1/mod.rs +++ b/zerotier-network-hypervisor/src/vl1/mod.rs @@ -1,11 +1,17 @@ -// Only things that should be used from outside network-hypervisor should be full "pub." +/* This Source Code Form is subject to the terms of the Mozilla Public + * License, v. 2.0. If a copy of the MPL was not distributed with this + * file, You can obtain one at https://mozilla.org/MPL/2.0/. + * + * (c)2021 ZeroTier, Inc. + * https://www.zerotier.com/ + */ + pub mod identity; pub mod inetaddress; pub mod endpoint; pub mod locator; pub mod rootset; -// These are either only used inside network-hypervisor or are selectively exported below. #[allow(unused)] pub(crate) mod protocol; pub(crate) mod buffer; @@ -18,7 +24,6 @@ pub(crate) mod mac; pub(crate) mod fragmentedpacket; pub(crate) mod whoisqueue; -// Export some core objects into the root namespace, since these are what other code will driectly deal with. pub use address::Address; pub use mac::MAC; pub use identity::Identity; diff --git a/zerotier-network-hypervisor/src/vl1/node.rs b/zerotier-network-hypervisor/src/vl1/node.rs index da2b2a039..d8d1ad6e7 100644 --- a/zerotier-network-hypervisor/src/vl1/node.rs +++ b/zerotier-network-hypervisor/src/vl1/node.rs @@ -1,3 +1,11 @@ +/* This Source Code Form is subject to the terms of the Mozilla Public + * License, v. 2.0. If a copy of the MPL was not distributed with this + * file, You can obtain one at https://mozilla.org/MPL/2.0/. + * + * (c)2021 ZeroTier, Inc. + * https://www.zerotier.com/ + */ + use std::str::FromStr; use std::sync::Arc; use std::time::Duration; diff --git a/zerotier-network-hypervisor/src/vl2/mod.rs b/zerotier-network-hypervisor/src/vl2/mod.rs index 5e1f289e4..28c2202a7 100644 --- a/zerotier-network-hypervisor/src/vl2/mod.rs +++ b/zerotier-network-hypervisor/src/vl2/mod.rs @@ -1,3 +1,11 @@ +/* This Source Code Form is subject to the terms of the Mozilla Public + * License, v. 2.0. If a copy of the MPL was not distributed with this + * file, You can obtain one at https://mozilla.org/MPL/2.0/. + * + * (c)2021 ZeroTier, Inc. + * https://www.zerotier.com/ + */ + mod multicastgroup; pub use multicastgroup::MulticastGroup; diff --git a/zerotier-network-hypervisor/src/vl2/multicastgroup.rs b/zerotier-network-hypervisor/src/vl2/multicastgroup.rs index 01f20940b..310dd1e6b 100644 --- a/zerotier-network-hypervisor/src/vl2/multicastgroup.rs +++ b/zerotier-network-hypervisor/src/vl2/multicastgroup.rs @@ -1,3 +1,11 @@ +/* This Source Code Form is subject to the terms of the Mozilla Public + * License, v. 2.0. If a copy of the MPL was not distributed with this + * file, You can obtain one at https://mozilla.org/MPL/2.0/. + * + * (c)2021 ZeroTier, Inc. + * https://www.zerotier.com/ + */ + use crate::vl1::MAC; use std::cmp::Ordering; use std::hash::{Hash, Hasher}; diff --git a/zerotier-system-service/src/api.rs b/zerotier-system-service/src/api.rs index 43f75d8e6..f2952a47a 100644 --- a/zerotier-system-service/src/api.rs +++ b/zerotier-system-service/src/api.rs @@ -1,15 +1,10 @@ -/* - * Copyright (c)2013-2021 ZeroTier, Inc. +/* This Source Code Form is subject to the terms of the Mozilla Public + * License, v. 2.0. If a copy of the MPL was not distributed with this + * file, You can obtain one at https://mozilla.org/MPL/2.0/. * - * Use of this software is governed by the Business Source License included - * in the LICENSE.TXT file in the project's root directory. - * - * Change Date: 2026-01-01 - * - * On the date above, in accordance with the Business Source License, use - * of this software will be governed by version 2.0 of the Apache License. + * (c)2021 ZeroTier, Inc. + * https://www.zerotier.com/ */ -/****/ use std::sync::Arc; diff --git a/zerotier-system-service/src/commands/controller.rs b/zerotier-system-service/src/commands/controller.rs index 489e2178a..6479dbe46 100644 --- a/zerotier-system-service/src/commands/controller.rs +++ b/zerotier-system-service/src/commands/controller.rs @@ -1,13 +1,8 @@ -/* - * Copyright (c)2013-2021 ZeroTier, Inc. +/* This Source Code Form is subject to the terms of the Mozilla Public + * License, v. 2.0. If a copy of the MPL was not distributed with this + * file, You can obtain one at https://mozilla.org/MPL/2.0/. * - * Use of this software is governed by the Business Source License included - * in the LICENSE.TXT file in the project's root directory. - * - * Change Date: 2026-01-01 - * - * On the date above, in accordance with the Business Source License, use - * of this software will be governed by version 2.0 of the Apache License. + * (c)2021 ZeroTier, Inc. + * https://www.zerotier.com/ */ -/****/ diff --git a/zerotier-system-service/src/commands/identity.rs b/zerotier-system-service/src/commands/identity.rs index 2786318d8..4ce357e93 100644 --- a/zerotier-system-service/src/commands/identity.rs +++ b/zerotier-system-service/src/commands/identity.rs @@ -1,15 +1,10 @@ -/* - * Copyright (c)2013-2021 ZeroTier, Inc. +/* This Source Code Form is subject to the terms of the Mozilla Public + * License, v. 2.0. If a copy of the MPL was not distributed with this + * file, You can obtain one at https://mozilla.org/MPL/2.0/. * - * Use of this software is governed by the Business Source License included - * in the LICENSE.TXT file in the project's root directory. - * - * Change Date: 2026-01-01 - * - * On the date above, in accordance with the Business Source License, use - * of this software will be governed by version 2.0 of the Apache License. + * (c)2021 ZeroTier, Inc. + * https://www.zerotier.com/ */ -/****/ use clap::ArgMatches; diff --git a/zerotier-system-service/src/commands/join.rs b/zerotier-system-service/src/commands/join.rs index 489e2178a..6479dbe46 100644 --- a/zerotier-system-service/src/commands/join.rs +++ b/zerotier-system-service/src/commands/join.rs @@ -1,13 +1,8 @@ -/* - * Copyright (c)2013-2021 ZeroTier, Inc. +/* This Source Code Form is subject to the terms of the Mozilla Public + * License, v. 2.0. If a copy of the MPL was not distributed with this + * file, You can obtain one at https://mozilla.org/MPL/2.0/. * - * Use of this software is governed by the Business Source License included - * in the LICENSE.TXT file in the project's root directory. - * - * Change Date: 2026-01-01 - * - * On the date above, in accordance with the Business Source License, use - * of this software will be governed by version 2.0 of the Apache License. + * (c)2021 ZeroTier, Inc. + * https://www.zerotier.com/ */ -/****/ diff --git a/zerotier-system-service/src/commands/leave.rs b/zerotier-system-service/src/commands/leave.rs index 489e2178a..6479dbe46 100644 --- a/zerotier-system-service/src/commands/leave.rs +++ b/zerotier-system-service/src/commands/leave.rs @@ -1,13 +1,8 @@ -/* - * Copyright (c)2013-2021 ZeroTier, Inc. +/* This Source Code Form is subject to the terms of the Mozilla Public + * License, v. 2.0. If a copy of the MPL was not distributed with this + * file, You can obtain one at https://mozilla.org/MPL/2.0/. * - * Use of this software is governed by the Business Source License included - * in the LICENSE.TXT file in the project's root directory. - * - * Change Date: 2026-01-01 - * - * On the date above, in accordance with the Business Source License, use - * of this software will be governed by version 2.0 of the Apache License. + * (c)2021 ZeroTier, Inc. + * https://www.zerotier.com/ */ -/****/ diff --git a/zerotier-system-service/src/commands/mod.rs b/zerotier-system-service/src/commands/mod.rs index 2be052489..3c5953152 100644 --- a/zerotier-system-service/src/commands/mod.rs +++ b/zerotier-system-service/src/commands/mod.rs @@ -1,15 +1,10 @@ -/* - * Copyright (c)2013-2021 ZeroTier, Inc. +/* This Source Code Form is subject to the terms of the Mozilla Public + * License, v. 2.0. If a copy of the MPL was not distributed with this + * file, You can obtain one at https://mozilla.org/MPL/2.0/. * - * Use of this software is governed by the Business Source License included - * in the LICENSE.TXT file in the project's root directory. - * - * Change Date: 2026-01-01 - * - * On the date above, in accordance with the Business Source License, use - * of this software will be governed by version 2.0 of the Apache License. + * (c)2021 ZeroTier, Inc. + * https://www.zerotier.com/ */ -/****/ pub(crate) mod status; pub(crate) mod set; diff --git a/zerotier-system-service/src/commands/network.rs b/zerotier-system-service/src/commands/network.rs index 489e2178a..6479dbe46 100644 --- a/zerotier-system-service/src/commands/network.rs +++ b/zerotier-system-service/src/commands/network.rs @@ -1,13 +1,8 @@ -/* - * Copyright (c)2013-2021 ZeroTier, Inc. +/* This Source Code Form is subject to the terms of the Mozilla Public + * License, v. 2.0. If a copy of the MPL was not distributed with this + * file, You can obtain one at https://mozilla.org/MPL/2.0/. * - * Use of this software is governed by the Business Source License included - * in the LICENSE.TXT file in the project's root directory. - * - * Change Date: 2026-01-01 - * - * On the date above, in accordance with the Business Source License, use - * of this software will be governed by version 2.0 of the Apache License. + * (c)2021 ZeroTier, Inc. + * https://www.zerotier.com/ */ -/****/ diff --git a/zerotier-system-service/src/commands/peer.rs b/zerotier-system-service/src/commands/peer.rs index 489e2178a..6479dbe46 100644 --- a/zerotier-system-service/src/commands/peer.rs +++ b/zerotier-system-service/src/commands/peer.rs @@ -1,13 +1,8 @@ -/* - * Copyright (c)2013-2021 ZeroTier, Inc. +/* This Source Code Form is subject to the terms of the Mozilla Public + * License, v. 2.0. If a copy of the MPL was not distributed with this + * file, You can obtain one at https://mozilla.org/MPL/2.0/. * - * Use of this software is governed by the Business Source License included - * in the LICENSE.TXT file in the project's root directory. - * - * Change Date: 2026-01-01 - * - * On the date above, in accordance with the Business Source License, use - * of this software will be governed by version 2.0 of the Apache License. + * (c)2021 ZeroTier, Inc. + * https://www.zerotier.com/ */ -/****/ diff --git a/zerotier-system-service/src/commands/set.rs b/zerotier-system-service/src/commands/set.rs index 489e2178a..6479dbe46 100644 --- a/zerotier-system-service/src/commands/set.rs +++ b/zerotier-system-service/src/commands/set.rs @@ -1,13 +1,8 @@ -/* - * Copyright (c)2013-2021 ZeroTier, Inc. +/* This Source Code Form is subject to the terms of the Mozilla Public + * License, v. 2.0. If a copy of the MPL was not distributed with this + * file, You can obtain one at https://mozilla.org/MPL/2.0/. * - * Use of this software is governed by the Business Source License included - * in the LICENSE.TXT file in the project's root directory. - * - * Change Date: 2026-01-01 - * - * On the date above, in accordance with the Business Source License, use - * of this software will be governed by version 2.0 of the Apache License. + * (c)2021 ZeroTier, Inc. + * https://www.zerotier.com/ */ -/****/ diff --git a/zerotier-system-service/src/commands/status.rs b/zerotier-system-service/src/commands/status.rs index eeeab5a7f..492f80681 100644 --- a/zerotier-system-service/src/commands/status.rs +++ b/zerotier-system-service/src/commands/status.rs @@ -1,15 +1,10 @@ -/* - * Copyright (c)2013-2021 ZeroTier, Inc. +/* This Source Code Form is subject to the terms of the Mozilla Public + * License, v. 2.0. If a copy of the MPL was not distributed with this + * file, You can obtain one at https://mozilla.org/MPL/2.0/. * - * Use of this software is governed by the Business Source License included - * in the LICENSE.TXT file in the project's root directory. - * - * Change Date: 2026-01-01 - * - * On the date above, in accordance with the Business Source License, use - * of this software will be governed by version 2.0 of the Apache License. + * (c)2021 ZeroTier, Inc. + * https://www.zerotier.com/ */ -/****/ use std::error::Error; use std::sync::Arc; diff --git a/zerotier-system-service/src/fastudpsocket.rs b/zerotier-system-service/src/fastudpsocket.rs index 41480d165..aaa976b5a 100644 --- a/zerotier-system-service/src/fastudpsocket.rs +++ b/zerotier-system-service/src/fastudpsocket.rs @@ -1,15 +1,10 @@ -/* - * Copyright (c)2013-2021 ZeroTier, Inc. +/* This Source Code Form is subject to the terms of the Mozilla Public + * License, v. 2.0. If a copy of the MPL was not distributed with this + * file, You can obtain one at https://mozilla.org/MPL/2.0/. * - * Use of this software is governed by the Business Source License included - * in the LICENSE.TXT file in the project's root directory. - * - * Change Date: 2026-01-01 - * - * On the date above, in accordance with the Business Source License, use - * of this software will be governed by version 2.0 of the Apache License. + * (c)2021 ZeroTier, Inc. + * https://www.zerotier.com/ */ -/****/ use std::os::raw::c_int; use std::sync::Arc; diff --git a/zerotier-system-service/src/getifaddrs.rs b/zerotier-system-service/src/getifaddrs.rs index 2419efbaa..2e7122964 100644 --- a/zerotier-system-service/src/getifaddrs.rs +++ b/zerotier-system-service/src/getifaddrs.rs @@ -1,15 +1,10 @@ -/* - * Copyright (c)2013-2021 ZeroTier, Inc. +/* This Source Code Form is subject to the terms of the Mozilla Public + * License, v. 2.0. If a copy of the MPL was not distributed with this + * file, You can obtain one at https://mozilla.org/MPL/2.0/. * - * Use of this software is governed by the Business Source License included - * in the LICENSE.TXT file in the project's root directory. - * - * Change Date: 2026-01-01 - * - * On the date above, in accordance with the Business Source License, use - * of this software will be governed by version 2.0 of the Apache License. + * (c)2021 ZeroTier, Inc. + * https://www.zerotier.com/ */ -/****/ use std::mem::size_of; use std::ptr::{copy_nonoverlapping, null_mut}; diff --git a/zerotier-system-service/src/httpclient.rs b/zerotier-system-service/src/httpclient.rs index b731c5108..bafca963b 100644 --- a/zerotier-system-service/src/httpclient.rs +++ b/zerotier-system-service/src/httpclient.rs @@ -1,15 +1,10 @@ -/* - * Copyright (c)2013-2021 ZeroTier, Inc. +/* This Source Code Form is subject to the terms of the Mozilla Public + * License, v. 2.0. If a copy of the MPL was not distributed with this + * file, You can obtain one at https://mozilla.org/MPL/2.0/. * - * Use of this software is governed by the Business Source License included - * in the LICENSE.TXT file in the project's root directory. - * - * Change Date: 2026-01-01 - * - * On the date above, in accordance with the Business Source License, use - * of this software will be governed by version 2.0 of the Apache License. + * (c)2021 ZeroTier, Inc. + * https://www.zerotier.com/ */ -/****/ use std::error::Error; use std::future::Future; diff --git a/zerotier-system-service/src/httplistener.rs b/zerotier-system-service/src/httplistener.rs index e72612ce8..ef358464d 100644 --- a/zerotier-system-service/src/httplistener.rs +++ b/zerotier-system-service/src/httplistener.rs @@ -1,15 +1,10 @@ -/* - * Copyright (c)2013-2021 ZeroTier, Inc. +/* This Source Code Form is subject to the terms of the Mozilla Public + * License, v. 2.0. If a copy of the MPL was not distributed with this + * file, You can obtain one at https://mozilla.org/MPL/2.0/. * - * Use of this software is governed by the Business Source License included - * in the LICENSE.TXT file in the project's root directory. - * - * Change Date: 2026-01-01 - * - * On the date above, in accordance with the Business Source License, use - * of this software will be governed by version 2.0 of the Apache License. + * (c)2021 ZeroTier, Inc. + * https://www.zerotier.com/ */ -/****/ use std::cell::Cell; use std::convert::Infallible; diff --git a/zerotier-system-service/src/localconfig.rs b/zerotier-system-service/src/localconfig.rs index 0dd45006c..eae8a5d48 100644 --- a/zerotier-system-service/src/localconfig.rs +++ b/zerotier-system-service/src/localconfig.rs @@ -1,15 +1,10 @@ -/* - * Copyright (c)2013-2021 ZeroTier, Inc. +/* This Source Code Form is subject to the terms of the Mozilla Public + * License, v. 2.0. If a copy of the MPL was not distributed with this + * file, You can obtain one at https://mozilla.org/MPL/2.0/. * - * Use of this software is governed by the Business Source License included - * in the LICENSE.TXT file in the project's root directory. - * - * Change Date: 2026-01-01 - * - * On the date above, in accordance with the Business Source License, use - * of this software will be governed by version 2.0 of the Apache License. + * (c)2021 ZeroTier, Inc. + * https://www.zerotier.com/ */ -/****/ use std::collections::BTreeMap; diff --git a/zerotier-system-service/src/log.rs b/zerotier-system-service/src/log.rs index d68359af5..e37f4dd9b 100644 --- a/zerotier-system-service/src/log.rs +++ b/zerotier-system-service/src/log.rs @@ -1,15 +1,10 @@ -/* - * Copyright (c)2013-2021 ZeroTier, Inc. +/* This Source Code Form is subject to the terms of the Mozilla Public + * License, v. 2.0. If a copy of the MPL was not distributed with this + * file, You can obtain one at https://mozilla.org/MPL/2.0/. * - * Use of this software is governed by the Business Source License included - * in the LICENSE.TXT file in the project's root directory. - * - * Change Date: 2026-01-01 - * - * On the date above, in accordance with the Business Source License, use - * of this software will be governed by version 2.0 of the Apache License. + * (c)2021 ZeroTier, Inc. + * https://www.zerotier.com/ */ -/****/ use std::fs::{File, OpenOptions}; use std::io::{Seek, SeekFrom, Write, stderr}; diff --git a/zerotier-system-service/src/main.rs b/zerotier-system-service/src/main.rs index 60939ebb3..eb03de539 100644 --- a/zerotier-system-service/src/main.rs +++ b/zerotier-system-service/src/main.rs @@ -1,15 +1,10 @@ -/* - * Copyright (c)2013-2021 ZeroTier, Inc. +/* This Source Code Form is subject to the terms of the Mozilla Public + * License, v. 2.0. If a copy of the MPL was not distributed with this + * file, You can obtain one at https://mozilla.org/MPL/2.0/. * - * Use of this software is governed by the Business Source License included - * in the LICENSE.TXT file in the project's root directory. - * - * Change Date: 2026-01-01 - * - * On the date above, in accordance with the Business Source License, use - * of this software will be governed by version 2.0 of the Apache License. + * (c)2021 ZeroTier, Inc. + * https://www.zerotier.com/ */ -/****/ mod api; mod commands; diff --git a/zerotier-system-service/src/network.rs b/zerotier-system-service/src/network.rs index 501ecea96..043cd7a34 100644 --- a/zerotier-system-service/src/network.rs +++ b/zerotier-system-service/src/network.rs @@ -1,15 +1,10 @@ -/* - * Copyright (c)2013-2021 ZeroTier, Inc. +/* This Source Code Form is subject to the terms of the Mozilla Public + * License, v. 2.0. If a copy of the MPL was not distributed with this + * file, You can obtain one at https://mozilla.org/MPL/2.0/. * - * Use of this software is governed by the Business Source License included - * in the LICENSE.TXT file in the project's root directory. - * - * Change Date: 2026-01-01 - * - * On the date above, in accordance with the Business Source License, use - * of this software will be governed by version 2.0 of the Apache License. + * (c)2021 ZeroTier, Inc. + * https://www.zerotier.com/ */ -/****/ pub struct Network {} diff --git a/zerotier-system-service/src/service.rs b/zerotier-system-service/src/service.rs index aa528967a..93364ff1c 100644 --- a/zerotier-system-service/src/service.rs +++ b/zerotier-system-service/src/service.rs @@ -1,15 +1,10 @@ -/* - * Copyright (c)2013-2021 ZeroTier, Inc. +/* This Source Code Form is subject to the terms of the Mozilla Public + * License, v. 2.0. If a copy of the MPL was not distributed with this + * file, You can obtain one at https://mozilla.org/MPL/2.0/. * - * Use of this software is governed by the Business Source License included - * in the LICENSE.TXT file in the project's root directory. - * - * Change Date: 2026-01-01 - * - * On the date above, in accordance with the Business Source License, use - * of this software will be governed by version 2.0 of the Apache License. + * (c)2021 ZeroTier, Inc. + * https://www.zerotier.com/ */ -/****/ use std::cell::Cell; use std::collections::BTreeMap; diff --git a/zerotier-system-service/src/store.rs b/zerotier-system-service/src/store.rs index 815de4371..579919ec3 100644 --- a/zerotier-system-service/src/store.rs +++ b/zerotier-system-service/src/store.rs @@ -1,15 +1,10 @@ -/* - * Copyright (c)2013-2021 ZeroTier, Inc. +/* This Source Code Form is subject to the terms of the Mozilla Public + * License, v. 2.0. If a copy of the MPL was not distributed with this + * file, You can obtain one at https://mozilla.org/MPL/2.0/. * - * Use of this software is governed by the Business Source License included - * in the LICENSE.TXT file in the project's root directory. - * - * Change Date: 2026-01-01 - * - * On the date above, in accordance with the Business Source License, use - * of this software will be governed by version 2.0 of the Apache License. + * (c)2021 ZeroTier, Inc. + * https://www.zerotier.com/ */ -/****/ use std::io::{Read, Write}; use std::path::{Path, PathBuf}; diff --git a/zerotier-system-service/src/utils.rs b/zerotier-system-service/src/utils.rs index 02da778fd..becd5de99 100644 --- a/zerotier-system-service/src/utils.rs +++ b/zerotier-system-service/src/utils.rs @@ -1,15 +1,10 @@ -/* - * Copyright (c)2013-2021 ZeroTier, Inc. +/* This Source Code Form is subject to the terms of the Mozilla Public + * License, v. 2.0. If a copy of the MPL was not distributed with this + * file, You can obtain one at https://mozilla.org/MPL/2.0/. * - * Use of this software is governed by the Business Source License included - * in the LICENSE.TXT file in the project's root directory. - * - * Change Date: 2026-01-01 - * - * On the date above, in accordance with the Business Source License, use - * of this software will be governed by version 2.0 of the Apache License. + * (c)2021 ZeroTier, Inc. + * https://www.zerotier.com/ */ -/****/ use std::borrow::Borrow; use std::fs::File; diff --git a/zerotier-system-service/src/vnic/common.rs b/zerotier-system-service/src/vnic/common.rs index c13115ae3..62cd6ad43 100644 --- a/zerotier-system-service/src/vnic/common.rs +++ b/zerotier-system-service/src/vnic/common.rs @@ -1,15 +1,10 @@ -/* - * Copyright (c)2013-2021 ZeroTier, Inc. +/* This Source Code Form is subject to the terms of the Mozilla Public + * License, v. 2.0. If a copy of the MPL was not distributed with this + * file, You can obtain one at https://mozilla.org/MPL/2.0/. * - * Use of this software is governed by the Business Source License included - * in the LICENSE.TXT file in the project's root directory. - * - * Change Date: 2026-01-01 - * - * On the date above, in accordance with the Business Source License, use - * of this software will be governed by version 2.0 of the Apache License. + * (c)2021 ZeroTier, Inc. + * https://www.zerotier.com/ */ -/****/ use std::collections::HashSet; diff --git a/zerotier-system-service/src/vnic/mac_feth_tap.rs b/zerotier-system-service/src/vnic/mac_feth_tap.rs index 8cd7926e4..c6d8ae3f5 100644 --- a/zerotier-system-service/src/vnic/mac_feth_tap.rs +++ b/zerotier-system-service/src/vnic/mac_feth_tap.rs @@ -1,15 +1,10 @@ -/* - * Copyright (c)2013-2021 ZeroTier, Inc. +/* This Source Code Form is subject to the terms of the Mozilla Public + * License, v. 2.0. If a copy of the MPL was not distributed with this + * file, You can obtain one at https://mozilla.org/MPL/2.0/. * - * Use of this software is governed by the Business Source License included - * in the LICENSE.TXT file in the project's root directory. - * - * Change Date: 2026-01-01 - * - * On the date above, in accordance with the Business Source License, use - * of this software will be governed by version 2.0 of the Apache License. + * (c)2021 ZeroTier, Inc. + * https://www.zerotier.com/ */ -/****/ /* * This creates a pair of feth devices with the lower numbered device diff --git a/zerotier-system-service/src/vnic/mod.rs b/zerotier-system-service/src/vnic/mod.rs index 7a0d395f2..a72e7a02f 100644 --- a/zerotier-system-service/src/vnic/mod.rs +++ b/zerotier-system-service/src/vnic/mod.rs @@ -1,15 +1,10 @@ -/* - * Copyright (c)2013-2021 ZeroTier, Inc. +/* This Source Code Form is subject to the terms of the Mozilla Public + * License, v. 2.0. If a copy of the MPL was not distributed with this + * file, You can obtain one at https://mozilla.org/MPL/2.0/. * - * Use of this software is governed by the Business Source License included - * in the LICENSE.TXT file in the project's root directory. - * - * Change Date: 2026-01-01 - * - * On the date above, in accordance with the Business Source License, use - * of this software will be governed by version 2.0 of the Apache License. + * (c)2021 ZeroTier, Inc. + * https://www.zerotier.com/ */ -/****/ mod vnic; mod common; diff --git a/zerotier-system-service/src/vnic/vnic.rs b/zerotier-system-service/src/vnic/vnic.rs index c81c33dcb..f890755a3 100644 --- a/zerotier-system-service/src/vnic/vnic.rs +++ b/zerotier-system-service/src/vnic/vnic.rs @@ -1,15 +1,10 @@ -/* - * Copyright (c)2013-2021 ZeroTier, Inc. +/* This Source Code Form is subject to the terms of the Mozilla Public + * License, v. 2.0. If a copy of the MPL was not distributed with this + * file, You can obtain one at https://mozilla.org/MPL/2.0/. * - * Use of this software is governed by the Business Source License included - * in the LICENSE.TXT file in the project's root directory. - * - * Change Date: 2026-01-01 - * - * On the date above, in accordance with the Business Source License, use - * of this software will be governed by version 2.0 of the Apache License. + * (c)2021 ZeroTier, Inc. + * https://www.zerotier.com/ */ -/****/ use zerotier_network_hypervisor::vl2::MulticastGroup;