Tom Rini | f739fcd | 2018-05-07 17:02:21 -0400 | [diff] [blame] | 1 | /* SPDX-License-Identifier: GPL-2.0 */ |
Joe Hershberger | d280d3f | 2012-05-23 07:58:01 +0000 | [diff] [blame] | 2 | /* |
| 3 | * Copied from Linux Monitor (LiMon) - Networking. |
| 4 | * |
| 5 | * Copyright 1994 - 2000 Neil Russell. |
| 6 | * (See License) |
| 7 | * Copyright 2000 Roland Borde |
| 8 | * Copyright 2000 Paolo Scaffardi |
| 9 | * Copyright 2000-2002 Wolfgang Denk, wd@denx.de |
| 10 | */ |
| 11 | |
| 12 | #ifndef __ARP_H__ |
| 13 | #define __ARP_H__ |
| 14 | |
| 15 | #include <common.h> |
| 16 | |
Joe Hershberger | 049a95a | 2015-04-08 01:41:01 -0500 | [diff] [blame] | 17 | extern struct in_addr net_arp_wait_packet_ip; |
Joe Hershberger | d280d3f | 2012-05-23 07:58:01 +0000 | [diff] [blame] | 18 | /* MAC address of waiting packet's destination */ |
Joe Hershberger | 85d25e0 | 2015-04-08 01:41:08 -0500 | [diff] [blame] | 19 | extern uchar *arp_wait_packet_ethaddr; |
| 20 | extern int arp_wait_tx_packet_size; |
| 21 | extern ulong arp_wait_timer_start; |
| 22 | extern int arp_wait_try; |
Joe Hershberger | ac3f26c | 2018-09-26 16:49:02 -0500 | [diff] [blame] | 23 | extern uchar *arp_tx_packet; |
Joe Hershberger | d280d3f | 2012-05-23 07:58:01 +0000 | [diff] [blame] | 24 | |
Joe Hershberger | 85d25e0 | 2015-04-08 01:41:08 -0500 | [diff] [blame] | 25 | void arp_init(void); |
| 26 | void arp_request(void); |
Joe Hershberger | 049a95a | 2015-04-08 01:41:01 -0500 | [diff] [blame] | 27 | void arp_raw_request(struct in_addr source_ip, const uchar *targetEther, |
| 28 | struct in_addr target_ip); |
Stefan BrĂ¼ns | 45b4773 | 2015-08-30 17:46:54 +0200 | [diff] [blame] | 29 | int arp_timeout_check(void); |
Joe Hershberger | 85d25e0 | 2015-04-08 01:41:08 -0500 | [diff] [blame] | 30 | void arp_receive(struct ethernet_hdr *et, struct ip_udp_hdr *ip, int len); |
Joe Hershberger | d280d3f | 2012-05-23 07:58:01 +0000 | [diff] [blame] | 31 | |
| 32 | #endif /* __ARP_H__ */ |