From: Tim Gardner Date: Tue, 16 Mar 2010 18:53:13 +0000 (+0100) Subject: netfilter: xt_recent: add an entry reaper X-Git-Tag: v2.6.35-rc1~473^2~168^2~72 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=0079c5aee34880bcee7feee9960f0502c73dc5fa;p=pandora-kernel.git netfilter: xt_recent: add an entry reaper One of the problems with the way xt_recent is implemented is that there is no efficient way to remove expired entries. Of course, one can write a rule '-m recent --remove', but you have to know beforehand which entry to delete. This commit adds reaper logic which checks the head of the LRU list when a rule is invoked that has a '--seconds' value and XT_RECENT_REAP set. If an entry ceases to accumulate time stamps, then it will eventually bubble to the top of the LRU list where it is then reaped. Signed-off-by: Tim Gardner Signed-off-by: Eric Dumazet Signed-off-by: Patrick McHardy --- Reading git-diff-tree failed