diff options
author | Adam Ierymenko <adam.ierymenko@gmail.com> | 2015-12-04 13:19:31 -0800 |
---|---|---|
committer | Adam Ierymenko <adam.ierymenko@gmail.com> | 2015-12-04 13:19:31 -0800 |
commit | 425d311ce81a366f78a7b9a2490b94b011cf625a (patch) | |
tree | 3d10dfd99483c1432d16743a8327b04be0848ebf /service | |
parent | ac8918992b647c80c6da4b7c0956fd383b15e9d7 (diff) | |
download | infinitytier-425d311ce81a366f78a7b9a2490b94b011cf625a.tar.gz infinitytier-425d311ce81a366f78a7b9a2490b94b011cf625a.zip |
Merge of netcon with edge and unification of make processes.
Diffstat (limited to 'service')
-rw-r--r-- | service/OneService.cpp | 23 |
1 files changed, 9 insertions, 14 deletions
diff --git a/service/OneService.cpp b/service/OneService.cpp index c3204b5d..ed60ed2d 100644 --- a/service/OneService.cpp +++ b/service/OneService.cpp @@ -92,37 +92,32 @@ class SqliteNetworkController; #endif // Include the right tap device driver for this platform -- add new platforms here -#ifdef ZT_ENABLE_NETCON +#ifdef ZT_SERVICE_NETCON +// In network containers builds, use the virtual netcon endpoint instead of a tun/tap port driver #include "../netcon/NetconEthernetTap.hpp" namespace ZeroTier { typedef NetconEthernetTap EthernetTap; } -#else -#ifdef __APPLE__ +#else // not ZT_SERVICE_NETCON so pick a tap driver +#ifdef __APPLE__ #include "../osdep/OSXEthernetTap.hpp" namespace ZeroTier { typedef OSXEthernetTap EthernetTap; } - -#endif +#endif // __APPLE__ #ifdef __LINUX__ - #include "../osdep/LinuxEthernetTap.hpp" namespace ZeroTier { typedef LinuxEthernetTap EthernetTap; } - -#endif +#endif // __LINUX__ #ifdef __WINDOWS__ - #include "../osdep/WindowsEthernetTap.hpp" namespace ZeroTier { typedef WindowsEthernetTap EthernetTap; } - -#endif +#endif // __WINDOWS__ #ifdef __FreeBSD__ - #include "../osdep/BSDEthernetTap.hpp" namespace ZeroTier { typedef BSDEthernetTap EthernetTap; } +#endif // __FreeBSD__ -#endif -#endif // ZT_ENABLE_NETCON +#endif // ZT_SERVICE_NETCON // Sanity limits for HTTP #define ZT_MAX_HTTP_MESSAGE_SIZE (1024 * 1024 * 64) |