[POM-NG 4/10] Fix the TARPIT extension for 2.6.16 kernels

Krzysztof Oledzki olenf at ans.pl
Mon Mar 27 14:17:51 CEST 2006


[POM-NG 4/10] Fix the TARPIT extension for 2.6.16 kernels

This patch allows the TARPIT extension to be used with 2.6.16 kernels

Signed-off-by: Krzysztof Piotr Oledzki <ole at ans.pl>

diff -Nur patch-o-matic-ng-20060311-orig/patchlets/TARPIT/linux-2.6/net/ipv4/netfilter/ipt_TARPIT.c patch-o-matic-ng-20060311/patchlets/TARPIT/linux-2.6/net/ipv4/netfilter/ipt_TARPIT.c
--- patch-o-matic-ng-20060311-orig/patchlets/TARPIT/linux-2.6/net/ipv4/netfilter/ipt_TARPIT.c	2006-01-03 12:29:44.000000000 +0100
+++ patch-o-matic-ng-20060311/patchlets/TARPIT/linux-2.6/net/ipv4/netfilter/ipt_TARPIT.c	2006-03-21 23:38:57.000000000 +0100
@@ -248,11 +248,13 @@


  static int check(const char *tablename,
-		 const struct ipt_entry *e,
+		 const void *e_void,
  		 void *targinfo,
  		 unsigned int targinfosize,
  		 unsigned int hook_mask)
  {
+	const struct ipt_entry *e = e_void;
+
  	/* Only allow these for input/forward packet filtering. */
  	if (strcmp(tablename, "filter") != 0) {
  		DEBUGP("TARPIT: bad table %s'.\n", tablename);
-------------- next part --------------
[POM-NG 4/10] Fix the TARPIT extension for 2.6.16 kernels

This patch allows the TARPIT extension to be used with 2.6.16 kernels

Signed-off-by: Krzysztof Piotr Oledzki <ole at ans.pl>

diff -Nur patch-o-matic-ng-20060311-orig/patchlets/TARPIT/linux-2.6/net/ipv4/netfilter/ipt_TARPIT.c patch-o-matic-ng-20060311/patchlets/TARPIT/linux-2.6/net/ipv4/netfilter/ipt_TARPIT.c
--- patch-o-matic-ng-20060311-orig/patchlets/TARPIT/linux-2.6/net/ipv4/netfilter/ipt_TARPIT.c	2006-01-03 12:29:44.000000000 +0100
+++ patch-o-matic-ng-20060311/patchlets/TARPIT/linux-2.6/net/ipv4/netfilter/ipt_TARPIT.c	2006-03-21 23:38:57.000000000 +0100
@@ -248,11 +248,13 @@
 
 
 static int check(const char *tablename,
-		 const struct ipt_entry *e,
+		 const void *e_void,
 		 void *targinfo,
 		 unsigned int targinfosize,
 		 unsigned int hook_mask)
 {
+	const struct ipt_entry *e = e_void;
+
 	/* Only allow these for input/forward packet filtering. */
 	if (strcmp(tablename, "filter") != 0) {
 		DEBUGP("TARPIT: bad table %s'.\n", tablename);


More information about the netfilter-devel mailing list