summaryrefslogtreecommitdiff
path: root/net/ping.c
diff options
context:
space:
mode:
authorJoe Hershberger <joe.hershberger@ni.com>2012-05-23 07:58:04 +0000
committerJoe Hershberger <joe.hershberger@ni.com>2012-05-23 17:46:00 -0500
commit594c26f8a7dbb83243a5168378a2164fa08d6dd8 (patch)
treeda2d24d45ee1bb1f9320e023b3a1a24fa25c1d02 /net/ping.c
parent8b9c53221f6ce30ad132e3202e6d445bc21ed8aa (diff)
net: cosmetic: Un-typedef IP_t
Rename IP header related things to IP_UDP. The existing definition of IP_t includes UDP header, so name it to accurately describe the structure. 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 0e5b1dab710..6a2e85dabc3 100644
--- a/net/ping.c
+++ b/net/ping.c
@@ -19,7 +19,7 @@ IPaddr_t NetPingIP;
static int ping_send(void)
{
static uchar mac[6];
- IP_t *ip;
+ struct ip_udp_hdr *ip;
ushort *s;
uchar *pkt;
@@ -35,7 +35,7 @@ static int ping_send(void)
pkt = NetArpWaitTxPacket;
pkt += NetSetEther(pkt, mac, PROT_IP);
- ip = (IP_t *)pkt;
+ ip = (struct ip_udp_hdr *)pkt;
/*
* Construct an IP and ICMP header.
@@ -98,7 +98,7 @@ void ping_start(void)
ping_send();
}
-void ping_receive(Ethernet_t *et, IP_t *ip, int len)
+void ping_receive(Ethernet_t *et, struct ip_udp_hdr *ip, int len)
{
ICMP_t *icmph = (ICMP_t *)&(ip->udp_src);
IPaddr_t src_ip;