summaryrefslogtreecommitdiff
path: root/main.cpp
diff options
context:
space:
mode:
authorAdam Ierymenko <adam.ierymenko@gmail.com>2015-03-30 17:48:48 -0700
committerAdam Ierymenko <adam.ierymenko@gmail.com>2015-03-30 17:48:48 -0700
commit60158aa5dd38c979ed823fc477ab84e8d9e7a43d (patch)
tree8cdc7091547c8173fdc270ed3d56853ddc5e6da4 /main.cpp
parent3c1a59fa2493c6ab2758934fe1062d82975de158 (diff)
downloadinfinitytier-60158aa5dd38c979ed823fc477ab84e8d9e7a43d.tar.gz
infinitytier-60158aa5dd38c979ed823fc477ab84e8d9e7a43d.zip
Turns out that node/ likely has no business with or need for the system IP routing table. So shelve that code for now.
Diffstat (limited to 'main.cpp')
-rw-r--r--main.cpp14
1 files changed, 1 insertions, 13 deletions
diff --git a/main.cpp b/main.cpp
index 7467ba41..c78ffa89 100644
--- a/main.cpp
+++ b/main.cpp
@@ -70,7 +70,6 @@
#include "node/Thread.hpp"
#include "node/CertificateOfMembership.hpp"
#include "node/EthernetTapFactory.hpp"
-#include "node/RoutingTable.hpp"
#include "node/SocketManager.hpp"
#include "control/NodeControlClient.hpp"
@@ -84,31 +83,23 @@
#ifdef __WINDOWS__
#include "osnet/WindowsEthernetTapFactory.hpp"
-#include "osnet/WindowsRoutingTable.hpp"
#define ZTCreatePlatformEthernetTapFactory (new WindowsEthernetTapFactory(homeDir))
-#define ZTCreatePlatformRoutingTable (new WindowsRoutingTable())
#endif // __WINDOWS__
#ifdef __LINUX__
#include "osnet/LinuxEthernetTapFactory.hpp"
-#include "osnet/LinuxRoutingTable.hpp"
#define ZTCreatePlatformEthernetTapFactory (new LinuxEthernetTapFactory())
-#define ZTCreatePlatformRoutingTable (new LinuxRoutingTable())
#endif // __LINUX__
#ifdef __APPLE__
#include "osnet/OSXEthernetTapFactory.hpp"
-#include "osnet/BSDRoutingTable.hpp"
#define ZTCreatePlatformEthernetTapFactory (new OSXEthernetTapFactory(homeDir,"tap.kext"))
-#define ZTCreatePlatformRoutingTable (new BSDRoutingTable())
#endif // __APPLE__
#ifndef ZTCreatePlatformEthernetTapFactory
#ifdef __BSD__
#include "osnet/BSDEthernetTapFactory.hpp"
-#include "osnet/BSDRoutingTable.hpp"
#define ZTCreatePlatformEthernetTapFactory (new BSDEthernetTapFactory())
-#define ZTCreatePlatformRoutingTable (new BSDRoutingTable())
#else
#error Sorry, this platform has no osnet/ implementation yet. Fork me on GitHub and add one?
#endif // __BSD__
@@ -811,7 +802,6 @@ int main(int argc,char **argv)
int exitCode = 0;
bool needsReset = false;
EthernetTapFactory *tapFactory = (EthernetTapFactory *)0;
- RoutingTable *routingTable = (RoutingTable *)0;
SocketManager *socketManager = (SocketManager *)0;
NodeControlService *controlService = (NodeControlService *)0;
NetworkConfigMaster *netconfMaster = (NetworkConfigMaster *)0;
@@ -823,7 +813,6 @@ int main(int argc,char **argv)
std::string authToken(NodeControlClient::getAuthToken((std::string(homeDir) + ZT_PATH_SEPARATOR_S + "authtoken.secret").c_str(),true));
tapFactory = ZTCreatePlatformEthernetTapFactory;
- routingTable = ZTCreatePlatformRoutingTable;
try {
socketManager = new NativeSocketManager(udpPort,tcpPort);
@@ -832,7 +821,7 @@ int main(int argc,char **argv)
throw;
}
- node = new Node(homeDir,tapFactory,routingTable,socketManager,netconfMaster,needsReset,(overrideRootTopology.length() > 0) ? overrideRootTopology.c_str() : (const char *)0);
+ node = new Node(homeDir,tapFactory,socketManager,netconfMaster,needsReset,(overrideRootTopology.length() > 0) ? overrideRootTopology.c_str() : (const char *)0);
controlService = new NodeControlService(node,authToken.c_str());
switch(node->run()) {
@@ -888,7 +877,6 @@ int main(int argc,char **argv)
delete controlService;
delete node; node = (Node *)0;
delete socketManager;
- delete routingTable;
delete tapFactory;
#ifdef __UNIX_LIKE__