Skip to contentSkip to conversation

ip6t_REJECT.c vs 2.6.12.

PATCH In review Pawel Sikora 2 participants 2 messages Jun 22, 2005 netfilter

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 ip6t_REJECT.c vs 2.6.12.

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.

Signature · 3 lines
The only thing necessary for the triumph of evil
  is for good men to do nothing.
                                           - Edmund Burke
ip6t_REJECT.c +1 -3
Index: ip6t_REJECT.c
===================================================================
@@ -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");
#1 lore raw
Quoted 10 lines · Pawel Sikora

Hi,

In 2.6.12 the net/ipv6.h was changed.

(...)
extern int ipv6_skip_exthdr(const struct sk_buff *, int start,

(quoted diff) +1 -1
-                           u8 *nexthdrp, int len);
+                           u8 *nexthdrp);

ip6t_REJECT.c needs minor fix.

I already have a fixed version queued and will submit it with my next batch of patches.

Regards
Patrick