blob: c50885fb9a57dd27659c4a935114dfd157086718 [file] [log] [blame]
Tom Rinif739fcd2018-05-07 17:02:21 -04001/* SPDX-License-Identifier: GPL-2.0 */
Joe Hershbergerd280d3f2012-05-23 07:58:01 +00002/*
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
Joe Hershberger049a95a2015-04-08 01:41:01 -050015extern struct in_addr net_arp_wait_packet_ip;
Joe Hershbergerd280d3f2012-05-23 07:58:01 +000016/* MAC address of waiting packet's destination */
Joe Hershberger85d25e02015-04-08 01:41:08 -050017extern uchar *arp_wait_packet_ethaddr;
18extern int arp_wait_tx_packet_size;
19extern ulong arp_wait_timer_start;
20extern int arp_wait_try;
Joe Hershbergerac3f26c2018-09-26 16:49:02 -050021extern uchar *arp_tx_packet;
Joe Hershbergerd280d3f2012-05-23 07:58:01 +000022
Joe Hershberger85d25e02015-04-08 01:41:08 -050023void arp_init(void);
24void arp_request(void);
Joe Hershberger049a95a2015-04-08 01:41:01 -050025void arp_raw_request(struct in_addr source_ip, const uchar *targetEther,
26 struct in_addr target_ip);
Stefan BrĂ¼ns45b47732015-08-30 17:46:54 +020027int arp_timeout_check(void);
Joe Hershberger85d25e02015-04-08 01:41:08 -050028void arp_receive(struct ethernet_hdr *et, struct ip_udp_hdr *ip, int len);
Joe Hershbergerd280d3f2012-05-23 07:58:01 +000029
30#endif /* __ARP_H__ */