--- ipt_ipp2p.c.orig 2007-07-10 05:17:34.000000000 +1100 +++ ipt_ipp2p.c 2007-07-10 05:21:48.000000000 +1100 @@ -748,7 +748,11 @@ { const struct ipt_p2p_info *info = matchinfo; unsigned char *haystack; +#if LINUX_VERSION_CODE >= KERNEL_VERSION(2,6,22) + struct iphdr *ip = ip_hdr(skb); +#else struct iphdr *ip = skb->nh.iph; +#endif int p2p_result = 0, i = 0; // int head_len; int hlen = ntohs(ip->tot_len)-(ip->ihl*4); /*hlen = packet-data length*/