Holger Eitzenberger <[EMAIL PROTECTED]> wrote:
>
> in nl_pid_hash_dilute() there is:
>
> if (unlikely(avg > 1) && nl_pid_hash_rehash(hash, 1))
> return 1;
>
> if (unlikely(len > avg) && time_after(jiffies, hash->rehash_time)) {
> nl_pid_hash_rehash(hash, 0);
> return 1;
> }
>
> I don't see a reason why periodically rehashing might help in any way
> (without resizing). Is there a reason for that?
It's to prevent attackers from guessing the hash secret and causing
hash chains to grow excessively.
Cheers,
--
Visit Openswan at http://www.openswan.org/
Email: Herbert Xu ~{PmV>HI~} <[EMAIL PROTECTED]>
Home Page: http://gondor.apana.org.au/~herbert/
PGP Key: http://gondor.apana.org.au/~herbert/pubkey.txt
-
To unsubscribe from this list: send the line "unsubscribe netdev" in
the body of a message to [EMAIL PROTECTED]
More majordomo info at http://vger.kernel.org/majordomo-info.html