diff options
author | Gert Doering | 2015-10-10 18:34:49 +0200 |
---|---|---|
committer | Gert Doering | 2015-10-11 10:25:06 +0200 |
commit | 9403e3f4b510fbc4187044f31be8f7dccbde1cf1 (patch) | |
tree | e4d0fe330a98c29b9ead343ec854891d849e3852 /src/openvpn/comp.h | |
parent | c67acea173dc9ee37220f5b9ff14ede081181992 (diff) | |
download | openvpn-9403e3f4b510fbc4187044f31be8f7dccbde1cf1.zip openvpn-9403e3f4b510fbc4187044f31be8f7dccbde1cf1.tar.gz |
Remove support for snappy compression.
LZ4 is using less CPU at similar performance, and it is easier to
build and support for binary installs (as it does not require C++
and a C++ runtime). Since it was never supported in any formally
released OpenVPN version, just drop it again.
This leaves in the compression opcode for Snappy for documentation
purposes.
trac #617
Signed-off-by: Gert Doering <gert@greenie.muc.de>
Acked-by: Arne Schwabe <arne@rfc2549.org>
Message-Id: <1444494889-28925-1-git-send-email-gert@greenie.muc.de>
URL: http://article.gmane.org/gmane.network.openvpn.devel/10251
Diffstat (limited to 'src/openvpn/comp.h')
-rw-r--r-- | src/openvpn/comp.h | 11 |
1 files changed, 2 insertions, 9 deletions
diff --git a/src/openvpn/comp.h b/src/openvpn/comp.h index bfa25fd..716b1c0 100644 --- a/src/openvpn/comp.h +++ b/src/openvpn/comp.h @@ -24,7 +24,7 @@ /* * Generic compression support. Currently we support - * Snappy, LZO 2 and LZ4. + * LZO 2 and LZ4. */ #ifndef OPENVPN_COMP_H #define OPENVPN_COMP_H @@ -40,7 +40,7 @@ #define COMP_ALG_UNDEF 0 #define COMP_ALG_STUB 1 /* support compression command byte and framing without actual compression */ #define COMP_ALG_LZO 2 /* LZO algorithm */ -#define COMP_ALG_SNAPPY 3 /* Snappy algorithm */ +#define COMP_ALG_SNAPPY 3 /* Snappy algorithm (no longer supported) */ #define COMP_ALG_LZ4 4 /* LZ4 algorithm */ /* Compression flags */ @@ -101,10 +101,6 @@ struct compress_alg #include "lzo.h" #endif -#ifdef ENABLE_SNAPPY -#include "snappy.h" -#endif - #ifdef ENABLE_LZ4 #include "comp-lz4.h" #endif @@ -127,9 +123,6 @@ union compress_workspace_union #ifdef ENABLE_LZO struct lzo_compress_workspace lzo; #endif -#ifdef ENABLE_SNAPPY - struct snappy_workspace snappy; -#endif #ifdef ENABLE_LZ4 struct lz4_workspace lz4; #endif |