From: Thomas Graf <tgraf@suug.ch>
To: Pablo Neira <pablo@eurodev.net>
Cc: netdev@oss.sgi.com, netfilter-devel@lists.netfilter.org,
Harald Welte <laforge@gnumonks.org>
Subject: Re: [RFC] string matching based packet classification/filtering
Date: Wed, 16 Feb 2005 23:30:38 +0100 [thread overview]
Message-ID: <20050216223038.GQ31837@postel.suug.ch> (raw)
In-Reply-To: <42126C9B.5060406@eurodev.net>
> Actually I wanted to contact Harald after this friday, once I'm done
> with my exams. I'd like to merge my work with his libqsearch hackings
> that were about to be finished.
Thinking about it, we can use the architecture to implement a regular
expression match. The pattern would consist of an array of tokens
in the form of:
struct regexp_token
{
__u8 type;
__u8 recur;
__u8 value;
__u8 unused;
};
where type would be
- specific character (must match `value')
- wildcard
- digit
- xdigit
- alpha ...
and recur
- 1
- 0..1
- 0..n
- 1..0
The matching algorithm would parse the array as a finite automation
eating up byte by byte in the text. I think it would be efficient
enough, easy to implement, not too error prone and powerful enough
for most needs but we can discuss this in more details once libqsearch
is ready. It would be one step closer to the increasing need for
application level based filtering and classification.
next prev parent reply other threads:[~2005-02-16 22:30 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2005-02-15 20:32 [RFC] string matching based packet classification/filtering Thomas Graf
2005-02-15 21:41 ` Pablo Neira
2005-02-15 21:56 ` Thomas Graf
2005-02-16 22:30 ` Thomas Graf [this message]
2005-02-17 1:00 ` Pablo Neira
2005-02-17 13:31 ` Thomas Graf
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=20050216223038.GQ31837@postel.suug.ch \
--to=tgraf@suug.ch \
--cc=laforge@gnumonks.org \
--cc=netdev@oss.sgi.com \
--cc=netfilter-devel@lists.netfilter.org \
--cc=pablo@eurodev.net \
/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).