[NET]: Split skb->csum
[linux-2.6.git] / net / core / skbuff.c
index 07c25d6..a90bc43 100644 (file)
@@ -1414,7 +1414,7 @@ void skb_copy_and_csum_dev(const struct sk_buff *skb, u8 *to)
                                              skb->len - csstart, 0);
 
        if (skb->ip_summed == CHECKSUM_PARTIAL) {
-               long csstuff = csstart + skb->csum;
+               long csstuff = csstart + skb->csum_offset;
 
                *((__sum16 *)(to + csstuff)) = csum_fold(csum);
        }