linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Stephen Frost <sfrost@snowman.net>
To: "David S. Miller" <davem@davemloft.net>
Cc: jesper.juhl@gmail.com, juhl-lkml@dif.dk,
	linux-kernel@vger.kernel.org, laforge@netfilter.org
Subject: Re: Shouldn't we be using alloc_skb/kfree_skb in net/ipv4/netfilter/ipt_recent.c::ip_recent_ctrl ?
Date: Thu, 16 Jun 2005 22:31:50 -0400	[thread overview]
Message-ID: <20050617023150.GS30011@ns.snowman.net> (raw)
In-Reply-To: <20050616.154838.41634341.davem@davemloft.net>

[-- Attachment #1: Type: text/plain, Size: 1328 bytes --]

* David S. Miller (davem@davemloft.net) wrote:
> It's using it to send a dummy packet to the patch function.
> It is gross, but it does work because it allocated it's own
> private data area to skb->nh.iph.

Seriously doubt ipt_recent is alone in that given I based the module off
an existing netfilter module and I'm pretty confident I didn't change
anything with regard to that aspect.

> Just leave it alone for now, ipt_recent is gross and full of many
> errors and bug, and thus stands to have a rewrite. Patrick McHardy
> said he will try to do that.

Ideally it should probably be rolled into the new ippool/ipset
framework, if it's capable of supporting what ipt_recent currently does.
I had heard vaugue claims that the new framework was supposted to be
able to support something like ipt_recent but I havn't looked into it
personally.

I'm mildly curious what the issues you have with it are but I've got
nothing against someone rewriting it as long as the functionality
remains the same.  It'd be nice to have a simpler module (perhaps the
new ippool stuff does this already, not sure) which just has a
hash-based table of IPs to match against since I know alot of people use
ipt_recent for that.  It'd also be nice to be able to do ranges and jump
to specific chains based on a hash-lookup to an IP/range.

	Stephen

[-- Attachment #2: Digital signature --]
[-- Type: application/pgp-signature, Size: 189 bytes --]

      parent reply	other threads:[~2005-06-17  2:32 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2005-06-16 22:36 Shouldn't we be using alloc_skb/kfree_skb in net/ipv4/netfilter/ipt_recent.c::ip_recent_ctrl ? Jesper Juhl
2005-06-16 22:33 ` Stephen Frost
2005-06-16 22:48 ` David S. Miller
2005-06-16 22:53   ` Jesper Juhl
2005-06-17  2:31   ` Stephen Frost [this message]

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=20050617023150.GS30011@ns.snowman.net \
    --to=sfrost@snowman.net \
    --cc=davem@davemloft.net \
    --cc=jesper.juhl@gmail.com \
    --cc=juhl-lkml@dif.dk \
    --cc=laforge@netfilter.org \
    --cc=linux-kernel@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;
as well as URLs for NNTP newsgroup(s).