summaryrefslogtreecommitdiff
path: root/net/arp.h
diff options
context:
space:
mode:
authorJoe Hershberger <joe.hershberger@ni.com>2012-05-23 07:58:01 +0000
committerJoe Hershberger <joe.hershberger@ni.com>2012-05-23 14:19:23 -0500
commitd280d3f430a4056e7baf66dc4be705dc8cc9bd37 (patch)
treeaa2ed9082775d60fa6a6e0ef4096947ad200685e /net/arp.h
parent1735188329d8c6357299462275061c05a46e100f (diff)
downloadu-boot-d280d3f430a4056e7baf66dc4be705dc8cc9bd37.tar.gz
u-boot-d280d3f430a4056e7baf66dc4be705dc8cc9bd37.tar.bz2
u-boot-d280d3f430a4056e7baf66dc4be705dc8cc9bd37.zip
net: Move ARP out of net.c
Separate this functionality out of the net.c behemoth Signed-off-by: Joe Hershberger <joe.hershberger@ni.com> Acked-by: Simon Glass <sjg@chromium.org> Acked-by: Mike Frysinger <vapier@gentoo.org>
Diffstat (limited to 'net/arp.h')
-rw-r--r--net/arp.h30
1 files changed, 30 insertions, 0 deletions
diff --git a/net/arp.h b/net/arp.h
new file mode 100644
index 0000000000..4016a9099a
--- /dev/null
+++ b/net/arp.h
@@ -0,0 +1,30 @@
+/*
+ * Copied from Linux Monitor (LiMon) - Networking.
+ *
+ * Copyright 1994 - 2000 Neil Russell.
+ * (See License)
+ * Copyright 2000 Roland Borde
+ * Copyright 2000 Paolo Scaffardi
+ * Copyright 2000-2002 Wolfgang Denk, wd@denx.de
+ */
+
+#ifndef __ARP_H__
+#define __ARP_H__
+
+#include <common.h>
+
+extern IPaddr_t NetArpWaitPacketIP;
+/* MAC address of waiting packet's destination */
+extern uchar *NetArpWaitPacketMAC;
+/* THE transmit packet */
+extern uchar *NetArpWaitTxPacket;
+extern int NetArpWaitTxPacketSize;
+extern ulong NetArpWaitTimerStart;
+extern int NetArpWaitTry;
+
+void ArpInit(void);
+void ArpRequest(void);
+void ArpTimeoutCheck(void);
+void ArpReceive(Ethernet_t *et, IP_t *ip, int len);
+
+#endif /* __ARP_H__ */