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 28FC7C4332F for ; Thu, 2 Nov 2023 17:23:29 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229471AbjKBRX3 (ORCPT ); Thu, 2 Nov 2023 13:23:29 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:60340 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229463AbjKBRX3 (ORCPT ); Thu, 2 Nov 2023 13:23:29 -0400 Received: from orbyte.nwl.cc (orbyte.nwl.cc [IPv6:2001:41d0:e:133a::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 7C0BD123 for ; Thu, 2 Nov 2023 10:23:23 -0700 (PDT) Received: from n0-1 by orbyte.nwl.cc with local (Exim 4.94.2) (envelope-from ) id 1qybPd-0007aG-T8; Thu, 02 Nov 2023 18:23:21 +0100 Date: Thu, 2 Nov 2023 18:23:21 +0100 From: Phil Sutter To: Pablo Neira Ayuso Cc: netfilter-devel@vger.kernel.org Subject: Re: [nft PATCH] tproxy: Drop artificial port printing restriction Message-ID: Mail-Followup-To: Phil Sutter , Pablo Neira Ayuso , netfilter-devel@vger.kernel.org References: <20231102135258.17214-1-phil@nwl.cc> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: Precedence: bulk List-ID: X-Mailing-List: netfilter-devel@vger.kernel.org On Thu, Nov 02, 2023 at 04:56:32PM +0100, Pablo Neira Ayuso wrote: > On Thu, Nov 02, 2023 at 02:52:58PM +0100, Phil Sutter wrote: > > It does not make much sense to omit printing the port expression if it's > > not a value expression: On one hand, input allows for more advanced > > uses. On the other, if it is in-kernel, best nft can do is to try and > > print it no matter what. Just ignoring ruleset elements can't be > > correct. > > > > Fixes: 2be1d52644cf7 ("src: Add tproxy support") > > Closes: https://bugzilla.netfilter.org/show_bug.cgi?id=1721 > > Signed-off-by: Phil Sutter > > Great work Phil. Hey, I'm just deleting code which gets in the way. ;) > Reviewed-by: Pablo Neira Ayuso Patch applied, thanks for your review.