OSDN Git Service
(root)
/
android-x86
/
kernel.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
c26bf4a
)
pktgen: Use ip_send_check() to compute checksum
author
Thomas Graf
<tgraf@suug.ch>
Thu, 25 Jul 2013 12:08:04 +0000
(14:08 +0200)
committer
David S. Miller
<davem@davemloft.net>
Sun, 28 Jul 2013 05:18:00 +0000
(22:18 -0700)
Signed-off-by: Thomas Graf <tgraf@suug.ch>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/core/pktgen.c
patch
|
blob
|
history
diff --git
a/net/core/pktgen.c
b/net/core/pktgen.c
index
48cebf2
..
2dec6f1
100644
(file)
--- 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;