summaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorPablo Neira Ayuso <pablo@netfilter.org>2015-08-02 18:44:13 +0200
committerPablo Neira Ayuso <pablo@netfilter.org>2015-09-21 12:02:47 +0200
commit665a02b11ad47e37da475a8c62958f1ffd6757ce (patch)
tree4b373e873acf183a2e82bca4c5a81908a363e603 /include
parent64e07e72ecd7d7486943034865f376368d1e803b (diff)
expr: limit: add burst attribute
Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
Diffstat (limited to 'include')
-rw-r--r--include/buffer.h1
-rw-r--r--include/libnftnl/expr.h1
-rw-r--r--include/linux/netfilter/nf_tables.h2
3 files changed, 4 insertions, 0 deletions
diff --git a/include/buffer.h b/include/buffer.h
index a5bd039..cc4bfbc 100644
--- a/include/buffer.h
+++ b/include/buffer.h
@@ -38,6 +38,7 @@ int nftnl_buf_reg(struct nftnl_buf *b, int type, union nftnl_data_reg *reg,
#define BASE "base"
#define BYTES "bytes"
+#define BURST "burst"
#define CHAIN "chain"
#define CODE "code"
#define DATA "data"
diff --git a/include/libnftnl/expr.h b/include/libnftnl/expr.h
index d9090ff..7758920 100644
--- a/include/libnftnl/expr.h
+++ b/include/libnftnl/expr.h
@@ -150,6 +150,7 @@ enum {
enum {
NFTNL_EXPR_LIMIT_RATE = NFTNL_EXPR_BASE,
NFTNL_EXPR_LIMIT_UNIT,
+ NFTNL_EXPR_LIMIT_BURST,
};
enum {
diff --git a/include/linux/netfilter/nf_tables.h b/include/linux/netfilter/nf_tables.h
index a99e6a9..7b32de3 100644
--- a/include/linux/netfilter/nf_tables.h
+++ b/include/linux/netfilter/nf_tables.h
@@ -761,11 +761,13 @@ enum nft_ct_attributes {
*
* @NFTA_LIMIT_RATE: refill rate (NLA_U64)
* @NFTA_LIMIT_UNIT: refill unit (NLA_U64)
+ * @NFTA_LIMIT_BURST: burst (NLA_U32)
*/
enum nft_limit_attributes {
NFTA_LIMIT_UNSPEC,
NFTA_LIMIT_RATE,
NFTA_LIMIT_UNIT,
+ NFTA_LIMIT_BURST,
__NFTA_LIMIT_MAX
};
#define NFTA_LIMIT_MAX (__NFTA_LIMIT_MAX - 1)