]> git.ipfire.org Git - thirdparty/nftables.git/commit
rule: allow to print sets in plain format
authorArturo Borrero <arturo.borrero.glez@gmail.com>
Mon, 14 Apr 2014 10:17:08 +0000 (12:17 +0200)
committerPablo Neira Ayuso <pablo@netfilter.org>
Fri, 25 Apr 2014 15:45:32 +0000 (17:45 +0200)
commit2c666689c1b29d8c3353698224eddea5f09186a8
tree4aba634f03b80b4608fd86e6ecdc3491766b0bc4
parent275e3f55e20c82a944e3edadb26dba0fcc1f5d97
rule: allow to print sets in plain format

Allow to print sets with or without format.

This is useful in situations where we want to print more or less the same
the user typed (IOW, in one single line, and with family/table info).

While at it, make family2str() function public, so it can be used in
other places.

Signed-off-by: Arturo Borrero Gonzalez <arturo.borrero.glez@gmail.com>
Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
include/rule.h
src/rule.c