Rest -> MPL except controller.

This commit is contained in:
Adam Ierymenko
2025-08-06 12:16:44 -04:00
parent 9aff094b6f
commit f6d52dd96c
57 changed files with 2411 additions and 2371 deletions
+15 -20
View File
@@ -1,15 +1,10 @@
/*
* Copyright (c)2019 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) ZeroTier, Inc.
* https://www.zerotier.com/
*/
/****/
/**
* @file
@@ -29,20 +24,20 @@
#include <string.h>
#define ZT_MSG_INFO true
#define ZT_COLOR true
#define ZT_COLOR true
// Debug output colors
#if defined(__APPLE__)
#include "TargetConditionals.h"
#endif
#if defined(ZT_COLOR) && ! defined(_WIN32) && ! defined(__ANDROID__) && ! defined(TARGET_OS_IPHONE) && ! defined(TARGET_IPHONE_SIMULATOR) && ! defined(__APP_FRAMEWORK__)
#define ZT_RED "\x1B[31m"
#define ZT_GRN "\x1B[32m"
#define ZT_YEL "\x1B[33m"
#define ZT_BLU "\x1B[34m"
#define ZT_MAG "\x1B[35m"
#define ZT_CYN "\x1B[36m"
#define ZT_WHT "\x1B[37m"
#define ZT_RED "\x1B[31m"
#define ZT_GRN "\x1B[32m"
#define ZT_YEL "\x1B[33m"
#define ZT_BLU "\x1B[34m"
#define ZT_MAG "\x1B[35m"
#define ZT_CYN "\x1B[36m"
#define ZT_WHT "\x1B[37m"
#define ZT_RESET "\x1B[0m"
#else
#define ZT_RED
@@ -90,7 +85,7 @@
#else
#define DEBUG_INFO(fmt, args...)
#endif
#else // blank
#else // blank
#if defined(_WIN32)
#define DEBUG_INFO(...)
#else
@@ -98,4 +93,4 @@
#endif
#endif
#endif // _H
#endif // _H
+983 -988
View File
File diff suppressed because it is too large Load Diff
+5 -10
View File
@@ -1,15 +1,10 @@
/*
* Copyright (c)2019 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) ZeroTier, Inc.
* https://www.zerotier.com/
*/
/****/
#include "Arp.hpp"
+5 -10
View File
@@ -1,15 +1,10 @@
/*
* Copyright (c)2019 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) ZeroTier, Inc.
* https://www.zerotier.com/
*/
/****/
#ifndef ZT_ARP_HPP
#define ZT_ARP_HPP
+5 -10
View File
@@ -1,15 +1,10 @@
/*
* Copyright (c)2019 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) ZeroTier, Inc.
* https://www.zerotier.com/
*/
/****/
#include "BSDEthernetTap.hpp"
+5 -10
View File
@@ -1,15 +1,10 @@
/*
* Copyright (c)2019 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) ZeroTier, Inc.
* https://www.zerotier.com/
*/
/****/
#ifndef ZT_BSDETHERNETTAP_HPP
#define ZT_BSDETHERNETTAP_HPP
+5 -10
View File
@@ -1,15 +1,10 @@
/*
* Copyright (c)2013-2020 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) ZeroTier, Inc.
* https://www.zerotier.com/
*/
/****/
#ifndef ZT_BINDER_HPP
#define ZT_BINDER_HPP
+5 -10
View File
@@ -1,15 +1,10 @@
/*
* Copyright (c)2019 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) ZeroTier, Inc.
* https://www.zerotier.com/
*/
/****/
#ifndef ZT_BLOCKINGQUEUE_HPP
#define ZT_BLOCKINGQUEUE_HPP
+6 -11
View File
@@ -1,15 +1,10 @@
/*
* Copyright (c)2019 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) ZeroTier, Inc.
* https://www.zerotier.com/
*/
/****/
#include "EthernetTap.hpp"
@@ -20,9 +15,9 @@
#ifdef ZT_SDK
#include "../nonfree/controller/EmbeddedNetworkController.hpp"
#include "../include/VirtualTap.hpp"
#include "../node/Node.hpp"
#include "../nonfree/controller/EmbeddedNetworkController.hpp"
#else
+5 -10
View File
@@ -1,15 +1,10 @@
/*
* Copyright (c)2019 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) ZeroTier, Inc.
* https://www.zerotier.com/
*/
/****/
#ifndef ZT_ETHERNETTAP_HPP
#define ZT_ETHERNETTAP_HPP
+5 -10
View File
@@ -1,15 +1,10 @@
/*
* Copyright (c)2019 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) ZeroTier, Inc.
* https://www.zerotier.com/
*/
/****/
#include "ExtOsdep.hpp"
+5 -10
View File
@@ -1,15 +1,10 @@
/*
* Copyright (c)2019 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) ZeroTier, Inc.
* https://www.zerotier.com/
*/
/****/
#ifndef ZT_EXTOSDEP_HPP
#define ZT_EXTOSDEP_HPP
+5 -10
View File
@@ -1,15 +1,10 @@
/*
* Copyright (c)2019 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) ZeroTier, Inc.
* https://www.zerotier.com/
*/
/****/
#include "Http.hpp"
+5 -10
View File
@@ -1,15 +1,10 @@
/*
* Copyright (c)2019 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) ZeroTier, Inc.
* https://www.zerotier.com/
*/
/****/
#ifndef ZT_HTTP_HPP
#define ZT_HTTP_HPP
+5 -10
View File
@@ -1,15 +1,10 @@
/*
* Copyright (c)2019 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) ZeroTier, Inc.
* https://www.zerotier.com/
*/
/****/
#ifdef __GNUC__
#pragma GCC diagnostic ignored "-Wrestrict"
+5 -10
View File
@@ -1,15 +1,10 @@
/*
* Copyright (c)2019 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) ZeroTier, Inc.
* https://www.zerotier.com/
*/
/****/
#ifndef ZT_LINUXETHERNETTAP_HPP
#define ZT_LINUXETHERNETTAP_HPP
+5 -10
View File
@@ -1,15 +1,10 @@
/*
* Copyright (c)2019 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) ZeroTier, Inc.
* https://www.zerotier.com/
*/
/****/
#include "../node/Constants.hpp"
+6 -11
View File
@@ -1,15 +1,10 @@
/*
* Copyright (c)2019 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) ZeroTier, Inc.
* https://www.zerotier.com/
*/
/****/
#ifndef ZT_LINUX_NETLINK_HPP
#define ZT_LINUX_NETLINK_HPP
@@ -160,4 +155,4 @@ class LinuxNetLink {
#endif
#endif // ZT_LINUX_NETLINK_HPPS
#endif // ZT_LINUX_NETLINK_HPPS
+8
View File
@@ -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) ZeroTier, Inc.
* https://www.zerotier.com/
*/
#ifndef MAC_DNS_HELPER
#define MAC_DNS_HELPER
+8
View File
@@ -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) ZeroTier, Inc.
* https://www.zerotier.com/
*/
#include "MacDNSHelper.hpp"
#include <stdio.h>

Some files were not shown because too many files have changed in this diff Show More