diff options
author | Pablo Neira Ayuso <pablo@netfilter.org> | 2020-03-31 13:36:16 +0200 |
---|---|---|
committer | Pablo Neira Ayuso <pablo@netfilter.org> | 2020-03-31 13:50:59 +0200 |
commit | 673d82af234e24ef841e8409426d5f082f9ea59e (patch) | |
tree | 97c79a625b4302ea89d046eea63c1f42a5ad2366 /src/json.c | |
parent | d6ac64f92dfca5da4d07989114a4aa46e1322453 (diff) |
rule: add hook_spec
Store location of chain hook definition.
Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
Diffstat (limited to 'src/json.c')
-rw-r--r-- | src/json.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -240,7 +240,7 @@ static json_t *chain_print_json(const struct chain *chain) tmp = json_pack("{s:s, s:s, s:i, s:s}", "type", chain->type, "hook", hooknum2str(chain->handle.family, - chain->hooknum), + chain->hook.num), "prio", priority, "policy", chain_policy2str(policy)); if (chain->dev_expr) { @@ -415,7 +415,7 @@ static json_t *flowtable_print_json(const struct flowtable *ftable) "name", ftable->handle.flowtable.name, "table", ftable->handle.table.name, "handle", ftable->handle.handle.id, - "hook", hooknum2str(NFPROTO_NETDEV, ftable->hooknum), + "hook", hooknum2str(NFPROTO_NETDEV, ftable->hook.num), "prio", priority); for (i = 0; i < ftable->dev_array_len; i++) { |