Added ButtFlare stub code
This commit is contained in:
parent
0c69fc719f
commit
683ba79ff0
5 changed files with 306 additions and 1 deletions
|
@ -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),
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue