]> git.baikalelectronics.ru Git - kernel.git/commit
netfilter: hashlimit: byte-based limit mode
authorFlorian Westphal <fw@strlen.de>
Mon, 7 May 2012 10:51:45 +0000 (10:51 +0000)
committerPablo Neira Ayuso <pablo@netfilter.org>
Wed, 9 May 2012 11:04:57 +0000 (13:04 +0200)
commit4345dbb0a58fe9777510183280b7760b79e59417
tree121237ff7991a5fea8d8ac6202ad6c92834e744e
parent8163510507d8c88832301af8a450c2cedcb0929b
netfilter: hashlimit: byte-based limit mode

can be used e.g. for ingress traffic policing or
to detect when a host/port consumes more bandwidth than expected.

This is done by optionally making cost to mean
"cost per 16-byte-chunk-of-data" instead of "cost per packet".

Signed-off-by: Florian Westphal <fw@strlen.de>
Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
include/linux/netfilter/xt_hashlimit.h
net/netfilter/xt_hashlimit.c