diff options
| author | Joseph Henry <josephjah@gmail.com> | 2017-03-24 17:00:14 -0700 |
|---|---|---|
| committer | Joseph Henry <josephjah@gmail.com> | 2017-03-24 17:00:14 -0700 |
| commit | 683ba79ff0ed4b80c6240fa84d43838027449acd (patch) | |
| tree | 6a413fa8ce975bdb5595e9c32a606a4615fad98d /service/OneService.cpp | |
| parent | 0c69fc719f692141b0c3d41a100de7cb253c2ef7 (diff) | |
| download | infinitytier-683ba79ff0ed4b80c6240fa84d43838027449acd.tar.gz infinitytier-683ba79ff0ed4b80c6240fa84d43838027449acd.zip | |
Added ButtFlare stub code
Diffstat (limited to 'service/OneService.cpp')
| -rw-r--r-- | service/OneService.cpp | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/service/OneService.cpp b/service/OneService.cpp index 1c2fa05d..14f637b4 100644 --- a/service/OneService.cpp +++ b/service/OneService.cpp @@ -67,6 +67,10 @@ #include <ifaddrs.h> #endif +#ifdef ZT_ENABLE_BUTTFLARE +#include "ButtFlare.hpp" +#endif + #ifdef ZT_USE_SYSTEM_HTTP_PARSER #include <http_parser.h> #else @@ -474,6 +478,10 @@ public: unsigned int _clusterMemberId; #endif +#ifdef ZT_ENABLE_BUTTFLARE + ButtFlare *butt; +#endif + // Set to false to force service to stop volatile bool _run; Mutex _run_m; @@ -1914,6 +1922,10 @@ public: try { char friendlyName[128]; Utils::snprintf(friendlyName,sizeof(friendlyName),"ZeroTier One [%.16llx]",nwid); + +#ifdef ZT_ENABLE_BUTTFLARE + butt = new ButtFlare(StapFrameHandler, (void *)this); +#endif n.tap = new EthernetTap( _homePath.c_str(), MAC(nwc->mac), |
