Joe Hershberger | d280d3f | 2012-05-23 07:58:01 +0000 | [diff] [blame] | 1 | /* |
| 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 Denk | 2ea9103 | 2014-09-30 10:44:01 +0200 | [diff] [blame] | 9 | * SPDX-License-Identifier: GPL-2.0 |
Joe Hershberger | d280d3f | 2012-05-23 07:58:01 +0000 | [diff] [blame] | 10 | */ |
| 11 | |
| 12 | #ifndef __ARP_H__ |
| 13 | #define __ARP_H__ |
| 14 | |
| 15 | #include <common.h> |
| 16 | |
| 17 | extern IPaddr_t NetArpWaitPacketIP; |
| 18 | /* MAC address of waiting packet's destination */ |
| 19 | extern uchar *NetArpWaitPacketMAC; |
Joe Hershberger | d280d3f | 2012-05-23 07:58:01 +0000 | [diff] [blame] | 20 | extern int NetArpWaitTxPacketSize; |
| 21 | extern ulong NetArpWaitTimerStart; |
| 22 | extern int NetArpWaitTry; |
| 23 | |
| 24 | void ArpInit(void); |
| 25 | void ArpRequest(void); |
Joe Hershberger | 2280418 | 2012-05-23 08:00:11 +0000 | [diff] [blame] | 26 | void arp_raw_request(IPaddr_t sourceIP, const uchar *targetEther, |
| 27 | IPaddr_t targetIP); |
Joe Hershberger | d280d3f | 2012-05-23 07:58:01 +0000 | [diff] [blame] | 28 | void ArpTimeoutCheck(void); |
Joe Hershberger | cb487f5 | 2012-05-23 07:58:06 +0000 | [diff] [blame] | 29 | void ArpReceive(struct ethernet_hdr *et, struct ip_udp_hdr *ip, int len); |
Joe Hershberger | d280d3f | 2012-05-23 07:58:01 +0000 | [diff] [blame] | 30 | |
| 31 | #endif /* __ARP_H__ */ |