All of lore.kernel.org
 help / color / mirror / Atom feed
From: Max Kellermann <max@duempel.org>
To: netfilter-devel@lists.netfilter.org
Subject: [PATCH pom-ng] ipt_TARPIT for Linux 2.6.19
Date: Thu, 11 Jan 2007 10:28:37 +0100	[thread overview]
Message-ID: <20070111092837.GA32096@roonstrasse.net> (raw)

[-- Attachment #1: Type: text/plain, Size: 74 bytes --]

Hi,

this patch makes ipt_TARPIT.c conform to the Linux 2.6.19 API.

Max


[-- Attachment #2: ipt_tarpit-linux_2.6.19.patch --]
[-- Type: text/x-diff, Size: 1065 bytes --]

Index: patchlets/TARPIT/linux-2.6/net/ipv4/netfilter/ipt_TARPIT.c
===================================================================
--- patchlets/TARPIT/linux-2.6/net/ipv4/netfilter/ipt_TARPIT.c	(revision 6730)
+++ patchlets/TARPIT/linux-2.6/net/ipv4/netfilter/ipt_TARPIT.c	(working copy)
@@ -35,7 +35,6 @@
  * - Reply to TCP !SYN,!RST,!FIN with ACK, window 0 bytes, rate-limited
  */
 
-#include <linux/config.h>
 #include <linux/version.h>
 #include <linux/module.h>
 #include <linux/skbuff.h>
@@ -214,8 +213,8 @@
 			   const struct net_device *in,
 			   const struct net_device *out,
 			   unsigned int hooknum,
-			   const void *targinfo,
-			   void *userinfo)
+			   const struct xt_target *target,
+			   const void *targinfo)
 {
 	struct sk_buff *skb = *pskb;
 	struct rtable *rt = (struct rtable*)skb->dst;
@@ -249,8 +248,8 @@
 
 static int check(const char *tablename,
 		 const void *e_void,
+		 const struct xt_target *target,
 		 void *targinfo,
-		 unsigned int targinfosize,
 		 unsigned int hook_mask)
 {
 	const struct ipt_entry *e = e_void;

             reply	other threads:[~2007-01-11  9:28 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2007-01-11  9:28 Max Kellermann [this message]
2007-01-11  9:30 ` [PATCH pom-ng] ipt_TARPIT for Linux 2.6.19 Patrick McHardy

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20070111092837.GA32096@roonstrasse.net \
    --to=max@duempel.org \
    --cc=netfilter-devel@lists.netfilter.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.