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