All of lore.kernel.org
 help / color / mirror / Atom feed
From: Pawel Sikora <pluto@agmk.net>
To: netfilter-devel@lists.netfilter.org, Patrick McHardy <kaber@trash.net>
Subject: [PATCH] ip6t_REJECT.c vs 2.6.12.
Date: Wed, 22 Jun 2005 14:06:01 +0200	[thread overview]
Message-ID: <200506221406.01960.pluto@agmk.net> (raw)

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

Hi,

In 2.6.12 the net/ipv6.h was changed.

(...)
extern int ipv6_skip_exthdr(const struct sk_buff *, int start,
-                           u8 *nexthdrp, int len);
+                           u8 *nexthdrp);

ip6t_REJECT.c needs minor fix.

-- 
The only thing necessary for the triumph of evil
  is for good men to do nothing.
                                           - Edmund Burke

[-- Attachment #2: 0.diff --]
[-- Type: text/x-diff, Size: 530 bytes --]

Index: ip6t_REJECT.c
===================================================================
--- ip6t_REJECT.c	(revision 3984)
+++ ip6t_REJECT.c	(working copy)
@@ -72,9 +72,7 @@
 	}
 
 	proto = oip6h->nexthdr;
-	tcphoff = ipv6_skip_exthdr(oldskb, ((u8*)(oip6h+1) - oldskb->data),
-				   &proto, oldskb->len - ((u8*)(oip6h+1)
-							  - oldskb->data));
+	tcphoff = ipv6_skip_exthdr(oldskb, (u8*)(oip6h+1) - oldskb->data, &proto);
 
 	if ((tcphoff < 0) || (tcphoff > oldskb->len)) {
 		DEBUGP("ip6t_REJECT: Can't get TCP header.\n");

             reply	other threads:[~2005-06-22 12:06 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2005-06-22 12:06 Pawel Sikora [this message]
2005-06-22 18:39 ` [PATCH] ip6t_REJECT.c vs 2.6.12 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=200506221406.01960.pluto@agmk.net \
    --to=pluto@agmk.net \
    --cc=kaber@trash.net \
    --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.