Skip to content

listing command updates

Pablo Neira Ayuso netfilter-devel 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest7 patches 2 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/7rule: display table when listing setssrc/rule.c+10 -00 replies
2/7src: add `list chains' commandinclude/rule.h src/evaluate.c src/parser_bison.y +1 more+42 -30 replies
3/7rule: display table when listing one setsrc/rule.c+11 -30 replies
4/7evaluate: check if set exists before listing itsrc/evaluate.c+11 -10 replies
5/7rule: `list sets' only displays declaration, not definitionsrc/rule.c+16 -30 replies
6/7rule: rework list chainsrc/rule.c+21 -10 replies
7/7parser_bison: show all sets via list sets with no familysrc/parser_bison.y+3 -110 replies

Reviews trailers per patch

None of the 7 patches has a Reviewed-by or Acked-by of their own; the series has one for all of them.

PatchArturo Borrero Gonzalez
SeriesA-b
1/7
2/7
3/7
4/7
5/7
6/7
7/7

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v1 thread

Cover letter [PATCH nft 0/7] listing command updates

Hi,

This patchset is following up after:

http://www.spinics.net/lists/netfilter-devel/msg38491.html

In a nutshell, what I'm proposing is that:

* list {tables,chains,sets}' only display the object declaration, not its definition (ie. content). Moreover, if no family is specified, then they show all families to get this aligned with list ruleset'.

* If you want to obtain the objects definition, then you use the `list {table,chain,set}' variant.

* We always provide an output that doesn't break `nft -f'.

Let me know if you have any comment,
Thanks.

Pablo Neira Ayuso (7):
rule: display table when listing sets
src: add `list chains' command
rule: display table when listing one set
evaluate: check if set exists before listing it
rule: `list sets' only displays declaration, not definition
rule: rework list chain
parser_bison: show all sets via list sets with no family

 include/rule.h     |  2 ++
 src/evaluate.c     | 13 +++++++-
 src/parser_bison.y | 18 ++++------
 src/rule.c         | 97 ++++++++++++++++++++++++++++++++++++++++++++++++++----
 4 files changed, 111 insertions(+), 19 deletions(-)
Signature · 1 line
2.1.4