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 B55A5C04A95 for ; Wed, 28 Sep 2022 21:27:16 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233613AbiI1V1P (ORCPT ); Wed, 28 Sep 2022 17:27:15 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:53146 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233601AbiI1V1O (ORCPT ); Wed, 28 Sep 2022 17:27:14 -0400 Received: from Chamillionaire.breakpoint.cc (Chamillionaire.breakpoint.cc [IPv6:2a0a:51c0:0:12e:520::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 40FD2696EA for ; Wed, 28 Sep 2022 14:27:13 -0700 (PDT) Received: from fw by Chamillionaire.breakpoint.cc with local (Exim 4.92) (envelope-from ) id 1odeaD-0006vs-BL; Wed, 28 Sep 2022 23:27:09 +0200 Date: Wed, 28 Sep 2022 23:27:09 +0200 From: Florian Westphal To: Phil Sutter , Florian Westphal , Florian Westphal , netfilter-devel@vger.kernel.org Subject: Re: [iptables PATCH] nft: Fix meta statement parsing Message-ID: <20220928212709.GO12777@breakpoint.cc> References: <20220928162300.1055-1-phil@nwl.cc> <20220928175723.GN12777@breakpoint.cc> 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 Phil Sutter wrote: > On Wed, Sep 28, 2022 at 07:57:23PM +0200, Florian Westphal wrote: > > Phil Sutter wrote: > > > The function nft_meta_set_to_target() would always bail since nothing > > > sets 'sreg->meta_sreg.set' to true. This is obvious, as the immediate > > > expression "filling" the source register does not indicate its purpose. > > > > Hmm, is there a missing test case? I did not see any failures. > > extensions/libxt_TRACE.t was failing if I called iptables-test.py with > '-n' option. Argh, I only tested classic :-( > > Yes; from iptables perspective a 'meta set' operation has to be mapped > > to a target, so there is no need to store this for subsequent > > consumption. > > OK, cool. I'll push this all upstream now. :) Thanks!