blob: 76ac225fc075983e1f1292923b25534c22f0160d [file] [log] [blame]
Tom Rini70df9d62018-05-07 17:02:21 -04001/* SPDX-License-Identifier: GPL-2.0 */
Joe Hershbergerc21bf372012-05-23 07:58:02 +00002/*
3 * Copied from Linux Monitor (LiMon) - Networking.
4 *
5 * Copyright 1994 - 2000 Neil Russell.
6 * (See License)
7 * Copyright 2000 Roland Borde
8 * Copyright 2000 Paolo Scaffardi
9 * Copyright 2000-2002 Wolfgang Denk, wd@denx.de
10 */
11
Joe Hershbergerc21bf372012-05-23 07:58:02 +000012#ifndef __PING_H__
13#define __PING_H__
14
Joe Hershbergerc21bf372012-05-23 07:58:02 +000015#include <net.h>
16
17/*
18 * Initialize ping (beginning of netloop)
19 */
20void 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 Hershberger1178f412012-05-23 07:58:06 +000029void ping_receive(struct ethernet_hdr *et, struct ip_udp_hdr *ip, int len);
Joe Hershbergerc21bf372012-05-23 07:58:02 +000030
31#endif /* __PING_H__ */