summaryrefslogtreecommitdiffstats
path: root/src/rule.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/rule.c')
-rw-r--r--src/rule.c14
1 files changed, 14 insertions, 0 deletions
diff --git a/src/rule.c b/src/rule.c
index accff0fa..858149ed 100644
--- a/src/rule.c
+++ b/src/rule.c
@@ -401,6 +401,20 @@ static void chain_print(const struct chain *chain)
printf("\t}\n");
}
+void chain_print_plain(const struct chain *chain)
+{
+ printf("chain %s %s %s", family2str(chain->handle.family),
+ chain->handle.table, chain->handle.chain);
+
+ if (chain->flags & CHAIN_F_BASECHAIN) {
+ printf(" { type %s hook %s priority %u; }", chain->type,
+ hooknum2str(chain->handle.family, chain->hooknum),
+ chain->priority);
+ }
+
+ printf("\n");
+}
+
struct table *table_alloc(void)
{
struct table *table;