arp.h 800 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 IPaddr_t NetArpWaitPacketIP;
  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(IPaddr_t sourceIP, const uchar *targetEther,
  23. IPaddr_t targetIP);
  24. void ArpTimeoutCheck(void);
  25. void ArpReceive(struct ethernet_hdr *et, struct ip_udp_hdr *ip, int len);
  26. #endif /* __ARP_H__ */