Call hook number to string function instead. Signed-off-by: Pablo Neira Ayuso <pablo@xxxxxxxxxxxxx> --- src/rule.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/rule.c b/src/rule.c index e0e06c523241..589bf21ac4d3 100644 --- a/src/rule.c +++ b/src/rule.c @@ -1637,7 +1637,8 @@ static void flowtable_print_declaration(const struct flowtable *flowtable, nft_print(octx, " %s {%s", flowtable->handle.flowtable, opts->nl); nft_print(octx, "%s%shook %s priority %d%s", - opts->tab, opts->tab, "ingress", + opts->tab, opts->tab, + hooknum2str(NFPROTO_NETDEV, flowtable->hooknum), flowtable->priority, opts->stmt_separator); nft_print(octx, "%s%sdevices = { ", opts->tab, opts->tab); -- 2.11.0 -- To unsubscribe from this list: send the line "unsubscribe netfilter-devel" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html