@ -33,7 +33,7 @@
# include "../include/ZeroTierOne.h"
# include "../node/Constants.hpp"
# include "Sqlite NetworkController.hpp"
# include "Embedded NetworkController.hpp"
# include "../node/Node.hpp"
# include "../node/Utils.hpp"
@ -337,7 +337,7 @@ static bool _parseRule(const json &r,ZT_VirtualNetworkRule &rule)
return false ;
}
SqliteNetworkController : : Sqlite NetworkController( Node * node , const char * dbPath ) :
EmbeddedNetworkController : : Embedded NetworkController( Node * node , const char * dbPath ) :
_node ( node ) ,
_path ( dbPath )
{
@ -585,11 +585,11 @@ SqliteNetworkController::SqliteNetworkController(Node *node,const char *dbPath)
*/
}
Sqlite NetworkController: : ~ Sqlite NetworkController( )
Embedded NetworkController: : ~ Embedded NetworkController( )
{
}
NetworkController : : ResultCode Sqlite NetworkController: : doNetworkConfigRequest ( const InetAddress & fromAddr , const Identity & signingId , const Identity & identity , uint64_t nwid , const Dictionary < ZT_NETWORKCONFIG_METADATA_DICT_CAPACITY > & metaData , NetworkConfig & nc )
NetworkController : : ResultCode Embedded NetworkController: : doNetworkConfigRequest ( const InetAddress & fromAddr , const Identity & signingId , const Identity & identity , uint64_t nwid , const Dictionary < ZT_NETWORKCONFIG_METADATA_DICT_CAPACITY > & metaData , NetworkConfig & nc )
{
if ( ( ( ! signingId ) | | ( ! signingId . hasPrivate ( ) ) ) | | ( signingId . address ( ) . toInt ( ) ! = ( nwid > > 24 ) ) ) {
return NetworkController : : NETCONF_QUERY_INTERNAL_SERVER_ERROR ;
@ -898,7 +898,7 @@ NetworkController::ResultCode SqliteNetworkController::doNetworkConfigRequest(co
return NetworkController : : NETCONF_QUERY_OK ;
}
unsigned int Sqlite NetworkController: : handleControlPlaneHttpGET (
unsigned int Embedded NetworkController: : handleControlPlaneHttpGET (
const std : : vector < std : : string > & path ,
const std : : map < std : : string , std : : string > & urlArgs ,
const std : : map < std : : string , std : : string > & headers ,
@ -1040,7 +1040,7 @@ unsigned int SqliteNetworkController::handleControlPlaneHttpGET(
return 404 ;
}
unsigned int Sqlite NetworkController: : handleControlPlaneHttpPOST (
unsigned int Embedded NetworkController: : handleControlPlaneHttpPOST (
const std : : vector < std : : string > & path ,
const std : : map < std : : string , std : : string > & urlArgs ,
const std : : map < std : : string , std : : string > & headers ,
@ -1155,7 +1155,7 @@ unsigned int SqliteNetworkController::handleControlPlaneHttpPOST(
te . test = test ;
te . jsonResults = " " ;
_node - > circuitTestBegin ( test , & ( Sqlite NetworkController: : _circuitTestCallback ) ) ;
_node - > circuitTestBegin ( test , & ( Embedded NetworkController: : _circuitTestCallback ) ) ;
char json [ 1024 ] ;
Utils : : snprintf ( json , sizeof ( json ) , " { \" testId \" : \" %.16llx \" } " , test - > testId ) ;
@ -1348,7 +1348,7 @@ unsigned int SqliteNetworkController::handleControlPlaneHttpPOST(
return 404 ;
}
unsigned int Sqlite NetworkController: : handleControlPlaneHttpDELETE (
unsigned int Embedded NetworkController: : handleControlPlaneHttpDELETE (
const std : : vector < std : : string > & path ,
const std : : map < std : : string , std : : string > & urlArgs ,
const std : : map < std : : string , std : : string > & headers ,
@ -1394,10 +1394,10 @@ unsigned int SqliteNetworkController::handleControlPlaneHttpDELETE(
return 404 ;
}
void Sqlite NetworkController: : _circuitTestCallback ( ZT_Node * node , ZT_CircuitTest * test , const ZT_CircuitTestReport * report )
void Embedded NetworkController: : _circuitTestCallback ( ZT_Node * node , ZT_CircuitTest * test , const ZT_CircuitTestReport * report )
{
char tmp [ 65535 ] ;
Sqlite NetworkController * const self = reinterpret_cast < Sqlite NetworkController * > ( test - > ptr ) ;
Embedded NetworkController * const self = reinterpret_cast < Embedded NetworkController * > ( test - > ptr ) ;
if ( ! test )
return ;