From b553eefe5ef1ac538fdf051df51481d19c9fbf4e Mon Sep 17 00:00:00 2001 From: Pablo Neira Date: Tue, 12 Jul 2016 22:04:16 +0200 Subject: src: expose delinearize/linearize structures and stmt_error() Needed by the follow up xt compatibility layer patch. Signed-off-by: Arturo Borrero Gonzalez Signed-off-by: Pablo Neira Ayuso --- include/netlink.h | 14 ++++++++++++++ 1 file changed, 14 insertions(+) (limited to 'include/netlink.h') diff --git a/include/netlink.h b/include/netlink.h index 9f465601..76a9da44 100644 --- a/include/netlink.h +++ b/include/netlink.h @@ -12,6 +12,20 @@ #include +struct netlink_parse_ctx { + struct list_head *msgs; + struct table *table; + struct rule *rule; + struct stmt *stmt; + struct expr *registers[1 + NFT_REG32_15 - NFT_REG32_00 + 1]; +}; + +struct rule_pp_ctx { + struct proto_ctx pctx; + struct payload_dep_ctx pdctx; + struct stmt *stmt; +}; + extern const struct input_descriptor indesc_netlink; extern const struct location netlink_location; -- cgit v1.2.3