OpenVPN
|
This module offers compression of data channel packets. More...
This module offers compression of data channel packets.
lzo_compress_workspace
structure. This state includes flags which control the module's behavior and preallocated working memory. One such structure is present for each VPN tunnel, and is stored in the context.c2.lzo_compwork
of the context
associated with that VPN tunnel.lzo_compress_workspace
is needed, it must be initialized using the lzo_compress_init()
function. Similarly, every time a lzo_compress_workspace
is no longer needed, it must be cleaned up using the lzo_compress_uninit()
function. These functions take care of the allocation and freeing of internal working memory, but not of the lzo_compress_workspace
structures themselves.lzo_compress_workspace
structures and VPN tunnels, the above-mentioned initialization and cleanup functions are called directly from the init_instance()
and close_instance()
functions, which control the initialization and cleanup of VPN tunnel instances and their associated context
structures.lzo_compress()
lzo_decompress()
ENABLE_LZO
preprocessor macro and the runtime flags stored in lzo_compress_workspace.flags
of the associated VPN tunnel. The latter are initialized from options.lzo
, which gets its value from the process's configuration sources, such as its configuration file or command line options.lzo
library's implementation of the algorithms.