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
-
: send the line "unsubscribe linux-net" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html