Joe Hershberger | a36b12f | 2012-05-23 07:58:02 +0000 | [diff] [blame^] | 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(Ethernet_t *et, IP_t *ip, int len); |
| 32 | |
| 33 | #endif /* __PING_H__ */ |
| 34 | #endif |