diff options
| author | Adam Ierymenko <adam.ierymenko@gmail.com> | 2014-01-29 09:58:17 -0800 |
|---|---|---|
| committer | Adam Ierymenko <adam.ierymenko@gmail.com> | 2014-01-29 09:58:17 -0800 |
| commit | 4e85213473472385fd4c11b8a8f3963e09c20114 (patch) | |
| tree | b266c6356b27410fec847acd12082f4cd0e678fb /node/SysEnv.hpp | |
| parent | d6a346ca6e45c1735a991521ebc4b7c9405abf7e (diff) | |
| download | infinitytier-4e85213473472385fd4c11b8a8f3963e09c20114.tar.gz infinitytier-4e85213473472385fd4c11b8a8f3963e09c20114.zip | |
Yank RuntimeEnvironment from SysEnv.
Diffstat (limited to 'node/SysEnv.hpp')
| -rw-r--r-- | node/SysEnv.hpp | 12 |
1 files changed, 7 insertions, 5 deletions
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 <stdint.h> +#include <set> + #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<std::string> &ignoreDevices); }; } // namespace ZeroTier |
