diff options
author | Pablo Neira Ayuso <pablo@netfilter.org> | 2017-12-03 21:05:54 +0100 |
---|---|---|
committer | Pablo Neira Ayuso <pablo@netfilter.org> | 2018-03-05 16:31:29 +0100 |
commit | 6a89efe2c9891fb4b548dcd81cf72417dd2a9eaa (patch) | |
tree | 8039f15c2f539cb2ab2de75aaf9ca8df3ed48b1f /include | |
parent | eb58f53372e7475b65f6d7ee2b72507c4580007e (diff) |
expr: add flow offload expression
This patch adds the new "flow_offload" expression to select what flows
are offloaded to an existing flowtable.
Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
Diffstat (limited to 'include')
-rw-r--r-- | include/libnftnl/expr.h | 4 | ||||
-rw-r--r-- | include/linux/netfilter/nf_tables.h | 11 |
2 files changed, 15 insertions, 0 deletions
diff --git a/include/libnftnl/expr.h b/include/libnftnl/expr.h index f37f509..76df942 100644 --- a/include/libnftnl/expr.h +++ b/include/libnftnl/expr.h @@ -221,6 +221,10 @@ enum { }; enum { + NFTNL_EXPR_FLOW_TABLE_NAME = NFTNL_EXPR_BASE, +}; + +enum { NFTNL_EXPR_FWD_SREG_DEV = NFTNL_EXPR_BASE, }; diff --git a/include/linux/netfilter/nf_tables.h b/include/linux/netfilter/nf_tables.h index eb4b428..ede8c4d 100644 --- a/include/linux/netfilter/nf_tables.h +++ b/include/linux/netfilter/nf_tables.h @@ -954,6 +954,17 @@ enum nft_ct_attributes { }; #define NFTA_CT_MAX (__NFTA_CT_MAX - 1) +/** + * enum nft_flow_attributes - ct offload expression attributes + * @NFTA_FLOW_TABLE_NAME: flow table name (NLA_STRING) + */ +enum nft_offload_attributes { + NFTA_FLOW_UNSPEC, + NFTA_FLOW_TABLE_NAME, + __NFTA_FLOW_MAX, +}; +#define NFTA_FLOW_MAX (__NFTA_FLOW_MAX - 1) + enum nft_limit_type { NFT_LIMIT_PKTS, NFT_LIMIT_PKT_BYTES |