fixed polarity of static check in address_cache_timer so that non static entries are aged correctly (bug id 3003518.).
This commit is contained in:
@@ -809,7 +809,7 @@ int rr_address_list_encode(
|
|||||||
* Scan the cache and eliminate any expired entries. Should be called *
|
* Scan the cache and eliminate any expired entries. Should be called *
|
||||||
* periodically to ensure the cache is managed correctly. If this function *
|
* periodically to ensure the cache is managed correctly. If this function *
|
||||||
* is never called at all the whole cache is effectivly rendered static and *
|
* is never called at all the whole cache is effectivly rendered static and *
|
||||||
* entries never expire unless explicetly deleted. *
|
* entries never expire unless explictely deleted. *
|
||||||
****************************************************************************/
|
****************************************************************************/
|
||||||
|
|
||||||
void address_cache_timer(
|
void address_cache_timer(
|
||||||
@@ -820,7 +820,7 @@ void address_cache_timer(
|
|||||||
pMatch = Address_Cache;
|
pMatch = Address_Cache;
|
||||||
while (pMatch <= &Address_Cache[MAX_ADDRESS_CACHE - 1]) {
|
while (pMatch <= &Address_Cache[MAX_ADDRESS_CACHE - 1]) {
|
||||||
if (((pMatch->Flags & (BAC_ADDR_IN_USE | BAC_ADDR_RESERVED)) != 0)
|
if (((pMatch->Flags & (BAC_ADDR_IN_USE | BAC_ADDR_RESERVED)) != 0)
|
||||||
&& ((pMatch->Flags & BAC_ADDR_STATIC) != 0)) { /* Check all entries holding a slot except statics */
|
&& ((pMatch->Flags & BAC_ADDR_STATIC) == 0)) { /* Check all entries holding a slot except statics */
|
||||||
if (pMatch->TimeToLive >= uSeconds)
|
if (pMatch->TimeToLive >= uSeconds)
|
||||||
pMatch->TimeToLive -= uSeconds;
|
pMatch->TimeToLive -= uSeconds;
|
||||||
else
|
else
|
||||||
|
|||||||
Reference in New Issue
Block a user