All of lore.kernel.org
 help / color / mirror / Atom feed
From: Sven Anders <anders@anduras.de>
To: netfilter-devel@lists.netfilter.org
Subject: [PATCH] [POM] ipp2p/ipv4options patches
Date: Thu, 06 Jul 2006 11:24:50 +0200	[thread overview]
Message-ID: <44ACD6E2.5010101@anduras.de> (raw)

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

Hello!

Here are some patches for the latest Patch-O-Matic, which I needed for using
them with the latest stable kernel.

These are only corrections for the new function parameters and the missing
matchsize.

Regards
 Sven Anders

-- 
 Sven Anders <anders@anduras.de>                 () Ascii Ribbon Campaign
                                                 /\ Support plain text e-mail
 ANDURAS service solutions AG
 Innstraße 71 - 94036 Passau - Germany
 Web: www.anduras.de - Tel: +49 (0)851-4 90 50-0 - Fax: +49 (0)851-4 90 50-55

[-- Attachment #2: patch-o-matic-ng-20060704.patches --]
[-- Type: text/plain, Size: 2290 bytes --]

diff -u -r -N patch-o-matic-ng-20060704.vanilla/patchlets/ipp2p/linux-2.6/net/ipv4/netfilter/ipt_ipp2p.c patch-o-matic-ng-20060704/patchlets/ipp2p/linux-2.6/net/ipv4/netfilter/ipt_ipp2p.c
--- patch-o-matic-ng-20060704.vanilla/patchlets/ipp2p/linux-2.6/net/ipv4/netfilter/ipt_ipp2p.c	2006-03-29 14:42:09.000000000 +0200
+++ patch-o-matic-ng-20060704/patchlets/ipp2p/linux-2.6/net/ipv4/netfilter/ipt_ipp2p.c	2006-07-06 11:03:30.000000000 +0200
@@ -728,6 +728,7 @@
 match(const struct sk_buff *skb,
       const struct net_device *in,
       const struct net_device *out,
+      const struct xt_match *match,
       const void *matchinfo,
       int offset,
       unsigned int protoff,
@@ -811,7 +812,8 @@
 
 static int
 checkentry(const char *tablename,
-            const void *ip,
+	    const void *ip,
+	    const struct xt_match *match,
 	    void *matchinfo,
 	    unsigned int matchsize,
 	    unsigned int hook_mask)
@@ -840,6 +842,7 @@
 	.name		= "ipp2p",
 	.match		= &match,
 	.checkentry	= &checkentry,
+	.matchsize	= sizeof(struct ipt_p2p_info),
 	.me		= THIS_MODULE,
 #endif
 };
diff -u -r -N patch-o-matic-ng-20060704.vanilla/patchlets/ipv4options/linux-2.6/net/ipv4/netfilter/ipt_ipv4options.c patch-o-matic-ng-20060704/patchlets/ipv4options/linux-2.6/net/ipv4/netfilter/ipt_ipv4options.c
--- patch-o-matic-ng-20060704.vanilla/patchlets/ipv4options/linux-2.6/net/ipv4/netfilter/ipt_ipv4options.c	2006-03-29 11:05:43.000000000 +0200
+++ patch-o-matic-ng-20060704/patchlets/ipv4options/linux-2.6/net/ipv4/netfilter/ipt_ipv4options.c	2006-07-06 11:04:55.000000000 +0200
@@ -25,6 +25,7 @@
 match(const struct sk_buff *skb,
       const struct net_device *in,
       const struct net_device *out,
+      const struct xt_match *match,
       const void *matchinfo,
       int offset,
       unsigned int protoff,
@@ -107,6 +108,7 @@
 static int
 checkentry(const char *tablename,
 	   const void *ip,
+	   const struct xt_match *match,
 	   void *matchinfo,
 	   unsigned int matchsize,
 	   unsigned int hook_mask)
@@ -154,8 +156,9 @@
 
 static struct ipt_match ipv4options_match = { 
 	.name = "ipv4options",
-	.match = match,
-	.checkentry = checkentry,
+	.match = &match,
+	.matchsize = sizeof(struct ipt_ipv4options_info),
+	.checkentry = &checkentry,
 	.me = THIS_MODULE
 };
 

             reply	other threads:[~2006-07-06  9:24 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2006-07-06  9:24 Sven Anders [this message]
2006-07-06 10:17 ` [PATCH] [POM] ipp2p/ipv4options patches Krzysztof Oledzki
2006-07-07  3:56 ` 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=44ACD6E2.5010101@anduras.de \
    --to=anders@anduras.de \
    --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.