From 174f4a120ec7644531728621cfab5ce7fdb481c3 Mon Sep 17 00:00:00 2001 From: Pablo Neira Ayuso Date: Mon, 3 Aug 2015 15:56:27 +0200 Subject: src: add burst parameter to limit ... limit rate 1024 mbytes/second burst 10240 bytes ... limit rate 1/second burst 3 packets This parameter is optional. You need a Linux kernel >= 4.3-rc1. Signed-off-by: Pablo Neira Ayuso --- include/datatype.h | 3 +++ 1 file changed, 3 insertions(+) (limited to 'include/datatype.h') diff --git a/include/datatype.h b/include/datatype.h index ebafa655..07fedce8 100644 --- a/include/datatype.h +++ b/include/datatype.h @@ -239,4 +239,7 @@ extern struct error_record *rate_parse(const struct location *loc, const char *str, uint64_t *rate, uint64_t *unit); +extern struct error_record *data_unit_parse(const struct location *loc, + const char *str, uint64_t *rate); + #endif /* NFTABLES_DATATYPE_H */ -- cgit v1.2.3