xref: /openbmc/u-boot/net/ping.h (revision 5094fbf7)
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 
11 #if defined(CONFIG_CMD_PING)
12 
13 #ifndef __PING_H__
14 #define __PING_H__
15 
16 #include <common.h>
17 #include <net.h>
18 
19 /*
20  * Initialize ping (beginning of netloop)
21  */
22 void ping_start(void);
23 
24 /*
25  * Deal with the receipt of a ping packet
26  *
27  * @param et Ethernet header in packet
28  * @param ip IP header in the same packet
29  * @param len Packet length
30  */
31 void ping_receive(struct ethernet_hdr *et, struct ip_udp_hdr *ip, int len);
32 
33 #endif /* __PING_H__ */
34 #endif
35