91 |
p->ping_fd = fd; |
p->ping_fd = fd; |
92 |
p->ping_type = type; |
p->ping_type = type; |
93 |
p->ping_count = 0; |
p->ping_count = 0; |
94 |
p->ping_interval = PING_INTERVAL; |
p->ping_interval = PING_DEFAULT_INTERVAL; |
95 |
p->ping_datalen = sizeof (icmphdr_t); |
p->ping_datalen = sizeof (icmphdr_t); |
96 |
/* Make sure we use only 16 bits in this field, id for icmp is a u_short. */ |
/* Make sure we use only 16 bits in this field, id for icmp is a u_short. */ |
97 |
p->ping_ident = ident & 0xFFFF; |
p->ping_ident = ident & 0xFFFF; |