blob: 246d3aa1051b52dba6ffc88677ffbfc83760b05d [file] [log] [blame]
Joe Hershbergera36b12f2012-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 */
31void ping_receive(Ethernet_t *et, IP_t *ip, int len);
32
33#endif /* __PING_H__ */
34#endif