From: Samuel Jean <sj-netfilter@cookinglinux.org>
To: Patrick McHardy <kaber@trash.net>
Cc: netfilter-devel@lists.netfilter.org
Subject: Re: [PATCH] ipt_hashlimit.c: expire's type overflow when showing tuples at bad moment.
Date: Tue, 01 Feb 2005 16:47:53 -0500 [thread overview]
Message-ID: <41FFF909.9050509@cookinglinux.org> (raw)
In-Reply-To: <41FFC770.2090401@trash.net>
Patrick McHardy wrote:
> On my system (x86_64, gcc-3.3.5) va_arg returns 2^32-1 for -1, but it
> should return 2^64-1. Are you seeing this problem on a 32bit or a 64bit
> machine ?
It's on x86 32bits, gcc-3.3.4.
Here's an exemple of consecutive cat:
# cat /proc/net/ipt_hashlimit/moo
0 x.239.59.104:0->0.0.0.0:0 1600 1600 320
0 x.162.158.131:0->0.0.0.0:0 1600 1600 320
# cat /proc/net/ipt_hashlimit/moo
4294967 x.239.59.104:0->0.0.0.0:0 1600 1600 320
4294967 x.162.158.131:0->0.0.0.0:0 1600 1600 320
# cat /proc/net/ipt_hashlimit/moo
#
From what I can think, it goes bad only when a third operation comes into.
Here's what happen without dividing by HZ.
# cat /proc/net/ipt_hashlimit/moo
6 206.162.158.131:0->0.0.0.0:0 1600 1600 320
# cat /proc/net/ipt_hashlimit/moo
-447 206.162.158.131:0->0.0.0.0:0 1600 1600 320
>
> Regards
> Patrick
>
Hope this can help,
Samuel
next prev parent reply other threads:[~2005-02-01 21:47 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2005-01-23 1:32 [PATCH] ipt_hashlimit.c: expire's type overflow when showing tuples at bad moment Samuel Jean
2005-02-01 13:29 ` Harald Welte
2005-02-01 13:43 ` Patrick McHardy
2005-02-01 13:54 ` Harald Welte
2005-02-01 14:20 ` Patrick McHardy
2005-02-01 14:53 ` Samuel Jean
2005-02-01 18:16 ` Patrick McHardy
2005-02-01 21:47 ` Samuel Jean [this message]
2005-02-02 2:11 ` Patrick McHardy
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=41FFF909.9050509@cookinglinux.org \
--to=sj-netfilter@cookinglinux.org \
--cc=kaber@trash.net \
--cc=netfilter-devel@lists.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.