From b2a76466597b53469a003b56e61154171a4e63f9 Mon Sep 17 00:00:00 2001 From: Pablo Neira Ayuso Date: Thu, 3 May 2018 12:49:39 +0200 Subject: src: add obj_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 68d32f10..b265690d 100644 --- a/include/rule.h +++ b/include/rule.h @@ -42,6 +42,11 @@ struct set_spec { const char *name; }; +struct obj_spec { + struct location location; + const char *name; +}; + /** * struct handle - handle for tables, chains, rules and sets * @@ -60,7 +65,7 @@ struct handle { struct table_spec table; struct chain_spec chain; struct set_spec set; - const char *obj; + struct obj_spec obj; const char *flowtable; struct handle_spec handle; struct position_spec position; -- cgit v1.2.3