]> git.ipfire.org Git - thirdparty/openvpn.git/commit - src/openvpn/init.c
Added support for the Snappy compression algorithm
authorJames Yonan <james@openvpn.net>
Tue, 18 Sep 2012 06:33:34 +0000 (08:33 +0200)
committerGert Doering <gert@greenie.muc.de>
Sun, 19 May 2013 17:42:03 +0000 (19:42 +0200)
commit38d96bd7975e626d490b3d9f9514d81e070a5495
tree9c53c2474bd80f711569c5e2301caf7f2240c2c2
parenta19e35a95bf4a0177ae115535a3755d3acd894e9
Added support for the Snappy compression algorithm

Added support for the Snappy compression algorithm which has shown to
have considerably better compression speed than LZO at a comparable
compression ratio.

To enable Snappy add:

  compress snappy

to both client and server config files.

Alternatively, enable compression framing on the client:

  compress

and have the server selectively push "compress snappy" to the client.

This change also extends the client capability handshake to include
IV_SNAPPY so the server can be aware that a connecting client supports
Snappy.

Note that the Snappy implementation also includes an improved framing
approach where the first byte of the compressed payload is replaced by
the compression control byte (the first payload byte is moved to the end
of the packet).  This solves off-by-one alignment issues, which improves
performance on ARM.

By default, the configure script will try to build with Snappy support.
To disable, use the --disable-snappy option.

The --enable-lzo-stub configure directive is now --enable-comp-stub
(because it's not actually "lzo" but "compression-enabled packet framing")

Add compression overhead to extra buffer unconditionally, as long
as USE_COMP is defined.

OpenVPN SVN r8206 (2.1.21a) and r8212 (2.1.21b)

Signed-off-by: Gert Doering <gert@greenie.muc.de>
Acked-by: Arne Schwabe <arne@rfc2549.org>
Message-Id: <1366393268-27392-3-git-send-email-gert@greenie.muc.de>
URL: http://article.gmane.org/gmane.network.openvpn.devel/7531
Signed-off-by: Gert Doering <gert@greenie.muc.de>
19 files changed:
configure.ac
doc/openvpn.8
src/openvpn/Makefile.am
src/openvpn/comp.c [new file with mode: 0644]
src/openvpn/comp.h [new file with mode: 0644]
src/openvpn/compstub.c [new file with mode: 0644]
src/openvpn/forward.c
src/openvpn/init.c
src/openvpn/lzo.c
src/openvpn/lzo.h
src/openvpn/openvpn.h
src/openvpn/options.c
src/openvpn/options.h
src/openvpn/sig.c
src/openvpn/snappy.c [new file with mode: 0644]
src/openvpn/snappy.h [new file with mode: 0644]
src/openvpn/ssl.c
src/openvpn/ssl_common.h
src/openvpn/syshead.h