From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id A4B29C433F5 for ; Thu, 6 Oct 2022 00:29:14 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229445AbiJFA3N (ORCPT ); Wed, 5 Oct 2022 20:29:13 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:53034 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229692AbiJFA3M (ORCPT ); Wed, 5 Oct 2022 20:29:12 -0400 Received: from orbyte.nwl.cc (orbyte.nwl.cc [IPv6:2001:41d0:e:133a::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 9253C82D22 for ; Wed, 5 Oct 2022 17:29:11 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=nwl.cc; s=mail2022; h=Content-Transfer-Encoding:MIME-Version:References:In-Reply-To: Message-Id:Date:Subject:Cc:To:From:Sender:Reply-To:Content-Type:Content-ID: Content-Description:Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc :Resent-Message-ID:List-Id:List-Help:List-Unsubscribe:List-Subscribe: List-Post:List-Owner:List-Archive; bh=BHG43aALjjoJdJ33U/T/j9QOU0VyKdlXOQD0yID+HSw=; b=WW1bJvMXsMk5sB+4nTDxxfmJc4 EwRJHi3XMgOHuqJ7ZdcmKctMaMODuaIGoMTbN7UTnIJCBlQLDi8EOVdgc1rkOFwv94UOaOF+uWd5u sv1bHIR1xTyRgS6o2n5mTy8BWiSugOGDDb9lKdbH9XCco/jFy981o0t9qGWMpBOmHCK0r0nd87GcF hBLo2jANFpVMh1MZb5KFuOlRwQSCla2YbSYjUZLFjVJVCQF5O9ecs3TMoxtN9vLISHf2D2Fh3rSIz ak5P3elgQUVjl216J3zQ6vOLHIYWrXy9pwXFQXwS9tiTokSFh0bRH/mv2u3HNnIqUIF9YTowU3G7R Y0A2ZHIg==; Received: from localhost ([::1] helo=xic) by orbyte.nwl.cc with esmtp (Exim 4.94.2) (envelope-from ) id 1ogElB-0001zx-Gu; Thu, 06 Oct 2022 02:29:09 +0200 From: Phil Sutter To: netfilter-devel@vger.kernel.org Cc: Pablo Neira Ayuso , Florian Westphal , Jan Engelhardt Subject: [iptables PATCH 06/12] tests: libxt_length.t: Fix odd use-case output Date: Thu, 6 Oct 2022 02:27:56 +0200 Message-Id: <20221006002802.4917-7-phil@nwl.cc> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20221006002802.4917-1-phil@nwl.cc> References: <20221006002802.4917-1-phil@nwl.cc> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: netfilter-devel@vger.kernel.org Specifying the lower boundary suffixed by colon is an undocumented feature. Explicitly printing the upper boundary in that case seems sane. Signed-off-by: Phil Sutter --- extensions/libxt_length.t | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/extensions/libxt_length.t b/extensions/libxt_length.t index 0b6624ee069f6..8b70fc317485c 100644 --- a/extensions/libxt_length.t +++ b/extensions/libxt_length.t @@ -2,7 +2,7 @@ -m length --length 1;=;OK -m length --length :2;-m length --length 0:2;OK -m length --length 0:3;=;OK --m length --length 4:;=;OK +-m length --length 4:;-m length --length 4:65535;OK -m length --length 0:65535;=;OK -m length ! --length 0:65535;=;OK -m length --length 0:65536;;FAIL -- 2.34.1