From: Patrick McHardy <kaber@trash.net>
To: Krzysztof Oledzki <ole@ans.pl>
Cc: Harald Welte <laforge@netfilter.org>,
netfilter-devel@lists.netfilter.org,
Krzysztof Oledzki <olenf@ans.pl>,
Pablo Neira Ayuso <pablo@netfilter.org>
Subject: Re: connbytes & 64bit counters
Date: Mon, 15 Jan 2007 15:37:14 +0100 [thread overview]
Message-ID: <45AB919A.4030100@trash.net> (raw)
In-Reply-To: <Pine.LNX.4.64.0701151141410.13986@bizon.gios.gov.pl>
Krzysztof Oledzki wrote:
> On Wed, 10 Jan 2007, Patrick McHardy wrote:
>
>>> linux-2.6.19.1-64bitconntrack/net/ipv4/netfilter/ip_conntrack_core.c
>>> 2006-12-22 21:13:35.000000000 +0100
>>> @@ -1148,9 +1148,6 @@
>>> ct->counters[CTINFO2DIR(ctinfo)].packets++;
>>> ct->counters[CTINFO2DIR(ctinfo)].bytes +=
>>> ntohs(skb->nh.iph->tot_len);
>>> - if ((ct->counters[CTINFO2DIR(ctinfo)].packets & 0x80000000)
>>> - || (ct->counters[CTINFO2DIR(ctinfo)].bytes & 0x80000000))
>>> - event |= IPCT_COUNTER_FILLING;
>>
>>
>>
>> This was actually broken before, since the counters are not
>> reset (they just overflow) an event was generated for every
>> packet until the overflow once they reached 2^31. Anyway,
>> I'm not sure how ulogd2 uses these counters, Harald, is it
>> necessary to receive period updates?
>
>
> If we remove IPCT_COUNTER_FILLING there is no other solution than also
> drop this part of the code.
Let's wait what Harald says about ulogd2, I'm not sure whether we need
to keep this.
> BTW: what about CTA_COUNTERS32_*? Should we also drop that attributes?
They should be kept to make sure the value are not reused. Please just
add a comment stating that they are not used anymore.
next prev parent reply other threads:[~2007-01-15 14:37 UTC|newest]
Thread overview: 21+ messages / expand[flat|nested] mbox.gz Atom feed top
2006-10-24 22:53 connbytes & 64bit counters Krzysztof Oledzki
2006-10-25 22:20 ` Patrick McHardy
2006-10-28 16:48 ` Krzysztof Oledzki
2006-10-30 12:01 ` Amin Azez
2006-10-30 15:54 ` Patrick McHardy
2006-10-30 20:01 ` Krzysztof Oledzki
2006-11-23 14:05 ` Patrick McHardy
2006-11-23 21:04 ` Pablo Neira Ayuso
2006-11-24 9:09 ` Patrick McHardy
2006-12-25 1:59 ` Krzysztof Oledzki
2007-01-10 13:36 ` Patrick McHardy
2007-01-15 10:45 ` Krzysztof Oledzki
2007-01-15 14:37 ` Patrick McHardy [this message]
2007-07-20 22:13 ` Krzysztof Oledzki
2007-07-20 22:42 ` Krzysztof Oledzki
2007-07-21 4:18 ` Patrick McHardy
2007-07-21 16:38 ` Jan Engelhardt
2007-07-23 2:27 ` Yasuyuki KOZAKAI
[not found] ` <200707230227.l6N2R1hs010163@toshiba.co.jp>
2007-08-06 11:30 ` Krzysztof Oledzki
2007-08-29 11:31 ` Krzysztof Oledzki
2006-11-01 15:08 ` Amin Azez
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=45AB919A.4030100@trash.net \
--to=kaber@trash.net \
--cc=laforge@netfilter.org \
--cc=netfilter-devel@lists.netfilter.org \
--cc=ole@ans.pl \
--cc=olenf@ans.pl \
--cc=pablo@netfilter.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.