arp.h 864 B

1234567891011121314151617181920212223242526272829303132
  1. /* SPDX-License-Identifier: GPL-2.0 */
  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. #ifndef __ARP_H__
  12. #define __ARP_H__
  13. #include <common.h>
  14. extern struct in_addr net_arp_wait_packet_ip;
  15. /* MAC address of waiting packet's destination */
  16. extern uchar *arp_wait_packet_ethaddr;
  17. extern int arp_wait_tx_packet_size;
  18. extern ulong arp_wait_timer_start;
  19. extern int arp_wait_try;
  20. extern uchar *arp_tx_packet;
  21. void arp_init(void);
  22. void arp_request(void);
  23. void arp_raw_request(struct in_addr source_ip, const uchar *targetEther,
  24. struct in_addr target_ip);
  25. int arp_timeout_check(void);
  26. void arp_receive(struct ethernet_hdr *et, struct ip_udp_hdr *ip, int len);
  27. #endif /* __ARP_H__ */