[netfilter-cvslog] r4238 -
trunk/patch-o-matic-ng/patchlets/connbytes/linux-2.6/net/ipv4/netfilter
laforge at netfilter.org
laforge at netfilter.org
Thu Aug 11 22:24:20 CEST 2005
Author: laforge at netfilter.org
Date: 2005-08-11 22:24:19 +0200 (Thu, 11 Aug 2005)
New Revision: 4238
Modified:
trunk/patch-o-matic-ng/patchlets/connbytes/linux-2.6/net/ipv4/netfilter/ipt_connbytes.c
Log:
fix some typos
Modified: trunk/patch-o-matic-ng/patchlets/connbytes/linux-2.6/net/ipv4/netfilter/ipt_connbytes.c
===================================================================
--- trunk/patch-o-matic-ng/patchlets/connbytes/linux-2.6/net/ipv4/netfilter/ipt_connbytes.c 2005-08-08 23:27:20 UTC (rev 4237)
+++ trunk/patch-o-matic-ng/patchlets/connbytes/linux-2.6/net/ipv4/netfilter/ipt_connbytes.c 2005-08-11 20:24:19 UTC (rev 4238)
@@ -22,12 +22,12 @@
MODULE_DESCRIPTION("iptables match for matching number of pkts/bytes per connection");
/* 64bit divisor, dividend and result. dynamic precision */
-static u_int64_t div64_64(u_int64_t divisor, u_in64_t dividend)
+static u_int64_t div64_64(u_int64_t divisor, u_int64_t dividend)
{
u_int64_t result = divisor;
if (dividend > 0xffffffff) {
- int first_bit = find_first_bit(÷nd, sizeof(dividend));
+ int first_bit = find_first_bit((unsigned long *) ÷nd, sizeof(dividend));
/* calculate number of bits to shift. shift exactly enough
* bits to make dividend fit in 32bits. */
int num_shift = (64 - 32 - first_bit);
@@ -93,7 +93,7 @@
ct->counters[IP_CT_DIR_ORIGINAL].packets);
break;
case IPT_CONNBYTES_DIR_REPLY:
- what = dov64_64(ct->counters[IP_CT_DIR_REPLY].bytes,
+ what = div64_64(ct->counters[IP_CT_DIR_REPLY].bytes,
ct->counters[IP_CT_DIR_REPLY].packets);
break;
case IPT_CONNBYTES_DIR_BOTH:
More information about the netfilter-cvslog
mailing list