All of lore.kernel.org
 help / color / mirror / Atom feed
From: Jan Engelhardt <jengelh@medozas.de>
To: Balaji Venkatamohan <bvenkat@ncsu.edu>
Cc: netfilter-devel@vger.kernel.org
Subject: Re: how to use regex inside new netfilter extension modules?
Date: Wed, 3 Mar 2010 19:56:07 +0100 (CET)	[thread overview]
Message-ID: <alpine.LSU.2.01.1003031954001.25372@obet.zrqbmnf.qr> (raw)
In-Reply-To: <63409.152.14.240.190.1267641716.squirrel@webmail.ncsu.edu>

On Wednesday 2010-03-03 19:41, Balaji Venkatamohan wrote:
>
>I need to use regular expressions inside the point of decision match
>function. I could not use 'regex.h ' or any other standard C library
>inside any of xt_*.c or xt_c*.h files. I could also see that none of the
>netfilter match extensions have them. I would also like to know why is it
>so?

Regular expressions are not the cheapest, both time and memory-wise:
you have to keep in mind NF runs in irq context. Furthermore, since 
you only see single packets rather than the connection stream, regexes 
prove to be far less useful.

  reply	other threads:[~2010-03-03 18:56 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-03-03 18:41 how to use regex inside new netfilter extension modules? Balaji Venkatamohan
2010-03-03 18:56 ` Jan Engelhardt [this message]
2010-03-04  1:33   ` Changli Gao

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=alpine.LSU.2.01.1003031954001.25372@obet.zrqbmnf.qr \
    --to=jengelh@medozas.de \
    --cc=bvenkat@ncsu.edu \
    --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 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.