SOURCES (LINUX_2_6_20): pom-ng-TARPIT-20061213.patch - hh_lock is ...

mguevara mguevara at pld-linux.org
Sat Feb 17 02:14:42 CET 2007


Author: mguevara                     Date: Sat Feb 17 01:14:42 2007 GMT
Module: SOURCES                       Tag: LINUX_2_6_20
---- Log message:
- hh_lock is seqlock instead of spinlock now

---- Files affected:
SOURCES:
   pom-ng-TARPIT-20061213.patch (1.1.2.3 -> 1.1.2.3.2.1) 

---- Diffs:

================================================================
Index: SOURCES/pom-ng-TARPIT-20061213.patch
diff -u SOURCES/pom-ng-TARPIT-20061213.patch:1.1.2.3 SOURCES/pom-ng-TARPIT-20061213.patch:1.1.2.3.2.1
--- SOURCES/pom-ng-TARPIT-20061213.patch:1.1.2.3	Tue Dec 19 20:45:10 2006
+++ SOURCES/pom-ng-TARPIT-20061213.patch	Sat Feb 17 02:14:36 2007
@@ -38,7 +38,7 @@
 diff -NurpP --minimal /home/users/builder/linux-2.6.19/net/ipv4/netfilter/ipt_TARPIT.c linux-2.6.19/net/ipv4/netfilter/ipt_TARPIT.c
 --- /home/users/builder/linux-2.6.19/net/ipv4/netfilter/ipt_TARPIT.c	1970-01-01 01:00:00.000000000 +0100
 +++ linux-2.6.19/net/ipv4/netfilter/ipt_TARPIT.c	2006-12-14 10:31:11.000000000 +0100
-@@ -0,0 +1,296 @@
+@@ -0,0 +1,292 @@
 +/*
 + * Kernel module to capture and hold incoming TCP connections using
 + * no local per-connection resources.
@@ -105,11 +105,7 @@
 +	struct hh_cache *hh = dst->hh;
 +
 +	if (hh) {
-+		read_lock_bh(&hh->hh_lock);
-+		memcpy(skb->data - 16, hh->hh_data, 16);
-+		read_unlock_bh(&hh->hh_lock);
-+		skb_push(skb, hh->hh_len);
-+		return hh->hh_output(skb);
++		return neigh_hh_output(dst->hh, skb);
 +	} else if (dst->neighbour)
 +		return dst->neighbour->output(skb);
 +
================================================================

---- CVS-web:
    http://cvs.pld-linux.org/SOURCES/pom-ng-TARPIT-20061213.patch?r1=1.1.2.3&r2=1.1.2.3.2.1&f=u



More information about the pld-cvs-commit mailing list