diff options
author | Hendrik Schwartke <hendrik@os-t.de> | 2014-06-09 23:39:32 +0200 |
---|---|---|
committer | Pablo Neira Ayuso <pablo@netfilter.org> | 2014-06-10 11:33:47 +0200 |
commit | c661d1f8726c9aa6968ec3a66351b18437918f21 (patch) | |
tree | a5517b03e3476a63de1bab28a410fda635a7da40 /src/rule.c | |
parent | c000b14c35bf7722225a334ea3461976e78561dd (diff) |
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 <pablo@netfilter.org>
Diffstat (limited to 'src/rule.c')
-rw-r--r-- | src/rule.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -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); } |