osnet -> osdep

This commit is contained in:
Adam Ierymenko 2015-03-31 14:11:21 -07:00
parent 8990fb8267
commit a61acf36d2
7 changed files with 17 additions and 17 deletions

View File

@ -75,33 +75,33 @@
#include "control/NodeControlClient.hpp" #include "control/NodeControlClient.hpp"
#include "control/NodeControlService.hpp" #include "control/NodeControlService.hpp"
#include "osnet/NativeSocketManager.hpp" #include "osdep/NativeSocketManager.hpp"
#ifdef ZT_ENABLE_NETCONF_MASTER #ifdef ZT_ENABLE_NETCONF_MASTER
#include "netconf/SqliteNetworkConfigMaster.hpp" #include "netconf/SqliteNetworkConfigMaster.hpp"
#endif // ZT_ENABLE_NETCONF_MASTER #endif // ZT_ENABLE_NETCONF_MASTER
#ifdef __WINDOWS__ #ifdef __WINDOWS__
#include "osnet/WindowsEthernetTapFactory.hpp" #include "osdep/WindowsEthernetTapFactory.hpp"
#define ZTCreatePlatformEthernetTapFactory (new WindowsEthernetTapFactory(homeDir)) #define ZTCreatePlatformEthernetTapFactory (new WindowsEthernetTapFactory(homeDir))
#endif // __WINDOWS__ #endif // __WINDOWS__
#ifdef __LINUX__ #ifdef __LINUX__
#include "osnet/LinuxEthernetTapFactory.hpp" #include "osdep/LinuxEthernetTapFactory.hpp"
#define ZTCreatePlatformEthernetTapFactory (new LinuxEthernetTapFactory()) #define ZTCreatePlatformEthernetTapFactory (new LinuxEthernetTapFactory())
#endif // __LINUX__ #endif // __LINUX__
#ifdef __APPLE__ #ifdef __APPLE__
#include "osnet/OSXEthernetTapFactory.hpp" #include "osdep/OSXEthernetTapFactory.hpp"
#define ZTCreatePlatformEthernetTapFactory (new OSXEthernetTapFactory(homeDir,"tap.kext")) #define ZTCreatePlatformEthernetTapFactory (new OSXEthernetTapFactory(homeDir,"tap.kext"))
#endif // __APPLE__ #endif // __APPLE__
#ifndef ZTCreatePlatformEthernetTapFactory #ifndef ZTCreatePlatformEthernetTapFactory
#ifdef __BSD__ #ifdef __BSD__
#include "osnet/BSDEthernetTapFactory.hpp" #include "osdep/BSDEthernetTapFactory.hpp"
#define ZTCreatePlatformEthernetTapFactory (new BSDEthernetTapFactory()) #define ZTCreatePlatformEthernetTapFactory (new BSDEthernetTapFactory())
#else #else
#error Sorry, this platform has no osnet/ implementation yet. Fork me on GitHub and add one? #error Sorry, this platform has no osdep/ implementation yet. Fork me on GitHub and add one?
#endif // __BSD__ #endif // __BSD__
#endif // ZTCreatePlatformEthernetTapFactory #endif // ZTCreatePlatformEthernetTapFactory

View File

