From cf6464267f49866b24a9b185498abf9b57433ecd Mon Sep 17 00:00:00 2001 From: Pablo Neira Ayuso Date: Thu, 3 May 2018 12:06:27 +0200 Subject: src: add table_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 ee22cf21..88750f0a 100644 --- a/include/rule.h +++ b/include/rule.h @@ -27,6 +27,11 @@ struct position_spec { uint64_t id; }; +struct table_spec { + struct location location; + const char *name; +}; + /** * struct handle - handle for tables, chains, rules and sets * @@ -42,7 +47,7 @@ struct position_spec { */ struct handle { uint32_t family; - const char *table; + struct table_spec table; const char *chain; const char *set; const char *obj; -- cgit v1.2.3