summaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorPablo Neira Ayuso <pablo@netfilter.org>2018-05-03 12:49:39 +0200
committerPablo Neira Ayuso <pablo@netfilter.org>2018-05-06 22:48:30 +0200
commitb2a76466597b53469a003b56e61154171a4e63f9 (patch)
tree7616db3e3642f596f6c19530ecc0e67debc43bb2 /include
parent12d57b50dfe50353a2a0d6b40dd5ff45530dd5cc (diff)
src: add obj_spec
Store location object in handle to improve error reporting. Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
Diffstat (limited to 'include')
-rw-r--r--include/rule.h7
1 files changed, 6 insertions, 1 deletions
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;