arp.h 824 B

12345678910111213141516171819202122232425262728293031
  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
  9. * SPDX-License-Identifier: GPL-2.0
  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 *NetArpWaitPacketMAC;
  17. extern int NetArpWaitTxPacketSize;
  18. extern ulong NetArpWaitTimerStart;
  19. extern int NetArpWaitTry;
  20. void ArpInit(void);
  21. void ArpRequest(void);
  22. void arp_raw_request(struct in_addr source_ip, const uchar *targetEther,
  23. struct in_addr target_ip);
  24. void ArpTimeoutCheck(void);
  25. void ArpReceive(struct ethernet_hdr *et, struct ip_udp_hdr *ip, int len);
  26. #endif /* __ARP_H__ */