summaryrefslogtreecommitdiff
path: root/service
diff options
context:
space:
mode:
authorDaniel Skowroński <daniel@dsinf.net>2016-12-25 22:54:27 +0100
committerDaniel Skowroński <daniel@dsinf.net>2016-12-25 22:54:27 +0100
commitf09eedbd7adee2a804978182c1f9fdc2a1ad1d6a (patch)
treefb7e589b885435c76ff4b9fc44dbbd1c2fec9443 /service
parent546e8a3b44cff7dc3525a672bfe9806d3ee6144e (diff)
downloadinfinitytier-f09eedbd7adee2a804978182c1f9fdc2a1ad1d6a.tar.gz
infinitytier-f09eedbd7adee2a804978182c1f9fdc2a1ad1d6a.zip
make it compilable
Diffstat (limited to 'service')
-rw-r--r--service/OneService.cpp8
1 files changed, 6 insertions, 2 deletions
diff --git a/service/OneService.cpp b/service/OneService.cpp
index 13820f5c..4dd73c19 100644
--- a/service/OneService.cpp
+++ b/service/OneService.cpp
@@ -114,6 +114,10 @@ namespace ZeroTier { typedef WindowsEthernetTap EthernetTap; }
#include "../osdep/BSDEthernetTap.hpp"
namespace ZeroTier { typedef BSDEthernetTap EthernetTap; }
#endif // __FreeBSD__
+#ifdef __NetBSD__
+#include "../osdep/NetBSDEthernetTap.hpp"
+namespace ZeroTier { typedef NetBSDEthernetTap EthernetTap; }
+#endif // __FreeBSD__
#endif // ZT_SERVICE_NETCON
@@ -1684,7 +1688,7 @@ public:
inline int nodePathCheckFunction(const struct sockaddr_storage *localAddr,const struct sockaddr_storage *remoteAddr)
{
Mutex::Lock _l(_nets_m);
-
+
for(std::map<uint64_t,NetworkState>::const_iterator n(_nets.begin());n!=_nets.end();++n) {
if (n->second.tap) {
std::vector<InetAddress> ips(n->second.tap->ips());
@@ -1695,7 +1699,7 @@ public:
}
}
}
-
+
/* Note: I do not think we need to scan for overlap with managed routes
* because of the "route forking" and interface binding that we do. This
* ensures (we hope) that ZeroTier traffic will still take the physical