[SK_BUFF]: Introduce skb_transport_offset()
[deliverable/linux.git] / net / ipv4 / udp.c
index 13739cd8206f76c1bb05359761d22de4a768980d..13875e8419a7467360490fc8915fdf1ad669e84b 100644 (file)
@@ -435,7 +435,7 @@ static void udp4_hwcsum_outgoing(struct sock *sk, struct sk_buff *skb,
                 * fragments on the socket so that all csums of sk_buffs
                 * should be together
                 */
-               offset = skb->h.raw - skb->data;
+               offset = skb_transport_offset(skb);
                skb->csum = skb_checksum(skb, offset, skb->len - offset, 0);
 
                skb->ip_summed = CHECKSUM_NONE;
This page took 0.038654 seconds and 5 git commands to generate.