* [PATCH net-next] pktgen: Use ip_send_check() to compute checksum
@ 2013-07-25 12:08 Thomas Graf
0 siblings, 0 replies; only message in thread
From: Thomas Graf @ 2013-07-25 12:08 UTC (permalink / raw)
To: davem; +Cc: netdev
Signed-off-by: Thomas Graf <tgraf@suug.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
^ permalink raw reply related [flat|nested] only message in thread
only message in thread, other threads:[~2013-07-25 12:08 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2013-07-25 12:08 [PATCH net-next] pktgen: Use ip_send_check() to compute checksum Thomas Graf
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).