diff options
author | Adam Ierymenko <adam.ierymenko@gmail.com> | 2017-11-07 14:59:03 -0800 |
---|---|---|
committer | Adam Ierymenko <adam.ierymenko@gmail.com> | 2017-11-07 14:59:03 -0800 |
commit | b8cbf08617a1d461617a1182331139197cb68f66 (patch) | |
tree | 1be5638f6f2928df63bc623274486dbd23bb798d | |
parent | f5014d7d7179a77311f58f8bd0dced0ea83f2885 (diff) | |
parent | e5d1243dd225526b044d36b15dd28a74c49a8816 (diff) | |
download | infinitytier-b8cbf08617a1d461617a1182331139197cb68f66.tar.gz infinitytier-b8cbf08617a1d461617a1182331139197cb68f66.zip |
Merge branch 'dev' of http://10.6.6.2/zerotier/ZeroTierOne into dev
-rw-r--r-- | service/OneService.cpp | 10 | ||||
-rw-r--r-- | service/OneService.hpp | 6 |
2 files changed, 8 insertions, 8 deletions
diff --git a/service/OneService.cpp b/service/OneService.cpp index e962fb5b..8081d00a 100644 --- a/service/OneService.cpp +++ b/service/OneService.cpp @@ -99,7 +99,7 @@ namespace ZeroTier { typedef TestEthernetTap EthernetTap; } #include "../controller/EmbeddedNetworkController.hpp" #include "../node/Node.hpp" // Use the virtual netcon endpoint instead of a tun/tap port driver -#include "../src/VirtualTap.hpp" +#include "../include/VirtualTap.h" namespace ZeroTier { typedef VirtualTap EthernetTap; } #else @@ -916,14 +916,14 @@ public: } #ifdef ZT_SDK - virtual void leave(const char *hp) + virtual void leave(const uint64_t hp) { - _node->leave(Utils::hexStrToU64(hp),NULL,NULL); + _node->leave(hp, NULL, NULL); } - virtual void join(const char *hp) + virtual void join(const uint64_t hp) { - _node->join(Utils::hexStrToU64(hp),NULL,NULL); + _node->join(hp, NULL, NULL); } virtual std::string givenHomePath() diff --git a/service/OneService.hpp b/service/OneService.hpp index b0467419..23e572d0 100644 --- a/service/OneService.hpp +++ b/service/OneService.hpp @@ -35,7 +35,7 @@ #ifdef ZT_SDK #include "../node/Node.hpp" // Use the virtual netcon endpoint instead of a tun/tap port driver -#include "../src/VirtualTap.hpp" +#include "../include/VirtualTap.h" namespace ZeroTier { typedef VirtualTap EthernetTap; } #endif @@ -147,8 +147,8 @@ public: virtual std::string portDeviceName(uint64_t nwid) const = 0; #ifdef ZT_SDK - virtual void leave(const char *hp) = 0; - virtual void join(const char *hp) = 0; + virtual void leave(const uint64_t hp) = 0; + virtual void join(const uint64_t hp) = 0; virtual std::string givenHomePath() = 0; virtual Node * getNode() = 0; virtual void removeNets() = 0; |