summaryrefslogtreecommitdiffstats
path: root/include/rule.h
diff options
context:
space:
mode:
authorPablo Neira Ayuso <pablo@netfilter.org>2018-05-03 12:31:48 +0200
committerPablo Neira Ayuso <pablo@netfilter.org>2018-05-06 22:48:30 +0200
commit12d57b50dfe50353a2a0d6b40dd5ff45530dd5cc (patch)
treecfee10ca96072fc9ba16e8ff57340e718c304a62 /include/rule.h
parentf2be4af9094d47dbd9c028e02ceb8b9d16cd4c02 (diff)
src: add set_spec
Store location object in handle to improve error reporting. Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
Diffstat (limited to 'include/rule.h')
-rw-r--r--include/rule.h7
1 files changed, 6 insertions, 1 deletions
diff --git a/include/rule.h b/include/rule.h
index 4ea09c52..68d32f10 100644
--- a/include/rule.h
+++ b/include/rule.h
@@ -37,6 +37,11 @@ struct chain_spec {
const char *name;
};
+struct set_spec {
+ struct location location;
+ const char *name;
+};
+
/**
* struct handle - handle for tables, chains, rules and sets
*
@@ -54,7 +59,7 @@ struct handle {
uint32_t family;
struct table_spec table;
struct chain_spec chain;
- const char *set;
+ struct set_spec set;
const char *obj;
const char *flowtable;
struct handle_spec handle;