summaryrefslogtreecommitdiffstats
path: root/qemu/roms/ipxe/src/include/ipxe/pinger.h
blob: 227f002dcc6dab2e8f9a7ac83741055f70e57622 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
#ifndef _IPXE_PINGER_H
#define _IPXE_PINGER_H

/** @file
 *
 * ICMP ping sender
 *
 */

FILE_LICENCE ( GPL2_OR_LATER_OR_UBDL );

#include <stdint.h>
#include <ipxe/interface.h>
#include <ipxe/socket.h>

extern int create_pinger ( struct interface *job, const char *hostname,
			   unsigned long timeout, size_t len,
			   unsigned int count,
			   void ( * callback ) ( struct sockaddr *peer,
						 unsigned int sequence,
						 size_t len,
						 int rc ) );

#endif /* _IPXE_PINGER_H */