2
0
mirror of https://github.com/xcat2/xNBA.git synced 2026-04-01 02:53:28 +00:00
Files
xNBA/src/include/ipxe/pinger.h
Michael Brown c597c7a071 [ping] Add generic ping mechanism
Add generic pinger mechanism (analogous to the generic downloader
mechanism) which opens a ping socket, transmits ping requests, and
passes information about ping replies to a callback function.

Signed-off-by: Michael Brown <mcb30@ipxe.org>
2013-10-21 15:08:18 +01:00

24 lines
456 B
C

#ifndef _IPXE_PINGER_H
#define _IPXE_PINGER_H
/** @file
*
* ICMP ping sender
*
*/
FILE_LICENCE ( GPL2_OR_LATER );
#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,
void ( * callback ) ( struct sockaddr *peer,
unsigned int sequence,
size_t len,
int rc ) );
#endif /* _IPXE_PINGER_H */