Skip to content

Add option to omit sets elements from listings.

Jeremy Sowden netfilter-devel 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v3 Latest2 patches 2 repliesIn review

Changes in v3 from the cover letter

* changed the short option for --numeric-time from -t to -T;
* used a new option (-t, --terse) instead of extending

Patches in v3 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/2src: use `-T` as the short option for `--numeric-time`.doc/nft.txt src/main.c+4 -40 replies
2/2src: add --terse to suppress output of set elements.doc/libnftables.adoc doc/nft.txt include/nftables.h +3 more+34 -110 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v3 yet.

Read the v3 thread

Cover letter [PATCH nft v3 0/2] Add option to omit sets elements from listings.

From https://bugzilla.netfilter.org/show_bug.cgi?id=1374:

Listing an entire ruleset or a table with 'nft list ...' will also print all elements of all set definitions within the ruleset or requested table. Seeing the full set contents is not often necessary especially when requesting to see someone's ruleset for help and support purposes. It would be helpful if there was an option/flag for the nft tool to suppress set contents when listing.

This patch series implements the request by adding a new option: -t, --terse.

Since v2:

* changed the short option for --numeric-time from -t to -T;
* used a new option (-t, --terse) instead of extending

    `--stateless`.

Since v1:

* updated man-page and usage;
* dropped 'dynamic' as a possible parameter-value.

Jeremy Sowden (2):
src: use -T as the short option for --numeric-time.
src: add --terse to suppress output of set elements.

 doc/libnftables.adoc           | 21 ++++++++++++---------
 doc/nft.txt                    |  6 +++++-
 include/nftables.h             |  5 +++++
 include/nftables/libnftables.h |  1 +
 src/main.c                     | 15 ++++++++++++---
 src/rule.c                     |  3 ++-
 6 files changed, 37 insertions(+), 14 deletions(-)
Signature · 1 line
2.23.0