]> git.ipfire.org Git - thirdparty/openvpn.git/commit - src/openvpn/comp.c
Implement LZ4 compression.
authorGert Doering <gert@greenie.muc.de>
Wed, 1 Jan 2014 21:57:58 +0000 (22:57 +0100)
committerGert Doering <gert@greenie.muc.de>
Mon, 6 Jan 2014 11:18:53 +0000 (12:18 +0100)
commit40efb6359aff0e4805c0439acd6e899c687ef058
treeff119c7a017fa18f939f76e0f2577ef9a94f8d1d
parent56ab21091c0f1e07d0a6ef7815160f6ae072498d
Implement LZ4 compression.

Implement LZ4 compression, similar to the existing snappy / push-peer-info
model: a LZ4 capable client will send IV_LZ4=1 to the server, and the
algorithm is selected by pushing "compress lz4" back.

LZ4 does not compress as well as LZO or Snappy, but needs far less CPU
and is much faster, thus better suited for mobile devices.  See
https://code.google.com/p/lz4/ for more details.

LZ4 include and library path can be specified by specifying LZ4_LIBS=...
and LZ4_CFLAGS=... on the configure command line.

Signed-off-by: Gert Doering <gert@greenie.muc.de>
Acked-by: Arne Schwabe <arne@rfc2549.org>
Message-Id: <1388613479-22377-1-git-send-email-gert@greenie.muc.de>
URL: http://article.gmane.org/gmane.network.openvpn.devel/8153
configure.ac
src/openvpn/Makefile.am
src/openvpn/comp-lz4.c [new file with mode: 0644]
src/openvpn/comp-lz4.h [new file with mode: 0644]
src/openvpn/comp.c
src/openvpn/comp.h
src/openvpn/init.c
src/openvpn/options.c
src/openvpn/syshead.h