From patchwork Wed Oct 24 00:33:41 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Arne Schwabe X-Patchwork-Id: 575 Return-Path: Delivered-To: patchwork@openvpn.net Delivered-To: patchwork@openvpn.net Received: from director12.mail.ord1d.rsapps.net ([172.30.191.6]) by backend30.mail.ord1d.rsapps.net with LMTP id uB2jDsVY0FtrUwAAIUCqbw for ; Wed, 24 Oct 2018 07:34:29 -0400 Received: from proxy20.mail.ord1d.rsapps.net ([172.30.191.6]) by director12.mail.ord1d.rsapps.net with LMTP id IG2MDsVY0FvNegAAIasKDg ; Wed, 24 Oct 2018 07:34:29 -0400 Received: from smtp25.gate.ord1d ([172.30.191.6]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) by proxy20.mail.ord1d.rsapps.net with LMTP id +IdYDsVY0FvTbwAAsk8m8w ; Wed, 24 Oct 2018 07:34:29 -0400 X-Spam-Threshold: 95 X-Spam-Score: 0 X-Spam-Flag: NO X-Virus-Scanned: OK X-Orig-To: openvpnslackdevel@openvpn.net X-Originating-Ip: [216.105.38.7] Authentication-Results: smtp25.gate.ord1d.rsapps.net; iprev=pass policy.iprev="216.105.38.7"; spf=pass smtp.mailfrom="openvpn-devel-bounces@lists.sourceforge.net" smtp.helo="lists.sourceforge.net"; dkim=fail (signature verification failed) header.d=sourceforge.net; dkim=fail (signature verification failed) header.d=sf.net; dmarc=none (p=nil; dis=none) header.from=rfc2549.org X-Suspicious-Flag: YES X-Classification-ID: c37325de-d780-11e8-9be0-52540081550e-1-1 Received: from [216.105.38.7] ([216.105.38.7:47905] helo=lists.sourceforge.net) by smtp25.gate.ord1d.rsapps.net (envelope-from ) (ecelerity 4.2.38.62370 r(:)) with ESMTPS (cipher=DHE-RSA-AES256-GCM-SHA384) id BD/D6-10957-3C850DB5; Wed, 24 Oct 2018 07:34:27 -0400 Received: from [127.0.0.1] (helo=sfs-ml-4.v29.lw.sourceforge.com) by sfs-ml-4.v29.lw.sourceforge.com with esmtp (Exim 4.90_1) (envelope-from ) id 1gFHQE-0006Rh-9j; Wed, 24 Oct 2018 11:33:58 +0000 Received: from [172.30.20.202] (helo=mx.sourceforge.net) by sfs-ml-4.v29.lw.sourceforge.com with esmtps (TLSv1.2:ECDHE-RSA-AES256-GCM-SHA384:256) (Exim 4.90_1) (envelope-from ) id 1gFHQB-0006RV-1c for openvpn-devel@lists.sourceforge.NET; Wed, 24 Oct 2018 11:33:55 +0000 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=sourceforge.net; s=x; h=Message-Id:Date:Subject:To:From:Sender:Reply-To:Cc: MIME-Version:Content-Type:Content-Transfer-Encoding:Content-ID: Content-Description:Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc :Resent-Message-ID:In-Reply-To:References:List-Id:List-Help:List-Unsubscribe: List-Subscribe:List-Post:List-Owner:List-Archive; bh=C/3V2qrqyHpdYDaP6O8ABQtYZwHQoPWYL3TQK1eq/44=; b=YjHOpx+iG+f/83GzbHSJIjEWGj QFkmVmeFXZCDRrB0oOzcCYGXXR/yNVhwcVmuWldoNdlrp23cXEyYn6EsooTQ2jrpC3s3KqE0wgsp7 KtUdLX3/558wELYURWg5aujEcOYFrpOv7V4PCaTzY05uRnP51osG3kpjNOysxc7iHXag=; DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=sf.net; s=x ; h=Message-Id:Date:Subject:To:From:Sender:Reply-To:Cc:MIME-Version: Content-Type:Content-Transfer-Encoding:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: In-Reply-To:References:List-Id:List-Help:List-Unsubscribe:List-Subscribe: List-Post:List-Owner:List-Archive; bh=C/3V2qrqyHpdYDaP6O8ABQtYZwHQoPWYL3TQK1eq/44=; b=KJ4RWrfdmGeoTy1FVZ12bCb3aq XAz3e0BTti5NVHrOBJxDaSM0FCGJ1ZSv8bT5T57aovyPB51ytn1diNAQl2DM4dw0JaHjSO5Dwy6FF lFZ+jcB16aYtYP24aWI4IGwalO0/7aqOM/1HpdlKS3FAPi+VD51wg4O3mtIHzd3bzrt0=; Received: from mail.blinkt.de ([192.26.174.232]) by sfi-mx-1.v28.lw.sourceforge.com with esmtps (TLSv1.2:ECDHE-RSA-AES256-GCM-SHA384:256) (Exim 4.90_1) id 1gFHQ7-001Q6e-3d for openvpn-devel@lists.sourceforge.NET; Wed, 24 Oct 2018 11:33:54 +0000 Received: from kamera.blinkt.de ([2001:638:502:390:20c:29ff:fec8:535c]) by mail.blinkt.de with smtp (Exim 4.91 (FreeBSD)) (envelope-from ) id 1gFHPx-000DbP-FU for openvpn-devel@lists.sourceforge.net; Wed, 24 Oct 2018 13:33:41 +0200 Received: (nullmailer pid 1287 invoked by uid 10006); Wed, 24 Oct 2018 11:33:41 -0000 From: Arne Schwabe To: openvpn-devel@lists.sourceforge.net Date: Wed, 24 Oct 2018 13:33:41 +0200 Message-Id: <20181024113341.1242-1-arne@rfc2549.org> X-Mailer: git-send-email 2.17.1 X-Spam-Report: Spam Filtering performed by mx.sourceforge.net. See http://spamassassin.org/tag/ for more details. 0.2 HEADER_FROM_DIFFERENT_DOMAINS From and EnvelopeFrom 2nd level mail domains are different 0.0 AWL AWL: Adjusted score from AWL reputation of From: address X-Headers-End: 1gFHQ7-001Q6e-3d Subject: [Openvpn-devel] [PATCH] Document comp-lzo no and compress being incompatible X-BeenThere: openvpn-devel@lists.sourceforge.net X-Mailman-Version: 2.1.21 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Errors-To: openvpn-devel-bounces@lists.sourceforge.net X-getmail-retrieved-from-mailbox: Inbox Most of the new compress but not v2 version do use swap operation. For 'compress lzo' the swap option is not used for backwards compatibility. For lz4 the swap option is also not a problem since there is no version without swap. Unfortunately, compress introduced a second stub format with swap, contrary to the one in 'comp-lzo no' that does not use swap. Document this weirdness to let not others fall into this trap. --- doc/openvpn.8 | 3 +++ 1 file changed, 3 insertions(+) diff --git a/doc/openvpn.8 b/doc/openvpn.8 index ac923f51..f8aa94ae 100644 --- a/doc/openvpn.8 +++ b/doc/openvpn.8 @@ -2551,6 +2551,9 @@ offering the best performance with least CPU usage. For backwards compatibility with OpenVPN versions before v2.4, use "lzo" (which is identical to the older option "\-\-comp\-lzo yes"). +Note however that the `stub` (or empty) option is NOT compatible with the +older option "\-\-comp\-lzo no"). + The "lz4\-v2" and "stub\-v2" variants implement a better framing that does not add overhead when packets cannot be compressed. All other variants always add one extra framing byte compared to no compression framing.