mirror of
https://github.com/Fishwaldo/u-boot.git
synced 2025-06-26 08:31:28 +00:00
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>
This commit is contained in:
parent
8b9c53221f
commit
594c26f8a7
15 changed files with 55 additions and 52 deletions
|
@ -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;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue