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 B2C5AC433F5 for ; Fri, 29 Apr 2022 18:32:50 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1378022AbiD2SgH (ORCPT ); Fri, 29 Apr 2022 14:36:07 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:48292 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S237744AbiD2SgG (ORCPT ); Fri, 29 Apr 2022 14:36:06 -0400 Received: from Chamillionaire.breakpoint.cc (Chamillionaire.breakpoint.cc [IPv6:2a0a:51c0:0:12e:520::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id BB23ED4C90 for ; Fri, 29 Apr 2022 11:32:46 -0700 (PDT) Received: from fw by Chamillionaire.breakpoint.cc with local (Exim 4.92) (envelope-from ) id 1nkVQ4-0001se-Ex; Fri, 29 Apr 2022 20:32:44 +0200 From: Florian Westphal To: Cc: Florian Westphal Subject: [PATCH nft 0/3] nftables: add support for wildcard interfaces Date: Fri, 29 Apr 2022 20:32:36 +0200 Message-Id: <20220429183239.5569-1-fw@strlen.de> X-Mailer: git-send-email 2.35.1 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: netfilter-devel@vger.kernel.org First patch is needed so kernel doesn't think end is before start, second patch allows to dump "x .foo*" correctly, without this nft tries to represent the start/end "name" with a range. This doesn't work well because end range uses \ff padding. Patch 3 adds tests. Florian Westphal (3): netlink: swap byteorder for host-endian concat data segtree: add pretty-print support for wildcard strings in concatenated sets sets_with_ifnames: add test case for concatenated range src/netlink.c | 4 + src/segtree.c | 38 +++++++- .../sets/dumps/sets_with_ifnames.nft | 25 ++++- tests/shell/testcases/sets/sets_with_ifnames | 93 ++++++++++++++----- 4 files changed, 134 insertions(+), 26 deletions(-) -- 2.35.1