From 665a02b11ad47e37da475a8c62958f1ffd6757ce Mon Sep 17 00:00:00 2001 From: Pablo Neira Ayuso Date: Sun, 2 Aug 2015 18:44:13 +0200 Subject: expr: limit: add burst attribute Signed-off-by: Pablo Neira Ayuso --- include/buffer.h | 1 + include/libnftnl/expr.h | 1 + include/linux/netfilter/nf_tables.h | 2 ++ 3 files changed, 4 insertions(+) (limited to 'include') 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) -- cgit v1.2.3