[<prev] [next>] [day] [month] [year] [list]
Message-Id: <54f9ca8fb7748c23eec49ad0fa055f2036cde5b7.1374753893.git.tgraf@suug.ch>
Date: Thu, 25 Jul 2013 14:08:04 +0200
From: Thomas Graf <tgraf@...g.ch>
To: davem@...emloft.net
Cc: netdev@...r.kernel.org
Subject: [PATCH net-next] pktgen: Use ip_send_check() to compute checksum
Signed-off-by: Thomas Graf <tgraf@...g.ch>
---
net/core/pktgen.c | 3 +--
1 file changed, 1 insertion(+), 2 deletions(-)
diff --git a/net/core/pktgen.c b/net/core/pktgen.c
index 929eb7b..2b3a74e 100644
--- a/net/core/pktgen.c
+++ b/net/core/pktgen.c
@@ -2755,8 +2755,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;
--
1.8.3.1
--
To unsubscribe from this list: send the line "unsubscribe netdev" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Powered by blists - more mailing lists