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 5D01FC433F5 for ; Fri, 8 Apr 2022 12:40:45 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S235819AbiDHMmn (ORCPT ); Fri, 8 Apr 2022 08:42:43 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:50032 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S235577AbiDHMmm (ORCPT ); Fri, 8 Apr 2022 08:42:42 -0400 Received: from Chamillionaire.breakpoint.cc (Chamillionaire.breakpoint.cc [IPv6:2a0a:51c0:0:12e:520::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 16972182D86 for ; Fri, 8 Apr 2022 05:40:38 -0700 (PDT) Received: from fw by Chamillionaire.breakpoint.cc with local (Exim 4.92) (envelope-from ) id 1ncnum-0002BY-Hg; Fri, 08 Apr 2022 14:40:36 +0200 Date: Fri, 8 Apr 2022 14:40:36 +0200 From: Florian Westphal To: Martin Gignac Cc: netfilter-devel@vger.kernel.org Subject: Re: [PATCH nft] tests: py: extend meta time coverage Message-ID: <20220408124036.GA7920@breakpoint.cc> References: <20220408083332.19976-1-pablo@netfilter.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.10.1 (2018-07-13) Precedence: bulk List-ID: X-Mailing-List: netfilter-devel@vger.kernel.org Martin Gignac wrote: > By the way, I have just noticed that while this gives an error on 1.0.2: > > add rule inet filter input iif lo time < "2022-07-01 11:00" accept > > This does not: > > add rule inet filter input iif lo meta time < "2022-07-01 11:00" accept > > The use of 'meta' in front of 'time' works around the bug. > > Should the tests include a few statements *without* 'meta'? Yes, please consider sending a patch to extend the tests.