2002-07-06 23:14:51+0200, Joakim Axelsson <[EMAIL PROTECTED]> ->
>
> Also with this idea of using power of (^), we tested the abcd hash using
> power of instead of just adding the values up:
> 
> static u32 hash_abcd_power(struct ct_key *key)
> {
>         u32 res;
> 
>         PER_HASH_TIMER_1(
>                 res = (0x47441DFB * key->sip)
>                 ^ (0x57655A7D * key->dip)
>                 ^ (0x1C7F1D2D * key->sport)
>                 ^ (0xDF91D738 * key->dport)
>                 ^ key->proto;
>         );
>         return res;
> }
> 

Oops. ^ is xor in C, not "power of". Hehe, thinking in too much mathemaical
terms here. Guess that tells you that we really dont know what we're doing.
Anyhow. Our rt_ab seams to be very good, thats what matters :-)

-- 
/Joakim Axelsson A.K.A Gozem@EFnet & OPN

Reply via email to