summaryrefslogtreecommitdiffstats
path: root/iptables/xtables.c
diff options
context:
space:
mode:
authorGiuseppe Longo <giuseppelng@gmail.com>2013-07-12 13:27:33 +0200
committerPablo Neira Ayuso <pablo@netfilter.org>2013-12-30 23:50:35 +0100
commit0b3bafcedff19b69ff5a51855da28e8e83c05b71 (patch)
tree666629bcf92441c5ab92a721f24cfbedec687e41 /iptables/xtables.c
parent457819b952418501918b6e906bf5e21e3b4f9af8 (diff)
xtables: nft: display rule by number via -L
This patch fixes the display of rule by number. [ Mangled this patch not to display the header, to mimic iptables --pablo ] Signed-off-by: Giuseppe Longo <giuseppelng@gmail.com> Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
Diffstat (limited to 'iptables/xtables.c')
-rw-r--r--iptables/xtables.c1
1 files changed, 0 insertions, 1 deletions
diff --git a/iptables/xtables.c b/iptables/xtables.c
index 4e8d3621..c712aaf4 100644
--- a/iptables/xtables.c
+++ b/iptables/xtables.c
@@ -570,7 +570,6 @@ list_entries(struct nft_handle *h, const char *chain, const char *table,
if (linenumbers)
format |= FMT_LINENUMBERS;
- /* FIXME should return found or not, and errno = ENOENT in such case */
return nft_rule_list(h, chain, table, rulenum, format);
}