49 size_t len,
int rc ) {
52 printf (
"%zd bytes from %s: seq=%d",
70 unsigned int count,
int quiet ) {
struct arbelprm_rc_send_wqe rc
int printf(const char *fmt,...)
Write a formatted string to the console.
int monojob_wait(const char *string, unsigned long timeout)
Wait for single foreground job to complete.
int create_pinger(struct interface *job, const char *hostname, unsigned long timeout, size_t len, unsigned int count, void(*callback)(struct sockaddr *src, unsigned int sequence, size_t len, int rc))
Create pinger.
FILE_LICENCE(GPL2_OR_LATER_OR_UBDL)
uint16_t count
Number of entries.
Generalized socket address structure.
char * strerror(int errno)
Retrieve string representation of error number.
const char * sock_ntoa(struct sockaddr *sa)
Transcribe socket address.
struct mschapv2_challenge peer
Peer challenge.
static void ping_callback(struct sockaddr *peer, unsigned int sequence, size_t len, int rc)
Display ping result.
#define NULL
NULL pointer (VOID *)
int ping(const char *hostname, unsigned long timeout, size_t len, unsigned int count, int quiet)
Ping a host.