diff --git a/net/core/pktgen.c b/net/core/pktgen.c index 48cebf2c3e7ad1e9931eb75bb2780c4f8ff81a85..2dec6f1b0cd7c2d1e933047df38942cac1e68c06 100644 --- a/net/core/pktgen.c +++ b/net/core/pktgen.c @@ -2758,8 +2758,7 @@ static struct sk_buff *fill_packet_ipv4(struct net_device *odev, iph->frag_off = 0; iplen = 20 + 8 + datalen; iph->tot_len = htons(iplen); - iph->check = 0; - iph->check = ip_fast_csum((void *)iph, iph->ihl); + ip_send_check(iph); skb->protocol = protocol; skb->dev = odev; skb->pkt_type = PACKET_HOST;