ChangeSet 1.2009.16.8, 2005/03/14 21:35:35-08:00, [EMAIL PROTECTED]

        [NETFILTER]: ipt_hashlimit: use | instead of & for correct hash key
        
        Signed-off-by: Harald Welte <[EMAIL PROTECTED]>
        Signed-off-by: David S. Miller <[EMAIL PROTECTED]>



 ipt_hashlimit.c |    2 +-
 1 files changed, 1 insertion(+), 1 deletion(-)


diff -Nru a/net/ipv4/netfilter/ipt_hashlimit.c 
b/net/ipv4/netfilter/ipt_hashlimit.c
--- a/net/ipv4/netfilter/ipt_hashlimit.c        2005-03-15 00:08:55 -08:00
+++ b/net/ipv4/netfilter/ipt_hashlimit.c        2005-03-15 00:08:55 -08:00
@@ -109,7 +109,7 @@
 static inline u_int32_t
 hash_dst(const struct ipt_hashlimit_htable *ht, const struct dsthash_dst *dst)
 {
-       return (jhash_3words(dst->dst_ip, (dst->dst_port<<16 & dst->src_port), 
+       return (jhash_3words(dst->dst_ip, (dst->dst_port<<16 | dst->src_port), 
                             dst->src_ip, ht->rnd) % ht->cfg.size);
 }
 
-
To unsubscribe from this list: send the line "unsubscribe bk-commits-head" in
the body of a message to [EMAIL PROTECTED]
More majordomo info at  http://vger.kernel.org/majordomo-info.html

Reply via email to