summaryrefslogtreecommitdiffstats
path: root/iptables/nft.h
diff options
context:
space:
mode:
authorFlorian Westphal <fw@strlen.de>2018-05-26 19:20:16 +0200
committerFlorian Westphal <fw@strlen.de>2018-05-26 23:32:10 +0200
commit437746c7b528f3d9b1d4e822ef82d0f0f207f1f7 (patch)
tree30f09daa159671286359b2385c82a74e3e10e3a0 /iptables/nft.h
parentd1c79cdedc2501e51205be930a817fe3842c1d22 (diff)
xtables: extended error reporting
Signed-off-by: Florian Westphal <fw@strlen.de> Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
Diffstat (limited to 'iptables/nft.h')
-rw-r--r--iptables/nft.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/iptables/nft.h b/iptables/nft.h
index 515832d7..0cbf493e 100644
--- a/iptables/nft.h
+++ b/iptables/nft.h
@@ -38,6 +38,11 @@ struct nft_handle {
struct builtin_table *tables;
struct nftnl_rule_list *rule_cache;
bool restore;
+
+ /* meta data, for error reporting */
+ struct {
+ unsigned int lineno;
+ } error;
};
extern struct builtin_table xtables_ipv4[TABLES_MAX];