From: "Anders K. Pedersen | Cohaesio" <akp@cohaesio.com>
To: "netfilter-devel@vger.kernel.org"
<netfilter-devel@vger.kernel.org>,
"pablo@netfilter.org" <pablo@netfilter.org>
Subject: [PATCH v2 nf-next 1/5] netfilter: nft: UAPI headers for routing expression
Date: Wed, 19 Oct 2016 18:35:49 +0000 [thread overview]
Message-ID: <1476902148.1161.16.camel@cohaesio.com> (raw)
In-Reply-To: <1476902043.1161.14.camel@cohaesio.com>
From: Anders K. Pedersen <akp@cohaesio.com>
Add new UAPI header definitions for nftables "rt" expression, which will
enable usage of routing related data.
Signed-off-by: Anders K. Pedersen <akp@cohaesio.com>
---
v2
- fix comments for enum nft_rt_keys
include/uapi/linux/netfilter/nf_tables.h | 27 ++++++
1 files changed, 27 insertions(+)
diff --git a/include/uapi/linux/netfilter/nf_tables.h b/include/uapi/linux/netfilter/nf_tables.h
index c6c4477..1992766 100644
--- a/include/uapi/linux/netfilter/nf_tables.h
+++ b/include/uapi/linux/netfilter/nf_tables.h
@@ -759,6 +759,17 @@ enum nft_meta_keys {
};
/**
+ * enum nft_rt_keys - nf_tables routing expression keys
+ *
+ * @NFT_RT_CLASSID: realm value of packet's route (skb->dst->tclassid)
+ * @NFT_RT_NEXTHOP: routing nexthop
+ */
+enum nft_rt_keys {
+ NFT_RT_CLASSID,
+ NFT_RT_NEXTHOP,
+};
+
+/**
* enum nft_hash_attributes - nf_tables hash expression netlink attributes
*
* @NFTA_HASH_SREG: source register (NLA_U32)
@@ -797,6 +808,22 @@ enum nft_meta_attributes {
#define NFTA_META_MAX (__NFTA_META_MAX - 1)
/**
+ * enum nft_rt_attributes - nf_tables routing expression netlink attributes
+ *
+ * @NFTA_RT_DREG: destination register (NLA_U32)
+ * @NFTA_RT_KEY: meta data item to load (NLA_U32: nft_rt_keys)
+ * @NFTA_RT_FAMILY: Address family (NLA_U32)
+ */
+enum nft_rt_attributes {
+ NFTA_RT_UNSPEC,
+ NFTA_RT_DREG,
+ NFTA_RT_KEY,
+ NFTA_RT_FAMILY,
+ __NFTA_RT_MAX
+};
+#define NFTA_RT_MAX (__NFTA_RT_MAX - 1)
+
+/**
* enum nft_ct_keys - nf_tables ct expression keys
*
* @NFT_CT_STATE: conntrack state (bitmask of enum ip_conntrack_info)
next prev parent reply other threads:[~2016-10-19 18:35 UTC|newest]
Thread overview: 23+ messages / expand[flat|nested] mbox.gz Atom feed top
2016-10-19 18:34 [PATCH v2 nf-next 0/5] netfilter: nft: introduce routing expression Anders K. Pedersen | Cohaesio
2016-10-19 18:35 ` Anders K. Pedersen | Cohaesio [this message]
2016-10-19 18:38 ` [PATCH v2 nf-next 2/5] netfilter: nft: basic " Anders K. Pedersen | Cohaesio
2016-10-19 18:39 ` [PATCH v2 nf-next 3/5] netfilter: nft: rt nexthop for IPv4 family Anders K. Pedersen | Cohaesio
2016-10-19 18:40 ` [PATCH v2 nf-next 4/5] netfilter: nft: rt nexthop for IPv6 family Anders K. Pedersen | Cohaesio
2016-10-19 18:41 ` [PATCH v2 nf-next 5/5] netfilter: nft: rt nexthop for inet family Anders K. Pedersen | Cohaesio
2016-10-20 9:13 ` Liping Zhang
2016-10-20 12:36 ` Anders K. Pedersen | Cohaesio
2016-10-20 13:27 ` Liping Zhang
2016-10-20 13:52 ` Anders K. Pedersen | Cohaesio
2016-10-21 2:06 ` Liping Zhang
2016-10-21 4:16 ` Anders K. Pedersen | Cohaesio
2016-10-21 6:17 ` Liping Zhang
2016-10-21 8:26 ` Anders K. Pedersen | Cohaesio
2016-10-21 12:42 ` Liping Zhang
2016-10-22 15:25 ` Anders K. Pedersen | Cohaesio
2016-10-21 9:21 ` Pablo Neira Ayuso
2016-10-21 13:22 ` Liping Zhang
2016-10-21 16:58 ` Pablo Neira Ayuso
2016-10-22 1:44 ` Liping Zhang
2016-10-22 16:08 ` Anders K. Pedersen | Cohaesio
2016-10-23 5:01 ` Liping Zhang
2016-10-27 17:50 ` Pablo Neira Ayuso
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1476902148.1161.16.camel@cohaesio.com \
--to=akp@cohaesio.com \
--cc=netfilter-devel@vger.kernel.org \
--cc=pablo@netfilter.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.