Skip to content

Commit a61acf3

Browse files
committed
osnet -> osdep
1 parent 8990fb8 commit a61acf3

File tree

7 files changed

+17
-17
lines changed

7 files changed

+17
-17
lines changed

Diff for: main.cpp

+6-6
Original file line numberDiff line numberDiff line change
@@ -75,33 +75,33 @@
7575
#include "control/NodeControlClient.hpp"
7676
#include "control/NodeControlService.hpp"
7777

78-
#include "osnet/NativeSocketManager.hpp"
78+
#include "osdep/NativeSocketManager.hpp"
7979

8080
#ifdef ZT_ENABLE_NETCONF_MASTER
8181
#include "netconf/SqliteNetworkConfigMaster.hpp"
8282
#endif // ZT_ENABLE_NETCONF_MASTER
8383

8484
#ifdef __WINDOWS__
85-
#include "osnet/WindowsEthernetTapFactory.hpp"
85+
#include "osdep/WindowsEthernetTapFactory.hpp"
8686
#define ZTCreatePlatformEthernetTapFactory (new WindowsEthernetTapFactory(homeDir))
8787
#endif // __WINDOWS__
8888

8989
#ifdef __LINUX__
90-
#include "osnet/LinuxEthernetTapFactory.hpp"
90+
#include "osdep/LinuxEthernetTapFactory.hpp"
9191
#define ZTCreatePlatformEthernetTapFactory (new LinuxEthernetTapFactory())
9292
#endif // __LINUX__
9393

9494
#ifdef __APPLE__
95-
#include "osnet/OSXEthernetTapFactory.hpp"
95+
#include "osdep/OSXEthernetTapFactory.hpp"
9696
#define ZTCreatePlatformEthernetTapFactory (new OSXEthernetTapFactory(homeDir,"tap.kext"))
9797
#endif // __APPLE__
9898

9999
#ifndef ZTCreatePlatformEthernetTapFactory
100100
#ifdef __BSD__
101-
#include "osnet/BSDEthernetTapFactory.hpp"
101+
#include "osdep/BSDEthernetTapFactory.hpp"
102102
#define ZTCreatePlatformEthernetTapFactory (new BSDEthernetTapFactory())
103103
#else
104-
#error Sorry, this platform has no osnet/ implementation yet. Fork me on GitHub and add one?
104+
#error Sorry, this platform has no osdep/ implementation yet. Fork me on GitHub and add one?
105105
#endif // __BSD__
106106
#endif // ZTCreatePlatformEthernetTapFactory
107107

Diff for: make-freebsd.mk

+2-2
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ DEFS=
66
LIBS=
77

88
include objects.mk
9-
OBJS+=osnet/BSDEthernetTapFactory.o osnet/BSDEthernetTap.o
9+
OBJS+=osdep/BSDEthernetTapFactory.o osdep/BSDEthernetTap.o
1010
TESTNET_OBJS=testnet/SimNet.o testnet/SimNetSocketManager.o testnet/TestEthernetTap.o testnet/TestEthernetTapFactory.o
1111

1212
# Enable SSE-optimized Salsa20 on x86 and x86_64 machines
@@ -84,7 +84,7 @@ testnet: $(TESTNET_OBJS) $(OBJS) testnet.o
8484
# ./buildinstaller.sh
8585

