ip6t_REJECT.c vs 2.6.12.
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 Burkeip6t_REJECT.c +1 -3
@@ -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" );
Quoted 10 lines · Pawel Sikora
Hi,
In 2.6.12 the
net/ipv6.hwas changed.(...)
extern int ipv6_skip_exthdr(const structsk_buff*, int start,(quoted diff) +1
-1- u8 *nexthdrp, int len); + u8 *nexthdrp);
ip6t_REJECT.cneeds minor fix.
I already have a fixed version queued and will submit it with my next batch of patches.
Regards
Patrick