Expire aged flows in normal expiry thread. This fixes the problem, when

a node disconnected from all sources of traffic never purges its cache.
This commit is contained in:
Gleb Smirnoff 2005-02-05 10:00:04 +00:00
parent 020d3f61d8
commit d1240630b3

View File

@ -701,7 +701,8 @@ ng_netflow_expire(void *arg)
if (used <= CACHELOWAT && !INACTIVE(fle))
goto finish;
if (INACTIVE(fle) && (SMALL(fle) || (used > CACHELOWAT))) {
if ((INACTIVE(fle) && (SMALL(fle) || (used > CACHELOWAT))) ||
AGED(fle)) {
/* Detach flow entry from cache */
LIST_REMOVE(fle, fle_hash);