diff options
Diffstat (limited to 'net/ipv6')
-rw-r--r-- | net/ipv6/udp.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/net/ipv6/udp.c b/net/ipv6/udp.c index 98ecfd7359e2..fc0c42a88e54 100644 --- a/net/ipv6/udp.c +++ b/net/ipv6/udp.c | |||
@@ -1328,7 +1328,7 @@ static struct sk_buff *udp6_ufo_fragment(struct sk_buff *skb, u32 features) | |||
1328 | /* Do software UFO. Complete and fill in the UDP checksum as HW cannot | 1328 | /* Do software UFO. Complete and fill in the UDP checksum as HW cannot |
1329 | * do checksum of UDP packets sent as multiple IP fragments. | 1329 | * do checksum of UDP packets sent as multiple IP fragments. |
1330 | */ | 1330 | */ |
1331 | offset = skb->csum_start - skb_headroom(skb); | 1331 | offset = skb_checksum_start_offset(skb); |
1332 | csum = skb_checksum(skb, offset, skb->len- offset, 0); | 1332 | csum = skb_checksum(skb, offset, skb->len- offset, 0); |
1333 | offset += skb->csum_offset; | 1333 | offset += skb->csum_offset; |
1334 | *(__sum16 *)(skb->data + offset) = csum_fold(csum); | 1334 | *(__sum16 *)(skb->data + offset) = csum_fold(csum); |