All of lore.kernel.org
 help / color / mirror / Atom feed
From: Pablo Neira Ayuso <pablo@netfilter.org>
To: Patrick McHardy <kaber@trash.net>
Cc: Netfilter Development Mailinglist <netfilter-devel@lists.netfilter.org>
Subject: Re: [RFC, NETFILTER]: amanda helper: convert to textsearch infrastructure
Date: Wed, 24 May 2006 03:32:23 +0200	[thread overview]
Message-ID: <4473B7A7.2060707@netfilter.org> (raw)
In-Reply-To: <4473A8A8.3040801@netfilter.org>

Pablo Neira Ayuso wrote:
> Patrick McHardy wrote:
>  -        *tmp = '\0';
>> +    memset(&ts, 0, sizeof(ts));
>> +    stop = skb_find_text(*pskb, start, (*pskb)->len,
>> +                 search[SEARCH_NEWLINE].ts, &ts);
> 
> Better use strstr here: the textsearch infrastructure implements 
> algorithms only introduce trade off for patterns longer than one byte. 
> So, in this case, the infrastructure can not help in any way.

Please, forget this comment, strstr is not fragment-aware.

-- 
The dawn of the fourth age of Linux firewalling is coming; a time of 
great struggle and heroic deeds -- J.Kadlecsik got inspired by J.Morris

  reply	other threads:[~2006-05-24  1:32 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2006-05-19 16:38 [RFC, NETFILTER]: amanda helper: convert to textsearch infrastructure Patrick McHardy
2006-05-24  0:28 ` Pablo Neira Ayuso
2006-05-24  1:32   ` Pablo Neira Ayuso [this message]
2006-05-24 10:00   ` 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=4473B7A7.2060707@netfilter.org \
    --to=pablo@netfilter.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.