summaryrefslogtreecommitdiffstats
path: root/net/ping.c
diff options
context:
space:
mode:
authorJoe Hershberger <joe.hershberger@ni.com>2015-04-08 01:41:05 -0500
committerSimon Glass <sjg@chromium.org>2015-04-18 11:11:32 -0600
commit1203fcceec113d502995f7242d7e1be09d373e80 (patch)
tree57629eda7b55239ab81c15cbb5544ff2c5b7e6db /net/ping.c
parent0adb5b761f4c789ae47d8abb015f5e017263d3f2 (diff)
downloadtalos-obmc-uboot-1203fcceec113d502995f7242d7e1be09d373e80.tar.gz
talos-obmc-uboot-1203fcceec113d502995f7242d7e1be09d373e80.zip
net: cosmetic: Cleanup internal packet buffer names
This patch cleans up the names of internal packet buffer names that are used within the network stack and the functions that use them. Signed-off-by: Joe Hershberger <joe.hershberger@ni.com>
Diffstat (limited to 'net/ping.c')
-rw-r--r--net/ping.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/net/ping.c b/net/ping.c
index e4e3086e19..7c6084c3e3 100644
--- a/net/ping.c
+++ b/net/ping.c
@@ -50,8 +50,8 @@ static int ping_send(void)
net_arp_wait_packet_ip = net_ping_ip;
- eth_hdr_size = NetSetEther(NetTxPacket, net_null_ethaddr, PROT_IP);
- pkt = (uchar *)NetTxPacket + eth_hdr_size;
+ eth_hdr_size = net_set_ether(net_tx_packet, net_null_ethaddr, PROT_IP);
+ pkt = (uchar *)net_tx_packet + eth_hdr_size;
set_icmp_header(pkt, net_ping_ip);
@@ -106,7 +106,7 @@ 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);
- NetSendPacket((uchar *)et, eth_hdr_size + len);
+ net_send_packet((uchar *)et, eth_hdr_size + len);
return;
/* default:
return;*/
OpenPOWER on IntegriCloud