Ticket #270: 8212.patch
File 8212.patch, 2.8 KB (added by , 11 years ago) |
---|
-
init.c
From: James Yonan <james@openvpn.net> Date: mar, 18 set 2012 09:33:34 +0300 Subject: [PATCH] Minor fixes to compression code introduced in previous commit: Add compression overhead to extra buffer unconditionally, as long as USE_COMP is defined. Remove "compress no" option since it is redundant with "compress" by itself. Version 2.1.21b ---
a b 2356 2356 2357 2357 #ifdef USE_COMP 2358 2358 /* 2359 * Modify frame parameters if compression is enabled.2359 * Modify frame parameters if compression is compiled. 2360 2360 * Should be called after frame_finalize_options. 2361 2361 */ 2362 if (comp_enabled(&c->options.comp)) 2363 { 2364 comp_add_to_extra_buffer (&c->c2.frame); 2362 comp_add_to_extra_buffer (&c->c2.frame); 2365 2363 #ifdef ENABLE_FRAGMENT 2366 2364 comp_add_to_extra_buffer (&c->c2.frame_fragment_omit); /* omit compression frame delta from final frame_fragment */ 2367 2365 #endif 2368 }2369 2366 #endif /* USE_COMP */ 2370 2367 2371 2368 #ifdef ENABLE_FRAGMENT -
version.m4
a b 1 1 dnl define the OpenVPN version 2 define(PRODUCT_VERSION,[2.1.21 a])2 define(PRODUCT_VERSION,[2.1.21b]) 3 3 dnl define the TAP version 4 4 define(PRODUCT_TAP_ID,[tap0901]) 5 5 define(PRODUCT_TAP_WIN32_MIN_MAJOR,[9]) -
openvpn.8
a b 2261 2261 2262 2262 The 2263 2263 .B algorithm 2264 parameter may be "snappy", "lzo", "stub", or "no". Snappy and LZO2264 parameter may be "snappy", "lzo", or empty. Snappy and LZO 2265 2265 are different compression algorithms, with Snappy generally 2266 2266 offering the best performance. 2267 2267 2268 "no" indicates that compression should be turned off, but the packet 2269 framing for compression is still enabled, allowing a different 2270 setting to be later pushed. 2268 If the 2269 .B algorithm 2270 parameter is empty, compression will be turned off, but the packet 2271 framing for compression will still be enabled, allowing a different 2272 setting to be pushed later. 2271 2273 .\"********************************************************* 2272 2274 .TP 2273 2275 .B --comp-lzo [mode] -
options.c
a b 5627 5627 VERIFY_PERMISSION (OPT_P_COMP); 5628 5628 if (p[1]) 5629 5629 { 5630 if (streq (p[1], "no"))5631 {5632 options->comp.alg = COMP_ALG_STUB;5633 options->comp.flags = COMP_F_SWAP;5634 }5635 5630 if (streq (p[1], "stub")) 5636 5631 { 5637 5632 options->comp.alg = COMP_ALG_STUB;