summaryrefslogtreecommitdiff
path: root/net/rarp.c
diff options
context:
space:
mode:
authorJoe Hershberger <joe.hershberger@ni.com>2012-05-23 07:58:08 +0000
committerJoe Hershberger <joe.hershberger@ni.com>2012-05-23 17:46:15 -0500
commit738853bb6d290dc4b52d8c2989c0998d7aa26913 (patch)
tree3f2215f573ffd631a7de0c606d010dd5f1f4936f /net/rarp.c
parentc68cca35b33c3a7c9fbcfc08de7e91dbdc8cf51f (diff)
downloadu-boot-imx-738853bb6d290dc4b52d8c2989c0998d7aa26913.zip
u-boot-imx-738853bb6d290dc4b52d8c2989c0998d7aa26913.tar.gz
u-boot-imx-738853bb6d290dc4b52d8c2989c0998d7aa26913.tar.bz2
net: cosmetic: Un-typedef ARP_t
Remove typedef and lower-case letters Signed-off-by: Joe Hershberger <joe.hershberger@ni.com>
Diffstat (limited to 'net/rarp.c')
-rw-r--r--net/rarp.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/net/rarp.c b/net/rarp.c
index bd073c3..da50961 100644
--- a/net/rarp.c
+++ b/net/rarp.c
@@ -43,10 +43,10 @@ int RarpTry;
*/
void rarp_receive(struct ip_udp_hdr *ip, unsigned len)
{
- ARP_t *arp;
+ struct arp_hdr *arp;
debug("Got RARP\n");
- arp = (ARP_t *)ip;
+ arp = (struct arp_hdr *)ip;
if (len < ARP_HDR_SIZE) {
printf("bad length %d < %d\n", len, ARP_HDR_SIZE);
return;
@@ -87,14 +87,14 @@ static void RarpTimeout(void)
void RarpRequest(void)
{
uchar *pkt;
- ARP_t *rarp;
+ struct arp_hdr *rarp;
printf("RARP broadcast %d\n", ++RarpTry);
pkt = NetTxPacket;
pkt += NetSetEther(pkt, NetBcastAddr, PROT_RARP);
- rarp = (ARP_t *)pkt;
+ rarp = (struct arp_hdr *)pkt;
rarp->ar_hrd = htons(ARP_ETHER);
rarp->ar_pro = htons(PROT_IP);