]> git.baikalelectronics.ru Git - kernel.git/commit
netfilter: nft_limit: add per-byte limiting
authorPablo Neira Ayuso <pablo@netfilter.org>
Wed, 5 Aug 2015 10:38:44 +0000 (12:38 +0200)
committerPablo Neira Ayuso <pablo@netfilter.org>
Fri, 7 Aug 2015 09:50:50 +0000 (11:50 +0200)
commit290935673c8f800084ee05e58a175c6997437d60
tree7bc6f8c3bab6d1669af7ac6263a606d2b17499fa
parente96d530c0df7967416b49b22ebddf25bab0a05f0
netfilter: nft_limit: add per-byte limiting

This patch adds a new NFTA_LIMIT_TYPE netlink attribute to indicate the type of
limiting.

Contrary to per-packet limiting, the cost is calculated from the packet path
since this depends on the packet length.

The burst attribute indicates the number of bytes in which the rate can be
exceeded.

Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
include/uapi/linux/netfilter/nf_tables.h
net/netfilter/nft_limit.c