From c661d1f8726c9aa6968ec3a66351b18437918f21 Mon Sep 17 00:00:00 2001 From: Hendrik Schwartke Date: Mon, 9 Jun 2014 23:39:32 +0200 Subject: src: change type of chain.priority from unsigned int to int This removes a bug that displays strange hook priorities like "type route hook output priority 4294967146". Signed-off-by: Pablo Neira Ayuso --- src/rule.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/rule.c') diff --git a/src/rule.c b/src/rule.c index 43a3e117..a7bc6f44 100644 --- a/src/rule.c +++ b/src/rule.c @@ -418,7 +418,7 @@ static void chain_print(const struct chain *chain) printf("\tchain %s {\n", chain->handle.chain); if (chain->flags & CHAIN_F_BASECHAIN) { - printf("\t\t type %s hook %s priority %u;\n", chain->type, + printf("\t\t type %s hook %s priority %d;\n", chain->type, hooknum2str(chain->handle.family, chain->hooknum), chain->priority); } @@ -439,7 +439,7 @@ void chain_print_plain(const struct chain *chain) chain->handle.table, chain->handle.chain); if (chain->flags & CHAIN_F_BASECHAIN) { - printf(" { type %s hook %s priority %u; }", chain->type, + printf(" { type %s hook %s priority %d; }", chain->type, hooknum2str(chain->handle.family, chain->hooknum), chain->priority); } -- cgit v1.2.3