8686
clean:
87-
rm -rf $(OBJS) $(TESTNET_OBJS) node/*.o osnet/*.o control/*.o testnet/*.o *.o zerotier-* build-* ZeroTierOneInstaller-*
87+
rm -rf $(OBJS) $(TESTNET_OBJS) node/*.o osdep/*.o control/*.o testnet/*.o *.o zerotier-* build-* ZeroTierOneInstaller-*
8888

8989
debug: FORCE
9090
make -j 4 ZT_DEBUG=1

Diff for: make-linux.mk

+2-2
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ DEFS=
77
LIBS=
88

99
include objects.mk
10-
OBJS+=osnet/LinuxEthernetTap.o osnet/LinuxEthernetTapFactory.o
10+
OBJS+=osdep/LinuxEthernetTap.o osdep/LinuxEthernetTapFactory.o
1111
TESTNET_OBJS=testnet/SimNet.o testnet/SimNetSocketManager.o testnet/TestEthernetTap.o testnet/TestEthernetTapFactory.o
1212

1313
# Enable SSE-optimized Salsa20 on x86 and x86_64 machines
@@ -89,7 +89,7 @@ installer: one FORCE
8989
./buildinstaller.sh
9090

9191
clean:
92-
rm -rf *.o netconf/*.o node/*.o osnet/*.o control/*.o testnet/*.o ext/lz4/*.o zerotier-* build-* ZeroTierOneInstaller-* *.deb *.rpm
92+
rm -rf *.o netconf/*.o node/*.o osdep/*.o control/*.o testnet/*.o ext/lz4/*.o zerotier-* build-* ZeroTierOneInstaller-* *.deb *.rpm
9393

9494
debug: FORCE
9595
make -j 4 ZT_DEBUG=1

Diff for: make-mac.mk

+2-2
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ LIBS=
77
ARCH_FLAGS=-arch i386 -arch x86_64
88

99
include objects.mk
10-
OBJS+=osnet/OSXEthernetTap.o osnet/OSXEthernetTapFactory.o
10+
OBJS+=osdep/OSXEthernetTap.o osdep/OSXEthernetTapFactory.o
1111
TESTNET_OBJS=testnet/SimNet.o testnet/SimNetSocketManager.o testnet/TestEthernetTap.o testnet/TestEthernetTapFactory.o
1212

1313
# Disable codesign since open source users will not have ZeroTier's certs
@@ -77,7 +77,7 @@ mac-ui: FORCE
7777
$(CODESIGN) -vvv "build-ZeroTierUI-release/ZeroTier One.app"
7878

7979
clean:
80-
rm -rf *.dSYM build-* *.o netconf/*.o control/*.o node/*.o testnet/*.o osnet/*.o ext/http-parser/*.o ext/lz4/*.o zerotier-* ZeroTierOneInstaller-* "ZeroTier One.zip" "ZeroTier One.dmg"
80+
rm -rf *.dSYM build-* *.o netconf/*.o control/*.o node/*.o testnet/*.o osdep/*.o ext/http-parser/*.o ext/lz4/*.o zerotier-* ZeroTierOneInstaller-* "ZeroTier One.zip" "ZeroTier One.dmg"
8181

8282
# For our use -- builds official signed binary, packages in installer and download DMG
8383
official: FORCE

Diff for: objects.mk

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
OBJS=\
22
ext/lz4/lz4.o \
33
ext/http-parser/http_parser.o \
4-
osnet/NativeSocketManager.o \
4+
osdep/NativeSocketManager.o \
55
node/C25519.o \
66
node/CertificateOfMembership.o \
77
node/Defaults.o \

Diff for: selftest.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@
5858
#include "node/Node.hpp"
5959

6060
#ifdef ZT_TEST_PHY
61-
#include "osnet/Phy.hpp"
61+
#include "osdep/Phy.hpp"
6262
#endif
6363

6464
#ifdef ZT_ENABLE_NETCONF_MASTER

Diff for: windows/ZeroTierOne/ZeroTierOneService.cpp

+3-3
Original file line numberDiff line numberDiff line change
@@ -40,9 +40,9 @@
4040
#include "../../control/NodeControlClient.hpp"
4141
#include "../../control/NodeControlService.hpp"
4242

43-
#include "../../osnet/WindowsEthernetTapFactory.hpp"
44-
#include "../../osnet/WindowsRoutingTable.hpp"
45-
#include "../../osnet/NativeSocketManager.hpp"
43+
#include "../../osdep/WindowsEthernetTapFactory.hpp"
44+
#include "../../osdep/WindowsRoutingTable.hpp"
45+
#include "../../osdep/NativeSocketManager.hpp"
4646

4747
#pragma endregion // Includes
4848

0 commit comments

Comments
 (0)