@ -6,7 +6,7 @@ DEFS=
LIBS= LIBS=
include objects.mk include objects.mk
OBJS+=osnet/BSDEthernetTapFactory.o osnet/BSDEthernetTap.o OBJS+=osdep/BSDEthernetTapFactory.o osdep/BSDEthernetTap.o
TESTNET_OBJS=testnet/SimNet.o testnet/SimNetSocketManager.o testnet/TestEthernetTap.o testnet/TestEthernetTapFactory.o TESTNET_OBJS=testnet/SimNet.o testnet/SimNetSocketManager.o testnet/TestEthernetTap.o testnet/TestEthernetTapFactory.o
# Enable SSE-optimized Salsa20 on x86 and x86_64 machines # Enable SSE-optimized Salsa20 on x86 and x86_64 machines
@ -84,7 +84,7 @@ testnet: $(TESTNET_OBJS) $(OBJS) testnet.o
# ./buildinstaller.sh # ./buildinstaller.sh
clean: clean:
rm -rf $(OBJS) $(TESTNET_OBJS) node/*.o osnet/*.o control/*.o testnet/*.o *.o zerotier-* build-* ZeroTierOneInstaller-* rm -rf $(OBJS) $(TESTNET_OBJS) node/*.o osdep/*.o control/*.o testnet/*.o *.o zerotier-* build-* ZeroTierOneInstaller-*
debug: FORCE debug: FORCE
make -j 4 ZT_DEBUG=1 make -j 4 ZT_DEBUG=1

View File

@ -7,7 +7,7 @@ DEFS=
LIBS= LIBS=
include objects.mk include objects.mk
OBJS+=osnet/LinuxEthernetTap.o osnet/LinuxEthernetTapFactory.o OBJS+=osdep/LinuxEthernetTap.o osdep/LinuxEthernetTapFactory.o
TESTNET_OBJS=testnet/SimNet.o testnet/SimNetSocketManager.o testnet/TestEthernetTap.o testnet/TestEthernetTapFactory.o TESTNET_OBJS=testnet/SimNet.o testnet/SimNetSocketManager.o testnet/TestEthernetTap.o testnet/TestEthernetTapFactory.o
# Enable SSE-optimized Salsa20 on x86 and x86_64 machines # Enable SSE-optimized Salsa20 on x86 and x86_64 machines
@ -89,7 +89,7 @@ installer: one FORCE
./buildinstaller.sh ./buildinstaller.sh
clean: clean:
rm -rf *.o netconf/*.o node/*.o osnet/*.o control/*.o testnet/*.o ext/lz4/*.o zerotier-* build-* ZeroTierOneInstaller-* *.deb *.rpm rm -rf *.o netconf/*.o node/*.o osdep/*.o control/*.o testnet/*.o ext/lz4/*.o zerotier-* build-* ZeroTierOneInstaller-* *.deb *.rpm
debug: FORCE debug: FORCE
make -j 4 ZT_DEBUG=1 make -j 4 ZT_DEBUG=1

View File

@ -7,7 +7,7 @@ LIBS=
ARCH_FLAGS=-arch i386 -arch x86_64 ARCH_FLAGS=-arch i386 -arch x86_64
include objects.mk include objects.mk
OBJS+=osnet/OSXEthernetTap.o osnet/OSXEthernetTapFactory.o OBJS+=osdep/OSXEthernetTap.o osdep/OSXEthernetTapFactory.o
TESTNET_OBJS=testnet/SimNet.o testnet/SimNetSocketManager.o testnet/TestEthernetTap.o testnet/TestEthernetTapFactory.o TESTNET_OBJS=testnet/SimNet.o testnet/SimNetSocketManager.o testnet/TestEthernetTap.o testnet/TestEthernetTapFactory.o
# Disable codesign since open source users will not have ZeroTier's certs # Disable codesign since open source users will not have ZeroTier's certs
@ -77,7 +77,7 @@ mac-ui: FORCE
$(CODESIGN) -vvv "build-ZeroTierUI-release/ZeroTier One.app" $(CODESIGN) -vvv "build-ZeroTierUI-release/ZeroTier One.app"
clean: clean:
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" 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"
# For our use -- builds official signed binary, packages in installer and download DMG # For our use -- builds official signed binary, packages in installer and download DMG
official: FORCE official: FORCE

View File

@ -1,7 +1,7 @@
OBJS=\ OBJS=\
ext/lz4/lz4.o \ ext/lz4/lz4.o \
ext/http-parser/http_parser.o \ ext/http-parser/http_parser.o \
osnet/NativeSocketManager.o \ osdep/NativeSocketManager.o \
node/C25519.o \ node/C25519.o \
node/CertificateOfMembership.o \ node/CertificateOfMembership.o \
node/Defaults.o \ node/Defaults.o \

View File

@ -58,7 +58,7 @@
#include "node/Node.hpp" #include "node/Node.hpp"
#ifdef ZT_TEST_PHY #ifdef ZT_TEST_PHY
#include "osnet/Phy.hpp" #include "osdep/Phy.hpp"
#endif #endif
#ifdef ZT_ENABLE_NETCONF_MASTER #ifdef ZT_ENABLE_NETCONF_MASTER

View File

@ -40,9 +40,9 @@
#include "../../control/NodeControlClient.hpp" #include "../../control/NodeControlClient.hpp"
#include "../../control/NodeControlService.hpp" #include "../../control/NodeControlService.hpp"
#include "../../osnet/WindowsEthernetTapFactory.hpp" #include "../../osdep/WindowsEthernetTapFactory.hpp"
#include "../../osnet/WindowsRoutingTable.hpp" #include "../../osdep/WindowsRoutingTable.hpp"
#include "../../osnet/NativeSocketManager.hpp" #include "../../osdep/NativeSocketManager.hpp"
#pragma endregion // Includes #pragma endregion // Includes