* Stephen Frost ([email protected]) wrote: > * Patrick McHardy ([email protected]) wrote: > > This is the updated patch, it changes the eviction strategy > > to LRU and fixes a bug related to TTL handling, the TTL stored > > in the entry should only be overwritten if the IPT_RECENT_TTL > > flag is set. > > I thought that I had convinced myself that the TTL handling was okay and > that where it was overwritten wasn't harmful. Oh well. Looking at this again... The ttl isn't copied into 'ttl' unless the check_set has TTL turned on. This means that the overwritting was fine, if you accept that you can only ever match on TTL, or never match on it. That doesn't seem right to me. The TTL in the table should always be kept up-to-date and the only question is if the current rule requires it for a match or not. This isn't a huge change, just set the local variable always but check for if it's asked to match before calling the lookup. Or you could move it into an if/else block. Thanks, Stephen
Attachment:
signature.asc
Description: Digital signature
- Follow-Ups:
- Re: [PATCH] fix mem-leak in netfilter
- From: Patrick McHardy <[email protected]>
- Re: [PATCH] fix mem-leak in netfilter
- References:
- Re: [PATCH] fix mem-leak in netfilter
- From: Patrick McHardy <[email protected]>
- Re: [PATCH] fix mem-leak in netfilter
- From: "Jesper Juhl" <[email protected]>
- Re: [PATCH] fix mem-leak in netfilter
- From: Patrick McHardy <[email protected]>
- Re: [PATCH] fix mem-leak in netfilter
- From: Patrick McHardy <[email protected]>
- Re: [PATCH] fix mem-leak in netfilter
- From: Stephen Frost <[email protected]>
- Re: [PATCH] fix mem-leak in netfilter
- From: Patrick McHardy <[email protected]>
- Re: [PATCH] fix mem-leak in netfilter
- From: Stephen Frost <[email protected]>
- Re: [PATCH] fix mem-leak in netfilter
- From: Patrick McHardy <[email protected]>
- Re: [PATCH] fix mem-leak in netfilter
- From: Stephen Frost <[email protected]>
- Re: [PATCH] fix mem-leak in netfilter
- Prev by Date: Re: [PATCH 008 of 8] md/bitmap: Change md/bitmap file handling to use bmap to file blocks.
- Next by Date: Re: [PATCH 4 of 53] ipath - cap number of PDs that can be allocated
- Previous by thread: Re: [PATCH] fix mem-leak in netfilter
- Next by thread: Re: [PATCH] fix mem-leak in netfilter
- Index(es):