diff options
author | Adam Ierymenko <adam.ierymenko@gmail.com> | 2016-09-27 12:22:25 -0700 |
---|---|---|
committer | Adam Ierymenko <adam.ierymenko@gmail.com> | 2016-09-27 12:22:25 -0700 |
commit | cc4bacc1995d5af6b8ab66973a6d22a229367eb4 (patch) | |
tree | cb34960de2163c61ce17cc03f826d2d6f00e8fc7 /node/NetworkConfig.hpp | |
parent | 15c07c58b610f699fd2a7164fde96712e1595f2b (diff) | |
download | infinitytier-cc4bacc1995d5af6b8ab66973a6d22a229367eb4.tar.gz infinitytier-cc4bacc1995d5af6b8ab66973a6d22a229367eb4.zip |
Cleanup, and implement compression disable flag for networks.
Diffstat (limited to 'node/NetworkConfig.hpp')
-rw-r--r-- | node/NetworkConfig.hpp | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/node/NetworkConfig.hpp b/node/NetworkConfig.hpp index 5ad86855..a548e866 100644 --- a/node/NetworkConfig.hpp +++ b/node/NetworkConfig.hpp @@ -77,6 +77,11 @@ #define ZT_NETWORKCONFIG_FLAG_RULES_RESULT_OF_UNSUPPORTED_MATCH 0x0000000000000008ULL /** + * Flag: disable frame compression + */ +#define ZT_NETWORKCONFIG_FLAG_DISABLE_COMPRESSION 0x0000000000000010ULL + +/** * Device is an active bridge */ #define ZT_NETWORKCONFIG_SPECIALIST_TYPE_ACTIVE_BRIDGE 0x0000020000000000ULL @@ -256,6 +261,11 @@ public: inline bool ndpEmulation() const throw() { return ((this->flags & ZT_NETWORKCONFIG_FLAG_ENABLE_IPV6_NDP_EMULATION) != 0); } /** + * @return True if frames should not be compressed + */ + inline bool disableCompression() const throw() { return ((this->flags & ZT_NETWORKCONFIG_FLAG_DISABLE_COMPRESSION) != 0); } + + /** * @return Network type is public (no access control) */ inline bool isPublic() const throw() { return (this->type == ZT_NETWORK_TYPE_PUBLIC); } |