From 4e85213473472385fd4c11b8a8f3963e09c20114 Mon Sep 17 00:00:00 2001 From: Adam Ierymenko Date: Wed, 29 Jan 2014 09:58:17 -0800 Subject: Yank RuntimeEnvironment from SysEnv. --- node/SysEnv.hpp | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) (limited to 'node/SysEnv.hpp') diff --git a/node/SysEnv.hpp b/node/SysEnv.hpp index 4f4a4f16..d5797c16 100644 --- a/node/SysEnv.hpp +++ b/node/SysEnv.hpp @@ -30,6 +30,8 @@ #include +#include + #include "NonCopyable.hpp" namespace ZeroTier { @@ -42,16 +44,16 @@ class RuntimeEnvironment; class SysEnv : NonCopyable { public: - SysEnv(const RuntimeEnvironment *renv); + SysEnv(); ~SysEnv(); /** + * This computes a CRC-type code from gathered information about your network settings + * + * @param ignoreDevices Ignore these local network devices by OS-specific name (e.g. our taps) * @return Fingerprint of currently running network environment */ - uint64_t getNetworkConfigurationFingerprint(); - -private: - const RuntimeEnvironment *_r; + uint64_t getNetworkConfigurationFingerprint(const std::set &ignoreDevices); }; } // namespace ZeroTier -- cgit v1.2.3