blob: fd8d8d9778b94b658b15c4e0c0c3f98abf00f5a3 [file] [log] [blame]
Joe Hershbergerc21bf372012-05-23 07:58:02 +00001/*
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 */
22void 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 */
Joe Hershberger1178f412012-05-23 07:58:06 +000031void ping_receive(struct ethernet_hdr *et, struct ip_udp_hdr *ip, int len);
Joe Hershbergerc21bf372012-05-23 07:58:02 +000032
33#endif /* __PING_H__ */
34#endif