]> git.ipfire.org Git - thirdparty/nftables.git/commit
parser: add `limit_rate_pkts` and `limit_rate_bytes` rules
authorJeremy Sowden <jeremy@azazel.net>
Fri, 29 Oct 2021 20:40:08 +0000 (21:40 +0100)
committerPablo Neira Ayuso <pablo@netfilter.org>
Wed, 3 Nov 2021 11:48:19 +0000 (12:48 +0100)
commitab0c2b2db6f8fb6153d9f8218895482543d5c072
tree4ce6fa0537ff143e5b440bd4a684011437f69c4a
parente3d9ed3c09b5cef5ea5a5eaf13783c44dda7f276
parser: add `limit_rate_pkts` and `limit_rate_bytes` rules

Factor the `N / time-unit` and `N byte-unit / time-unit` expressions
from limit expressions out into separate `limit_rate_pkts` and
`limit_rate_bytes` rules respectively.

Signed-off-by: Jeremy Sowden <jeremy@azazel.net>
Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
include/datatype.h
src/parser_bison.y