From: Patrick McHardy <kaber@trash.net>
To: Grant Coady <gcoady.lk@gmail.com>
Cc: netfilter-devel@vger.kernel.org
Subject: Re: ipt_recent misuses jiffies? misreports oldest_pkt too
Date: Thu, 25 Sep 2008 06:46:54 +0200 [thread overview]
Message-ID: <48DB17BE.3060905@trash.net> (raw)
In-Reply-To: <6fvld41g81t1ognd9h8uhkmlro5ghogal2@4ax.com>
Grant Coady wrote:
> Hi there,
>
> Given The LDD says:
> "note that the actual clock frequency is almost completely hidden from user
> space. The macro HZ always expands to 100 when user-space programs include
> param.h, and every counter reported to user space is converted accordingly.
> This applies to clock(3), times(2), and any related function."
>
> Why does ipt_recent expose jiffies to userspace when there seems to be no
> reliable method to determine the jiffies/second rate? Should not ipt_recent
> report in 10ms increments to match 'official jiffies'? (or why not epoch
> seconds?) I asked about this on lkml and received no response.
It probably should use USER_HZ units. I just rewrote it, but kept
the old interface as it was for compatibility.
> There's also another problem with ipt_recent misreporting oldest_pkt --
> the number given is meaningless as it is not an offset to the oldest
> packet timestamp, nor does it indicate how many packets have been seen.
> There seems to be a problem when the table is full, I'm still collecting
> data on this.
Indeed, its completely useless information. Actually I don't see
much use for anything in that proc file, but again, I kept it for
compatiblity.
> Is anyone working on a fix for ipt_recent? If not I'll have a go, need to
> do a whitespace cleanup first then fix the issues.
Please base your patches on
git://git.kernel.org/pub/scm/linux/kernel/git/kaber/nf-next-2.6.git
next prev parent reply other threads:[~2008-09-25 4:46 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-09-25 3:22 ipt_recent misuses jiffies? misreports oldest_pkt too Grant Coady
2008-09-25 4:46 ` Patrick McHardy [this message]
2008-09-25 5:51 ` Grant Coady
2008-09-25 6:02 ` 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=48DB17BE.3060905@trash.net \
--to=kaber@trash.net \
--cc=gcoady.lk@gmail.com \
--cc=netfilter-devel@vger.kernel.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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox