From mboxrd@z Thu Jan 1 00:00:00 1970 From: Jan Kogut Subject: Re: Netfilter Hooks Date: Thu, 21 Jun 2007 17:30:02 +0200 Message-ID: <467A997A.9080706@genesilico.pl> References: <498E8850061D9A008669D70D@[192.168.42.19]> Mime-Version: 1.0 Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: <498E8850061D9A008669D70D@[192.168.42.19]> List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: netfilter-bounces@lists.netfilter.org Errors-To: netfilter-bounces@lists.netfilter.org Content-Type: text/plain; charset="us-ascii" To: Werner Maier Cc: netfilter@lists.netfilter.org Hi, > > look for "string" in the manpage to iptables. > > iptables ... -m string --string "GOOGLE" --algo bm ... > > should be the right pointer for you. > I am wondering about the usability of the Knuth-Pratt-Morris algorithm (--algo kmp). here http://www-igm.univ-mlv.fr/~lecroq/string/node14.html#SECTION00140 vs http://www-igm.univ-mlv.fr/~lecroq/string/node8.html#SECTION0080 we can see that Boyer-Moore gives definitely better performance than Knuth-Pratt-Morris. That is why I am curious about when kmp is better than bm ? Cheers, JK -- Regards, Jan Kogut Computer Systems Administrator Laboratory of Bioinformatics and Protein Engineering International Institute of Molecular and Cell Biology ul. Ks. Trojdena 4 02-109 Warsaw, Poland http://genesilico.pl :.