diff options
author | Pablo Neira Ayuso <pablo@netfilter.org> | 2018-05-03 12:06:27 +0200 |
---|---|---|
committer | Pablo Neira Ayuso <pablo@netfilter.org> | 2018-05-06 22:48:30 +0200 |
commit | cf6464267f49866b24a9b185498abf9b57433ecd (patch) | |
tree | ebf77077480fba49e2df77c91bebf8071a9135a4 /include | |
parent | 1d2f48fa277e1b648e500f12dc08aa15bd48b50f (diff) |
src: add table_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.h | 7 |
1 files changed, 6 insertions, 1 deletions
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; |