]> bbs.cooldavid.org Git - net-next-2.6.git/blobdiff - drivers/net/ns83820.c
[SK_BUFF]: Introduce ip_hdr(), remove skb->nh.iph
[net-next-2.6.git] / drivers / net / ns83820.c
index 747988b12ecda9f794a4b34ea82285f0f27991c8..6a32338623f18bdeacca68b2ffc9e771cf03bfeb 100644 (file)
@@ -1156,9 +1156,9 @@ again:
        extsts = 0;
        if (skb->ip_summed == CHECKSUM_PARTIAL) {
                extsts |= EXTSTS_IPPKT;
-               if (IPPROTO_TCP == skb->nh.iph->protocol)
+               if (IPPROTO_TCP == ip_hdr(skb)->protocol)
                        extsts |= EXTSTS_TCPPKT;
-               else if (IPPROTO_UDP == skb->nh.iph->protocol)
+               else if (IPPROTO_UDP == ip_hdr(skb)->protocol)
                        extsts |= EXTSTS_UDPPKT;
        }