blob: bfd57e0105391bb21f00bb643fdb2a80f607c54b [file] [log] [blame]
Joe Hershbergeraae05082012-05-23 07:58:01 +00001/*
2 * Copied from Linux Monitor (LiMon) - Networking.
3 *
4 * Copyright 1994 - 2000 Neil Russell.
5 * (See License)
6 * Copyright 2000 Roland Borde
7 * Copyright 2000 Paolo Scaffardi
8 * Copyright 2000-2002 Wolfgang Denk, wd@denx.de
9 */
10
11#ifndef __ARP_H__
12#define __ARP_H__
13
14#include <common.h>
15
16extern IPaddr_t NetArpWaitPacketIP;
17/* MAC address of waiting packet's destination */
18extern uchar *NetArpWaitPacketMAC;
Joe Hershbergeraae05082012-05-23 07:58:01 +000019extern int NetArpWaitTxPacketSize;
20extern ulong NetArpWaitTimerStart;
21extern int NetArpWaitTry;
22
23void ArpInit(void);
24void ArpRequest(void);
Joe Hershbergerc07e8102012-05-23 08:00:11 +000025void arp_raw_request(IPaddr_t sourceIP, const uchar *targetEther,
26 IPaddr_t targetIP);
Joe Hershbergeraae05082012-05-23 07:58:01 +000027void ArpTimeoutCheck(void);
Joe Hershberger1178f412012-05-23 07:58:06 +000028void ArpReceive(struct ethernet_hdr *et, struct ip_udp_hdr *ip, int len);
Joe Hershbergeraae05082012-05-23 07:58:01 +000029
30#endif /* __ARP_H__ */