netfilter: nft_limit: add burst parameter
This patch adds the burst parameter. This burst indicates the number of packets that can exceed the limit. Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
This commit is contained in:
parent
f8d3a6bc76
commit
3e87baafa4
2 changed files with 20 additions and 2 deletions
|
|
@ -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)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue