blob: 3a0a13a3720afaf3fd2df112b7235fa8f6dad9ee [file] [log] [blame]
Joe Hershbergerd280d3f2012-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
Wolfgang Denk2ea91032014-09-30 10:44:01 +02009 * SPDX-License-Identifier: GPL-2.0
Joe Hershbergerd280d3f2012-05-23 07:58:01 +000010 */
11
12#ifndef __ARP_H__
13#define __ARP_H__
14
15#include <common.h>
16
17extern IPaddr_t NetArpWaitPacketIP;
18/* MAC address of waiting packet's destination */
19extern uchar *NetArpWaitPacketMAC;
Joe Hershbergerd280d3f2012-05-23 07:58:01 +000020extern int NetArpWaitTxPacketSize;
21extern ulong NetArpWaitTimerStart;
22extern int NetArpWaitTry;
23
24void ArpInit(void);
25void ArpRequest(void);
Joe Hershberger22804182012-05-23 08:00:11 +000026void arp_raw_request(IPaddr_t sourceIP, const uchar *targetEther,
27 IPaddr_t targetIP);
Joe Hershbergerd280d3f2012-05-23 07:58:01 +000028void ArpTimeoutCheck(void);
Joe Hershbergercb487f52012-05-23 07:58:06 +000029void ArpReceive(struct ethernet_hdr *et, struct ip_udp_hdr *ip, int len);
Joe Hershbergerd280d3f2012-05-23 07:58:01 +000030
31#endif /* __ARP_H__ */