Received: with ECARTIS (v1.0.0; list netdev); Tue, 20 May 2003 12:50:18 -0700 (PDT) Received: from kona.carleton.edu (Kona.Carleton.edu [137.22.93.220]) by oss.sgi.com (8.12.9/8.12.9) with SMTP id h4KJo82x019818 for ; Tue, 20 May 2003 12:50:11 -0700 Received: from ethanet.com (pcSommerE.Res.Carleton.edu [137.22.99.222]) by carleton.edu (PMDF V6.2 #30648) with ESMTPA id <0HF700CGRB3J70@carleton.edu> for netdev@oss.sgi.com; Tue, 20 May 2003 14:50:07 -0500 (CDT) Date: Tue, 20 May 2003 14:50:07 -0500 From: Ethan Sommer Subject: Re: [Fwd: [ANNOUNCE] Layer-7 Filter for Linux QoS] In-reply-to: <20030520105356.U41173@shell.cyberus.ca> To: Jamal Hadi Cc: "David S. Miller" , linux-net@vger.kernel.org, netdev@oss.sgi.com Message-id: <3ECA86EF.2030001@ethanet.com> MIME-version: 1.0 Content-type: text/plain; format=flowed; charset=us-ascii Content-transfer-encoding: 7bit X-Accept-Language: en-us, en User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.4b) Gecko/20030515 Thunderbird/0.1a References: <1053313298.3909.5.camel@rth.ninka.net> <20030519202756.I39498@shell.cyberus.ca> <3EC9B815.4000504@ethanet.com> <20030520080940.E40885@shell.cyberus.ca> <3ECA3E2C.20805@ethanet.com> <20030520105356.U41173@shell.cyberus.ca> X-archive-position: 2617 X-ecartis-version: Ecartis v1.0.0 Sender: netdev-bounce@oss.sgi.com Errors-to: netdev-bounce@oss.sgi.com X-original-sender: sommere@ethanet.com Precedence: bulk X-list: netdev Jamal Hadi wrote: >On Tue, 20 May 2003, Ethan Sommer wrote: > > > >>Nope. I need to strip out all the nulls from the packet, or any posix >>regex parser will think the string ends at the first null. (so protocols >>which use null's will be difficult/impossible to identify) >> >> > >Ok, i see your dilema. How does snort do it? I dont think copying the >packet is the right way to do it. Could the null NOT be considered as >something speacial unless explicitly stated? > > > One thing I should have pointed out earlier, it only copies that memory/does regex stuff until it finds a match or the first 8 packets, whichever is less. So, at least based on my tests, it doesn't seem to slow down 100BT much from what it would be otherwise. We might run into trouble if we look at GB or 10GB, but until we find a problem with speed, I think it is probably more important to make this as simple and easy to maintain as possible. If we see a need to make it more complicated due to speed issues, _then_ we should think about trying to get rid of that copy. Ethan http://l7-filter.sf.net