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 92BA9EB64D9 for ; Tue, 20 Jun 2023 00:14:02 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229780AbjFTAOB (ORCPT ); Mon, 19 Jun 2023 20:14:01 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:33128 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229733AbjFTAOA (ORCPT ); Mon, 19 Jun 2023 20:14:00 -0400 Received: from Chamillionaire.breakpoint.cc (Chamillionaire.breakpoint.cc [IPv6:2a0a:51c0:0:237:300::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 3ABC7E53 for ; Mon, 19 Jun 2023 17:13:56 -0700 (PDT) Received: from fw by Chamillionaire.breakpoint.cc with local (Exim 4.92) (envelope-from ) id 1qBP0M-0004iF-90; Tue, 20 Jun 2023 02:13:54 +0200 Date: Tue, 20 Jun 2023 02:13:54 +0200 From: Florian Westphal To: Pablo Neira Ayuso Cc: Florian Westphal , netfilter-devel Subject: Re: [PATCH nft] cache: include set elements in "nft set list" Message-ID: <20230620001354.GA13423@breakpoint.cc> References: <20230618163951.408565-1-fw@strlen.de> 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 Pablo Neira Ayuso wrote: > On Sun, Jun 18, 2023 at 06:39:45PM +0200, Florian Westphal wrote: > > Make "nft list sets" include set elements in listing by default. > > In nftables 1.0.0, "nft list sets" did not include the set elements, > > but with "--json" they were included. > > > > 1.0.1 and newer never include them. > > This causes a problem for people updating from 1.0.0 and relying > > on the presence of the set elements. > > > > Change nftables to always include the set elements. > > The "--terse" option is honored to get the "no elements" behaviour. I pushed this patch to master, with a minor change (removal of no-longer needed fmt struct).