ping.h 644 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. */
  10. #ifndef __PING_H__
  11. #define __PING_H__
  12. #include <common.h>
  13. #include <net.h>
  14. /*
  15. * Initialize ping (beginning of netloop)
  16. */
  17. void ping_start(void);
  18. /*
  19. * Deal with the receipt of a ping packet
  20. *
  21. * @param et Ethernet header in packet
  22. * @param ip IP header in the same packet
  23. * @param len Packet length
  24. */
  25. void ping_receive(struct ethernet_hdr *et, struct ip_udp_hdr *ip, int len);
  26. #endif /* __PING_H__ */