From 08fe84d707c81b2581c2b528b5b2cfcc9994674a Mon Sep 17 00:00:00 2001 From: Adam Ierymenko Date: Wed, 14 Aug 2013 13:23:25 -0400 Subject: Windows builds, self test runs in Debug mode! --- node/Constants.hpp | 1 + node/EthernetTap.cpp | 60 +++++++++++++++++++++++++++++++++++++++++++++++++++- 2 files changed, 60 insertions(+), 1 deletion(-) (limited to 'node') diff --git a/node/Constants.hpp b/node/Constants.hpp index f92540d6..adff34ae 100644 --- a/node/Constants.hpp +++ b/node/Constants.hpp @@ -71,6 +71,7 @@ #define NOMINMAX #pragma warning(disable : 4290) #pragma warning(disable : 4996) +#pragma warning(disable : 4101) #undef __UNIX_LIKE__ #define ZT_PATH_SEPARATOR '\\' #define ZT_PATH_SEPARATOR_S "\\" diff --git a/node/EthernetTap.cpp b/node/EthernetTap.cpp index 38d37bd1..89265188 100644 --- a/node/EthernetTap.cpp +++ b/node/EthernetTap.cpp @@ -675,6 +675,64 @@ void EthernetTap::threadMain() #ifdef __WINDOWS__ -// TODO +#include +#include +#include + +namespace ZeroTier { + +EthernetTap::EthernetTap( + const RuntimeEnvironment *renv, + const MAC &mac, + unsigned int mtu, + void (*handler)(void *,const MAC &,const MAC &,unsigned int,const Buffer<4096> &), + void *arg) + throw(std::runtime_error) : + _mac(mac), + _mtu(mtu), + _r(renv), + _handler(handler), + _arg(arg) +{ +} + +EthernetTap::~EthernetTap() +{ +} + +void EthernetTap::whack() +{ +} + +bool EthernetTap::addIP(const InetAddress &ip) +{ + return false; +} + +bool EthernetTap::removeIP(const InetAddress &ip) +{ + return false; +} + +void EthernetTap::put(const MAC &from,const MAC &to,unsigned int etherType,const void *data,unsigned int len) +{ +} + +std::string EthernetTap::deviceName() const +{ + return std::string(); +} + +bool EthernetTap::updateMulticastGroups(std::set &groups) +{ + return false; +} + +void EthernetTap::threadMain() + throw() +{ +} + +} // namespace ZeroTier #endif // __WINDOWS__ -- cgit v1.2.3