summaryrefslogtreecommitdiff
path: root/net/ping.c
diff options
context:
space:
mode:
authorTom Rini <trini@konsulko.com>2018-06-14 07:20:41 -0400
committerTom Rini <trini@konsulko.com>2018-06-14 07:20:41 -0400
commit606fddd76c7a045c09d544357806b0b4de4845c7 (patch)
tree5caaf0bcc020c1cefea322807e179f1f16a644ea /net/ping.c
parent66398944f53921ec641e1c2202390933767dbb87 (diff)
parent5b2c9a6ce3ce66796e8c375133da8340c7ab2adc (diff)
Merge branch 'master' of git://git.denx.de/u-boot-net
Diffstat (limited to 'net/ping.c')
-rw-r--r--net/ping.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/net/ping.c b/net/ping.c
index 5464f2f785f..3e5461a36a0 100644
--- a/net/ping.c
+++ b/net/ping.c
@@ -107,7 +107,8 @@ void ping_receive(struct ethernet_hdr *et, struct ip_udp_hdr *ip, int len)
icmph->type = ICMP_ECHO_REPLY;
icmph->checksum = 0;
icmph->checksum = compute_ip_checksum(icmph, len - IP_HDR_SIZE);
- net_send_packet((uchar *)et, eth_hdr_size + len);
+ memcpy(net_tx_packet, et, eth_hdr_size + len);
+ net_send_packet(net_tx_packet, eth_hdr_size + len);
return;
/* default:
return;*/