PATCH: string match
Wiktor Wodecki
wodecki@gmx.de
Sat, 20 Oct 2001 18:31:58 +0200
--WIyZ46R2i8wDzkSu
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
Hi there,
this small patch fixes the string match back to the way it was before kernel 2.4.9. Explicit warning for kernel 2.4.9 is added.
--
Regards,
Wiktor Wodecki | http://johoho.eggheads.org
wodecki@gmx.de | IRC: Johoho@IrcNET
--WIyZ46R2i8wDzkSu
Content-Type: text/plain; charset=us-ascii
Content-Disposition: attachment; filename="string.patch"
diff -burN userspace.old/patch-o-matic/string.patch userspace/patch-o-matic/string.patch
--- userspace.old/patch-o-matic/string.patch Fri Aug 24 13:46:26 2001
+++ userspace/patch-o-matic/string.patch Sat Oct 20 18:26:50 2001
@@ -91,7 +91,7 @@
+
+ sk = skip[haystack[right_end - i]];
+ sh = shift[i];
-+ right_end = max(int, right_end - i + sk, right_end + sh);
++ right_end = max(right_end - i + sk, right_end + sh);
+ }
+
+ return NULL;
diff -burN userspace.old/patch-o-matic/string.patch.help userspace/patch-o-matic/string.patch.help
--- userspace.old/patch-o-matic/string.patch.help Sun Sep 2 16:52:23 2001
+++ userspace/patch-o-matic/string.patch.help Sat Oct 20 18:27:26 2001
@@ -1,8 +1,8 @@
Author: Emmanuel Roger <winfield@freegates.be>
-Status: Working
+Status: Working, not with kernel 2.4.9
This patch adds CONFIG_IP_NF_MATCH_STRING which allows you to
match a string in a whole packet.
-THIS PATCH REQUIRES AT LEAST KERNEL 2.4.9 !!!
+THIS PATCH DOES NOT WORK WITH KERNEL 2.4.9 !!!
--WIyZ46R2i8wDzkSu--