[netfilter-cvslog] r3681 -
trunk/patch-o-matic-ng/hashlimit/linux-2.6/net/ipv4/netfilter
laforge at netfilter.org
laforge at netfilter.org
Sun Feb 13 19:13:45 CET 2005
Author: laforge at netfilter.org
Date: 2005-02-13 19:13:44 +0100 (Sun, 13 Feb 2005)
New Revision: 3681
Modified:
trunk/patch-o-matic-ng/hashlimit/linux-2.6/net/ipv4/netfilter/ipt_hashlimit.c
Log:
Use | instead of & (Closes: #300)
Modified: trunk/patch-o-matic-ng/hashlimit/linux-2.6/net/ipv4/netfilter/ipt_hashlimit.c
===================================================================
--- trunk/patch-o-matic-ng/hashlimit/linux-2.6/net/ipv4/netfilter/ipt_hashlimit.c 2005-02-13 17:26:43 UTC (rev 3680)
+++ trunk/patch-o-matic-ng/hashlimit/linux-2.6/net/ipv4/netfilter/ipt_hashlimit.c 2005-02-13 18:13:44 UTC (rev 3681)
@@ -112,7 +112,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);
}
More information about the netfilter-cvslog
mailing list