From f2be4af9094d47dbd9c028e02ceb8b9d16cd4c02 Mon Sep 17 00:00:00 2001 From: Pablo Neira Ayuso Date: Thu, 3 May 2018 12:11:32 +0200 Subject: src: add chain_spec Store location object in handle to improve error reporting. Signed-off-by: Pablo Neira Ayuso --- include/rule.h | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'include') diff --git a/include/rule.h b/include/rule.h index 88750f0a..4ea09c52 100644 --- a/include/rule.h +++ b/include/rule.h @@ -32,6 +32,11 @@ struct table_spec { const char *name; }; +struct chain_spec { + struct location location; + const char *name; +}; + /** * struct handle - handle for tables, chains, rules and sets * @@ -48,7 +53,7 @@ struct table_spec { struct handle { uint32_t family; struct table_spec table; - const char *chain; + struct chain_spec chain; const char *set; const char *obj; const char *flowtable; -- cgit v1.2.3