summaryrefslogtreecommitdiffstats
path: root/include/net/netfilter/nf_tables.h
diff options
context:
space:
mode:
authorPablo Neira Ayuso2014-04-04 01:38:51 +0200
committerPablo Neira Ayuso2014-05-19 12:06:10 +0200
commitb380e5c733b9f18a6a3ebb97963b6dd037339bc0 (patch)
tree3ca18c36eb7acae13894029ceb350eaee1e90d26 /include/net/netfilter/nf_tables.h
parentnetfilter: nf_tables: relocate commit and abort routines in the source file (diff)
downloadkernel-qcow2-linux-b380e5c733b9f18a6a3ebb97963b6dd037339bc0.tar.gz
kernel-qcow2-linux-b380e5c733b9f18a6a3ebb97963b6dd037339bc0.tar.xz
kernel-qcow2-linux-b380e5c733b9f18a6a3ebb97963b6dd037339bc0.zip
netfilter: nf_tables: add message type to transactions
The patch adds message type to the transaction to simplify the commit the and abort routines. Yet another step forward in the generalisation of the transaction infrastructure. Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
Diffstat (limited to 'include/net/netfilter/nf_tables.h')
-rw-r--r--include/net/netfilter/nf_tables.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/include/net/netfilter/nf_tables.h b/include/net/netfilter/nf_tables.h
index 246dbd48825f..d8dfb2695e0f 100644
--- a/include/net/netfilter/nf_tables.h
+++ b/include/net/netfilter/nf_tables.h
@@ -390,11 +390,13 @@ struct nft_rule {
* struct nft_trans - nf_tables object update in transaction
*
* @list: used internally
+ * @msg_type: message type
* @ctx: transaction context
* @data: internal information related to the transaction
*/
struct nft_trans {
struct list_head list;
+ int msg_type;
struct nft_ctx ctx;
char data[0];
};