Skip to contentSkip to conversation

regular expressions - how to

DISCUSSION [email protected] 2 participants 2 messages Feb 8, 2003 – Feb 9, 2003 netfilter

lore
Share & tools
lore
#0 lore raw

Hello group,

I want to develop a patch for netfilter (kernel 2.4.20). I want compare many strings in a packet. I didn't find a kernel library to work in this project.

With regular expresions I want to find strings in a packet. Anybody can helps me?

best regards
macada.net

PS: Sorry for my English

___________________________________________________
Yahoo! Móviles
Personaliza tu móvil con tu logo y melodía favorito en http://moviles.yahoo.es

#1 lore raw

Hola,

Quoted 6 lines · On Sunday 09 February 2003 00:12, [email protected] wrote:

Hello group,
I want to develop a patch for netfilter (kernel 2.4.20). I want compare many strings in a packet. I didn't find a kernel library to work in this project.
With regular expresions I want to find strings in a packet. Anybody can helps me?

I'm afraid some people have previously proposed the same thing on this list sometime around last year, and the reply was generally that it was a bad idea. Regexps are _very_ heavy/time consuming, and should generally not be in the kernel.. I believe I won't be the only one to tell you this :)

Have a nice day,

Fabrice.
--
Fabrice MARIE

"Silly hacker, root is for administrators"
-Unknown