path: root/include/rule.h
diff options
authorArturo Borrero <>2014-04-14 12:17:19 +0200
committerPablo Neira Ayuso <>2014-04-25 17:45:32 +0200
commit43ac0090824f5c08ea13add64ace64f9ead8ef1b (patch)
tree3367908ae6a8fa4c58c2980360d2d609ddff4c5f /include/rule.h
parentcc1c262073cb0936250ad63f3fb8b038dd7f75ad (diff)
rule: generalize chain_print()
Lest generalize the chain_print() function, so we can print a plain chain as the user typed in the basic CLI. Signed-off-by: Arturo Borrero Gonzalez <> Signed-off-by: Pablo Neira Ayuso <>
Diffstat (limited to 'include/rule.h')
1 files changed, 1 insertions, 0 deletions
diff --git a/include/rule.h b/include/rule.h
index 072cff81..6c373e69 100644
--- a/include/rule.h
+++ b/include/rule.h
@@ -128,6 +128,7 @@ extern struct chain *chain_lookup(const struct table *table,
const struct handle *h);
extern const char *family2str(unsigned int family);
+extern void chain_print_plain(const struct chain *chain);
* struct rule - nftables rule