From 437746c7b528f3d9b1d4e822ef82d0f0f207f1f7 Mon Sep 17 00:00:00 2001 From: Florian Westphal Date: Sat, 26 May 2018 19:20:16 +0200 Subject: xtables: extended error reporting Signed-off-by: Florian Westphal Signed-off-by: Pablo Neira Ayuso --- iptables/nft.h | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'iptables/nft.h') 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]; -- cgit v1.2.3