diff options
author | Pablo Neira Ayuso <pablo@netfilter.org> | 2018-05-03 12:11:32 +0200 |
---|---|---|
committer | Pablo Neira Ayuso <pablo@netfilter.org> | 2018-05-06 22:48:30 +0200 |
commit | f2be4af9094d47dbd9c028e02ceb8b9d16cd4c02 (patch) | |
tree | 597ce3844fb864fc2348e225d48c69ee1fff6f56 /include | |
parent | cf6464267f49866b24a9b185498abf9b57433ecd (diff) |
src: add chain_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 88750f0a..4ea09c52 100644 --- a/include/rule.h +++ b/include/rule.h @@ -32,6 +32,11 @@ struct table_spec { const char *name; }; +struct chain_spec { + struct location location; + const char *name; +}; + /** * struct handle - handle for tables, chains, rules and sets * @@ -48,7 +53,7 @@ struct table_spec { struct handle { uint32_t family; struct table_spec table; - const char *chain; + struct chain_spec chain; const char *set; const char *obj; const char *flowtable; |