* [PATCH] ip6t_REJECT.c vs 2.6.12.
@ 2005-06-22 12:06 Pawel Sikora
2005-06-22 18:39 ` Patrick McHardy
0 siblings, 1 reply; 2+ messages in thread
From: Pawel Sikora @ 2005-06-22 12:06 UTC (permalink / raw)
To: netfilter-devel, Patrick McHardy
[-- 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");
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2005-06-22 18:39 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2005-06-22 12:06 [PATCH] ip6t_REJECT.c vs 2.6.12 Pawel Sikora
2005-06-22 18:39 ` Patrick McHardy
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.