blob: 718342bcf02b19009aeb138d753a22e8d6f611b1 [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
Joe Hershberger049a95a2015-04-08 01:41:01 -050017extern struct in_addr net_arp_wait_packet_ip;
Joe Hershbergerd280d3f2012-05-23 07:58:01 +000018/* 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 Hershberger049a95a2015-04-08 01:41:01 -050026void arp_raw_request(struct in_addr source_ip, const uchar *targetEther,
27 struct in_addr target_ip);
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__ */