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 | |
Joe Hershberger | a36b12f | 2012-05-23 07:58:02 +0000 | [diff] [blame] | 11 | #ifndef __PING_H__ |
| 12 | #define __PING_H__ |
| 13 | |
| 14 | #include <common.h> |
| 15 | #include <net.h> |
| 16 | |
| 17 | /* |
| 18 | * Initialize ping (beginning of netloop) |
| 19 | */ |
| 20 | void ping_start(void); |
| 21 | |
| 22 | /* |
| 23 | * Deal with the receipt of a ping packet |
| 24 | * |
| 25 | * @param et Ethernet header in packet |
| 26 | * @param ip IP header in the same packet |
| 27 | * @param len Packet length |
| 28 | */ |
Joe Hershberger | cb487f5 | 2012-05-23 07:58:06 +0000 | [diff] [blame] | 29 | void ping_receive(struct ethernet_hdr *et, struct ip_udp_hdr *ip, int len); |
Joe Hershberger | a36b12f | 2012-05-23 07:58:02 +0000 | [diff] [blame] | 30 | |
| 31 | #endif /* __PING_H__ */ |