diff options
author | Pablo Neira Ayuso <pablo@netfilter.org> | 2015-08-03 15:56:27 +0200 |
---|---|---|
committer | Pablo Neira Ayuso <pablo@netfilter.org> | 2015-09-23 12:16:53 +0200 |
commit | 174f4a120ec7644531728621cfab5ce7fdb481c3 (patch) | |
tree | 4b62dd210a739c7ac067044e63b7d34f6b4901bd /src/datatype.c | |
parent | 6615676d825e02d271fe7a9ca78a77ac3773ab93 (diff) |
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 <pablo@netfilter.org>
Diffstat (limited to 'src/datatype.c')
-rw-r--r-- | src/datatype.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/datatype.c b/src/datatype.c index e5a486fb..f56763b9 100644 --- a/src/datatype.c +++ b/src/datatype.c @@ -996,8 +996,8 @@ static struct error_record *time_unit_parse(const struct location *loc, return NULL; } -static struct error_record *data_unit_parse(const struct location *loc, - const char *str, uint64_t *rate) +struct error_record *data_unit_parse(const struct location *loc, + const char *str, uint64_t *rate) { if (strncmp(str, "bytes", strlen("bytes")) == 0) *rate = 1ULL; |