Go to the source code of this file.
◆ COMP_ALG_LZ4
#define COMP_ALG_LZ4 4 /* LZ4 algorithm */ |
◆ COMP_ALG_LZO
#define COMP_ALG_LZO 2 /* LZO algorithm */ |
◆ COMP_ALG_SNAPPY
#define COMP_ALG_SNAPPY 3 /* Snappy algorithm (no longer supported) */ |
◆ COMP_ALG_STUB
#define COMP_ALG_STUB 1 /* support compression command byte and framing without actual compression */ |
◆ COMP_ALG_UNDEF
◆ COMP_ALGV2_LZ4
#define COMP_ALGV2_LZ4 11 |
◆ COMP_ALGV2_UNCOMPRESSED
#define COMP_ALGV2_UNCOMPRESSED 10 |
◆ COMP_F_ADAPTIVE
◆ COMP_F_ADVERTISE_STUBS_ONLY
#define COMP_F_ADVERTISE_STUBS_ONLY (1<<3) /* tell server that we only support compression stubs */ |
◆ COMP_F_ALLOW_ASYM
#define COMP_F_ALLOW_ASYM (1<<6) /* Compression was explicitly set to allow asymetric compression */ |
◆ COMP_F_ALLOW_COMPRESS
#define COMP_F_ALLOW_COMPRESS (1<<1) /* not only downlink is compressed but also uplink */ |
◆ COMP_F_ALLOW_NOCOMP_ONLY
#define COMP_F_ALLOW_NOCOMP_ONLY (1<<7) /* Do not allow compression framing (breaks DCO) */ |
◆ COMP_F_ALLOW_STUB_ONLY
#define COMP_F_ALLOW_STUB_ONLY |
Value:
Definition at line 39 of file comp.h.
◆ COMP_F_MIGRATE
#define COMP_F_MIGRATE (1<<5) /* push stub-v2 or comp-lzo no when we see a client with comp-lzo in occ */ |
◆ COMP_F_SWAP
#define COMP_F_SWAP (1<<2) /* initial command byte is swapped with last byte in buffer to preserve payload alignment */ |
◆ check_compression_settings_valid()
bool check_compression_settings_valid |
( |
struct compress_options * |
info, |
|
|
int |
msglevel |
|
) |
| |
Checks if the compression settings are valid.
Takes into account the flags of allow-compression and also the whether algorithms are compiled in
Definition at line 163 of file comp.c.
References compress_options::alg, COMP_ALG_LZ4, COMP_ALG_LZO, COMP_ALG_UNDEF, COMP_ALGV2_LZ4, COMP_ALGV2_UNCOMPRESSED, COMP_F_ALLOW_NOCOMP_ONLY, COMP_F_ALLOW_STUB_ONLY, comp_non_stub_enabled(), compress_options::flags, and msg.
Referenced by do_deferred_options(), multi_connection_established(), and options_postprocess_mutate().
◆ comp_non_stub_enabled()