aboutsummaryrefslogtreecommitdiffstats
path: root/include/uapi
diff options
context:
space:
mode:
authorKristian Evensen <kristian.evensen@gmail.com>2014-01-07 10:43:54 -0500
committerPablo Neira Ayuso <pablo@netfilter.org>2014-01-09 13:07:44 -0500
commitc4ede3d3821a732120fd671846c2606a1eb4e8b3 (patch)
tree5f36dcf17d27abb86778eba8b072d811d3c901ab /include/uapi
parent9638f33ecf7e1b7eb844603c1137bc3468902c17 (diff)
netfilter: nft_ct: Add support to set the connmark
This patch adds kernel support for setting properties of tracked connections. Currently, only connmark is supported. One use-case for this feature is to provide the same functionality as -j CONNMARK --save-mark in iptables. Some restructuring was needed to implement the set op. The new structure follows that of nft_meta. Signed-off-by: Kristian Evensen <kristian.evensen@gmail.com> Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
Diffstat (limited to 'include/uapi')
-rw-r--r--include/uapi/linux/netfilter/nf_tables.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/include/uapi/linux/netfilter/nf_tables.h b/include/uapi/linux/netfilter/nf_tables.h
index 448593c07120..83c985a6170b 100644
--- a/include/uapi/linux/netfilter/nf_tables.h
+++ b/include/uapi/linux/netfilter/nf_tables.h
@@ -609,12 +609,14 @@ enum nft_ct_keys {
609 * @NFTA_CT_DREG: destination register (NLA_U32) 609 * @NFTA_CT_DREG: destination register (NLA_U32)
610 * @NFTA_CT_KEY: conntrack data item to load (NLA_U32: nft_ct_keys) 610 * @NFTA_CT_KEY: conntrack data item to load (NLA_U32: nft_ct_keys)
611 * @NFTA_CT_DIRECTION: direction in case of directional keys (NLA_U8) 611 * @NFTA_CT_DIRECTION: direction in case of directional keys (NLA_U8)
612 * @NFTA_CT_SREG: source register (NLA_U32)
612 */ 613 */
613enum nft_ct_attributes { 614enum nft_ct_attributes {
614 NFTA_CT_UNSPEC, 615 NFTA_CT_UNSPEC,
615 NFTA_CT_DREG, 616 NFTA_CT_DREG,
616 NFTA_CT_KEY, 617 NFTA_CT_KEY,
617 NFTA_CT_DIRECTION, 618 NFTA_CT_DIRECTION,
619 NFTA_CT_SREG,
618 __NFTA_CT_MAX 620 __NFTA_CT_MAX
619}; 621};
620#define NFTA_CT_MAX (__NFTA_CT_MAX - 1) 622#define NFTA_CT_MAX (__NFTA_CT_MAX - 1)