]> git.baikalelectronics.ru Git - kernel.git/commit
netfilter: nft_hash: add support for timeouts
authorPatrick McHardy <kaber@trash.net>
Thu, 26 Mar 2015 12:39:40 +0000 (12:39 +0000)
committerPablo Neira Ayuso <pablo@netfilter.org>
Wed, 1 Apr 2015 09:17:49 +0000 (11:17 +0200)
commita387688ee8a90b7d8b6cee30d7f3b65b0d3e6f45
tree8a0c0e2e7e930f83fcd1bce4a1b5630a21d58d94
parentf9d0b4220f55e321e4cfb3f8223c58a707f512ec
netfilter: nft_hash: add support for timeouts

Add support for element timeouts to nft_hash. The lookup and walking
functions are changed to ignore timed out elements, a periodic garbage
collection task cleans out expired entries.

Signed-off-by: Patrick McHardy <kaber@trash.net>
Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
include/net/netfilter/nf_tables.h
net/netfilter/nft_hash.c