27 #if defined( __linux__ )
29 #define ICMP_ECHOREPLY 0
34 #if (BYTE_ORDER == LITTLE_ENDIAN || BYTE_ORDER == PDP_ENDIAN)
50 struct in_addr ip_src,ip_dst;
53 #define n_short u_short
63 struct in_addr ih_gwaddr;
70 #define icmp_pptr icmp_hun.ih_pptr
71 #define icmp_gwaddr icmp_hun.ih_gwaddr
72 #define icmp_id icmp_hun.ih_idseq.icd_id
73 #define icmp_seq icmp_hun.ih_idseq.icd_seq
74 #define icmp_void icmp_hun.ih_void
88 #define icmp_otime icmp_dun.id_ts.its_otime
89 #define icmp_rtime icmp_dun.id_ts.its_rtime
90 #define icmp_ttime icmp_dun.id_ts.its_ttime
91 #define icmp_ip icmp_dun.id_ip.idi_ip
92 #define icmp_mask icmp_dun.id_mask
93 #define icmp_data icmp_dun.id_data
97 # include <netinet/ip.h>
98 # include <netinet/ip_icmp.h>
101 #define IDENT_DEFAULT 0
102 #define TIMO_DEFAULT 2
113 int pinghost (
const char *hostname );
114 int pingthost (
const char *hostname,
int t );
116 int tpingthost(
const char *hostname,
int t );
int pingthost(const char *hostname, int t)
Definition: libping.c:349
int tpingthost(const char *hostname, int t)
Definition: libping.c:368
int pinghost(const char *hostname)
Definition: libping.c:342
int timo
Definition: libping.h:106
struct ping_priv ping_priv_default(void)
Definition: libping.c:44
int sock
Definition: libping.h:108
Definition: libping.h:104
int ident
Definition: libping.h:105
int tpinghost(const char *hostname)
Definition: libping.c:356
int rrt
Definition: libping.h:107