Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
View | Details | Raw Unified | Return to bug 184808
Collapse All | Expand All

(-)ipt_ipp2p.c.orig (+4 lines)
Lines 748-754 Link Here
748
{
748
{
749
    const struct ipt_p2p_info *info = matchinfo;
749
    const struct ipt_p2p_info *info = matchinfo;
750
    unsigned char  *haystack;
750
    unsigned char  *haystack;
751
#if LINUX_VERSION_CODE >= KERNEL_VERSION(2,6,22)
752
    struct iphdr *ip = ip_hdr(skb);
753
#else
751
    struct iphdr *ip = skb->nh.iph;
754
    struct iphdr *ip = skb->nh.iph;
755
#endif
752
    int p2p_result = 0, i = 0;
756
    int p2p_result = 0, i = 0;
753
//    int head_len;
757
//    int head_len;
754
    int hlen = ntohs(ip->tot_len)-(ip->ihl*4);	/*hlen = packet-data length*/
758
    int hlen = ntohs(ip->tot_len)-(ip->ihl*4);	/*hlen = packet-data length*/

Return to bug 184808