SOURCES (LINUX_2_6): kernel-2.6.18-layer7-2.7-2.6.19-fix.patch - d...

mguevara mguevara at pld-linux.org
Fri Dec 15 09:19:08 CET 2006


Author: mguevara                     Date: Fri Dec 15 08:19:08 2006 GMT
Module: SOURCES                       Tag: LINUX_2_6
---- Log message:
- do not use skb_copy (without freeing it btw) - instead mask the const 
  and behave like layer7 behaves originally throwing stuff into skb->cb[0].
- todo: find better way to do this - probably we coud use some simple 
  variables to keep state locally

---- Files affected:
SOURCES:
   kernel-2.6.18-layer7-2.7-2.6.19-fix.patch (1.1.2.1 -> 1.1.2.2) 

---- Diffs:

================================================================
Index: SOURCES/kernel-2.6.18-layer7-2.7-2.6.19-fix.patch
diff -u SOURCES/kernel-2.6.18-layer7-2.7-2.6.19-fix.patch:1.1.2.1 SOURCES/kernel-2.6.18-layer7-2.7-2.6.19-fix.patch:1.1.2.2
--- SOURCES/kernel-2.6.18-layer7-2.7-2.6.19-fix.patch:1.1.2.1	Fri Dec 15 03:15:53 2006
+++ SOURCES/kernel-2.6.18-layer7-2.7-2.6.19-fix.patch	Fri Dec 15 09:19:03 2006
@@ -28,12 +28,12 @@
  	unsigned char * app_data;
  	unsigned int pattern_result, appdatalen;
  	regexp * comppattern;
-+	/* slow */
-+	struct sk_buff *skb = skb_copy(skb1, GFP_ATOMIC);
-+	/* fast but we break const */
-+	/* 
++	
++	
++	/* we cheat about const but writing to skb is a standard way here */
++	 
 +	struct sk_buff *skb = (struct sk_buff*) skb1;
-+	*/
++	
  
  	if(!can_handle(skb)){
  		DPRINTK("layer7: This is some protocol I can't handle.\n");
================================================================

---- CVS-web:
    http://cvs.pld-linux.org/SOURCES/kernel-2.6.18-layer7-2.7-2.6.19-fix.patch?r1=1.1.2.1&r2=1.1.2.2&f=u



More information about the pld-cvs-commit mailing list