| To: | Thomas Graf <tgraf@xxxxxxx> |
|---|---|
| Subject: | Re: [RFC] string matching based packet classification/filtering |
| From: | Pablo Neira <pablo@xxxxxxxxxxx> |
| Date: | Tue, 15 Feb 2005 22:41:47 +0100 |
| Cc: | Harald Welte <laforge@xxxxxxxxxxxx>, netdev@xxxxxxxxxxx, netfilter-devel@xxxxxxxxxxxxxxxxxxx |
| In-reply-to: | <20050215203211.GL31837@postel.suug.ch> |
| References: | <20050215203211.GL31837@postel.suug.ch> |
| Sender: | netdev-bounce@xxxxxxxxxxx |
| User-agent: | Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.6) Gecko/20040413 Debian/1.6-5 |
Hi Thomas, Thomas Graf wrote: We have been discussing string matching based packet classification and filterings a few times already and I'd like to make it serious this time to get the string matching ematch ready for 2.6.12 inclusion. I agree with you. I'd like to finish see something usable. On the other hand, there's no need to rush anyway. I'm aware of the bayer-moore based patch by Emmanuel Roger, Gianni Tedesco, and Pablo but I also heard about a generic string matching architecture supporting various algorithms I haven't found that patchset though. 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. Any plans for a stateful string matching netfilter module? As it was mentioned already we could share some code between the ematch and netfilter.
I do not care for the algorithm, actually I think it doesn't matter at all as long as it's not a naive linear search. An infrastructure based on libqsearch let us have different algorithms, so we could use whatever algorithm. This won't be a problem. The essential parts are to be able t define a searching range and to support paged skbs. I've been working on this, I'll pass you what I have as soon as I get time to review it again. If there is someone going for the generic architecture fullfilling the essential parts just described then I'll be more than happy to use that bit of code otherwise I'd be happy to discuss the requirements of both sides and try to find a compromise both sides can live with. Those look fine for me. Actually I also need more than a true of false, a pointer to where a matching happens. This is a requirement for conntrack helpers. Applying this on the recently posted implementation by Pablo it shows
If needed an additional input argument could be added specifying the algorithm to be used. Eventually it requires an additional algoirthm specific argument carrying meta data such as prefix lookup tables.
-- Pablo |
| <Prev in Thread] | Current Thread | [Next in Thread> |
|---|---|---|
| ||
| Previous by Date: | Re: [PATCHSET] Extended matches and basic classifier, David S. Miller |
|---|---|
| Next by Date: | Re: Some pktgen fixes for 2.6.11-rc2, David S. Miller |
| Previous by Thread: | [RFC] string matching based packet classification/filtering, Thomas Graf |
| Next by Thread: | Re: [RFC] string matching based packet classification/filtering, Thomas Graf |
| Indexes: | [Date] [Thread] [Top] [All Lists] |