summaryrefslogtreecommitdiffstats
path: root/iptables/nft.c
diff options
context:
space:
mode:
authorGiuseppe Longo <giuseppelng@gmail.com>2014-10-16 16:29:51 +0200
committerPablo Neira Ayuso <pablo@netfilter.org>2014-11-24 11:35:34 +0100
commit51e83a4deb4849152a29c160893f0823846d47a0 (patch)
tree50b9d4cb974eac2ff37c988661b866dd0654cc47 /iptables/nft.c
parent902e92ceedba96d3241fa8ff701c061cd53a197d (diff)
ebtables-compat: fix print_header
This prints the header like ebtables. Signed-off-by: Giuseppe Longo <giuseppelng@gmail.com> Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
Diffstat (limited to 'iptables/nft.c')
-rw-r--r--iptables/nft.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/iptables/nft.c b/iptables/nft.c
index 804ebe97..7cd56efa 100644
--- a/iptables/nft.c
+++ b/iptables/nft.c
@@ -2019,6 +2019,9 @@ int nft_rule_list(struct nft_handle *h, const char *chain, const char *table,
if (iter == NULL)
goto err;
+ if (ops->print_table_header)
+ ops->print_table_header(table);
+
c = nft_chain_list_iter_next(iter);
while (c != NULL) {
const char *chain_table =